image

package
v0.0.0-...-aa28569 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseImage

type BaseImage struct {
	SourceRegistry string
	ImageName      string
	ImageTag       string
}

type BuildOpts

type BuildOpts struct {
	BaseImageRegistry  string
	BaseImageName      string
	BaseImageTag       string
	PythonVersion      string
	PythonPackages     []string
	Commands           []string
	ExistingImageUri   string
	ExistingImageCreds *string
	ForceRebuild       bool
}

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(config types.AppConfig, registry *common.ImageRegistry, scheduler *scheduler.Scheduler, tailscale *network.Tailscale, containerRepo repository.ContainerRepository) (*Builder, error)

func (*Builder) Build

func (b *Builder) Build(ctx context.Context, opts *BuildOpts, outputChan chan common.OutputMsg) error

Build user image

func (*Builder) Exists

func (b *Builder) Exists(ctx context.Context, imageId string) bool

Check if an image already exists in the registry

func (*Builder) GetImageId

func (b *Builder) GetImageId(opts *BuildOpts) (string, error)

type ImageIdHash

type ImageIdHash struct {
	BaseImageName   string
	BaseImageTag    string
	UserImageTag    string
	PythonVersion   string
	PythonPackages  []string
	ExitingImageUri string
	CommandListHash string
}

type ImageService

type ImageService interface {
	pb.ImageServiceServer
	VerifyImageBuild(ctx context.Context, in *pb.VerifyImageBuildRequest) (*pb.VerifyImageBuildResponse, error)
	BuildImage(in *pb.BuildImageRequest, stream pb.ImageService_BuildImageServer) error
}

func NewRuncImageService

func NewRuncImageService(
	ctx context.Context,
	opts ImageServiceOpts,
) (ImageService, error)

type ImageServiceOpts

type ImageServiceOpts struct {
	Config        types.AppConfig
	ContainerRepo repository.ContainerRepository
	Scheduler     *scheduler.Scheduler
	Tailscale     *network.Tailscale
}

type RuncImageService

type RuncImageService struct {
	pb.UnimplementedImageServiceServer
	// contains filtered or unexported fields
}

func (*RuncImageService) BuildImage

func (*RuncImageService) VerifyImageBuild

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL