Documentation ¶
Index ¶
- Variables
- func DefaultImageName(buildContext string) (string, error)
- func GetDirFromBuildContext(ctx string) string
- func IsDirContext(ctx string) bool
- func IsGitContext(ctx string) bool
- type ArgInterface
- type BuildArg
- type Builder
- type BuilderOptions
- type CacheOptions
- type CustomArg
- type DirContext
- type Error
- type GitContext
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 ArgInterface ¶ added in v0.16.2
type BuildArg ¶ added in v0.16.2
type BuildArg struct {
Value string
}
BuildArg is a build argument that can be passed to the builder.
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 []ArgInterface 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.