Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBuildContextEmpty = errors.New("BuildContextEmpty", "build context cannot be empty")
)
Functions ¶
func DefaultImageName ¶
func GetDirFromBuildContext ¶
func IsDirContext ¶
func IsGitContext ¶
Types ¶
type Builder ¶
type Builder interface {
Build(ctx context.Context, b *BuilderOptions) (logs string, err error)
}
type BuilderOptions ¶
type BuilderOptions struct { ImageName string BuildContext string Args []string Destination string Cache *CacheOptions }
type CacheOptions ¶
func (*CacheOptions) Default ¶
func (c *CacheOptions) Default(buildContext string) (*CacheOptions, error)
type DirContext ¶
type DirContext struct {
Path string // This path must be an absolute path
}
func (DirContext) BuildContext ¶
func (d DirContext) BuildContext() string
type GitContext ¶
func (*GitContext) BuildContext ¶
func (g *GitContext) BuildContext() (string, error)
This build context follows Kaniko build context pattern ref: https://github.com/GoogleContainerTools/kaniko#kaniko-build-contexts
Click to show internal directories.
Click to hide internal directories.