image

package
v0.0.0-...-87773b3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildOpt

type BuildOpt struct {
	BuildID   string
	RepoURL   string
	ImageName string
	BuildPack string
	Builder   string
	Path      string
}

type BuildPackInfo

type BuildPackInfo struct {
	BuildPack string
	Builder   string
}

BuildPackInfo contains the buildpack and builder for a given language

type Builder

type Builder struct {

	// used to store built images
	Registry string
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(registry string) (*Builder, error)

NewBuilder returns a new builder

func (*Builder) CreateImage

func (b *Builder) CreateImage(opt BuildOpt, client *pack.Client) error

func (*Builder) GetBuild

func (b *Builder) GetBuild(buildID string) (*models.Build, error)

GetBuildRequest returns the build request from the database

func (*Builder) GetBuildPackInfo

func (b *Builder) GetBuildPackInfo(language string) (BuildPackInfo, error)

GetBuildPackInfo returns the buildpack and builder for a given language

func (*Builder) NewBuild

func (b *Builder) NewBuild(customerID, repoName, buildID string) error

NewBuildRequest creates a new build request in the database

func (*Builder) UpdateBuildRequest

func (b *Builder) UpdateBuildRequest(buildID string, status container.ContainerStatus, message string) error

UpdateBuildRequest updates the build request in the database

Jump to

Keyboard shortcuts

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