Documentation ¶
Index ¶
- func GetDockerHubToken(opts *BuildOpts) (string, error)
- func GetECRToken(opts *BuildOpts) (string, error)
- func GetGARToken(opts *BuildOpts) (string, error)
- func GetNGCToken(opts *BuildOpts) (string, error)
- func GetRegistryToken(opts *BuildOpts) (string, error)
- type BaseImage
- type BuildOpts
- type BuildStep
- type Builder
- type ImageIdHash
- type ImageService
- type ImageServiceOpts
- type PythonStandaloneTemplate
- type RuncImageService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetECRToken ¶
Amazon Elastic Container Registry Gets the ECR Authorization Token on behalf of the user.
func GetNGCToken ¶
func GetRegistryToken ¶
Check which registry is passed in
Types ¶
type BaseImage ¶
func ExtractImageNameAndTag ¶
type BuildOpts ¶
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
type ImageIdHash ¶
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 PythonStandaloneTemplate ¶
type PythonStandaloneTemplate struct { PythonVersion string // Architecture, OS, and Vendor are determined at runtime Architecture string OS string Vendor string }
PythonStandaloneTemplate is used to render the standalone python install script
type RuncImageService ¶
type RuncImageService struct { pb.UnimplementedImageServiceServer // contains filtered or unexported fields }
func (*RuncImageService) BuildImage ¶
func (is *RuncImageService) BuildImage(in *pb.BuildImageRequest, stream pb.ImageService_BuildImageServer) error
func (*RuncImageService) VerifyImageBuild ¶
func (is *RuncImageService) VerifyImageBuild(ctx context.Context, in *pb.VerifyImageBuildRequest) (*pb.VerifyImageBuildResponse, error)
Click to show internal directories.
Click to hide internal directories.