Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) BuildLocal ¶
func (m *Manager) BuildLocal(ctx context.Context, packagePath string, opts ...Option) (context.Context, error)
BuildLocal builds container image from the given packagePath and publishes it to a local repository supported by ko. It returns the container image ID within the ctx.
func (*Manager) GetLocalImage ¶
GetLocalImage returns the previously built container image ID for packagePath from ctx.
type Option ¶
type Option func(*Opts)
func WithConfigFile ¶
WithConfigFile is used to configure the ko config file path.
func WithLocalKindName ¶
WithLocalKind is used to configure the build and publish target as a local kind cluster.
func WithPlatforms ¶
WithPlatforms is used to configure the platform to use when pulling a multi-platform base at the building phase. When platform="all", it will build and push an image for all platforms supported by the configured base image. platform string format: all | <os>[/<arch>[/<variant>]][,platform]*
type Opts ¶
type Opts struct { // LocalKindName is used to indicate the local kind cluster to publish. LocalKindName string // Platforms is used to indicate the platforms to build and publish. Platforms []string // ConfigFile is used to indicate the ko config file path. ConfigFile string // contains filtered or unexported fields }