Documentation
¶
Index ¶
- Constants
- func DeployNameFromImage(ref string) string
- func DetectAppName(dir string) (string, error)
- func EnsureBuildFile(ctxDir string, file string, choose TemplateChooser) ([]string, string, error)
- func NormalizeTag(tag string, defaultRegistryHost string) (string, string, error)
- func NormalizeTags(tags []string, defaultRegistryHost string) ([]string, []string, error)
- func ParseKeyValues(values []string) (map[string]string, error)
- func RegistryClusterID(ref string) string
- type Options
- type Result
- type TemplateChooser
Constants ¶
View Source
const NoBuildFileError = `` /* 354-byte string literal not displayed */
NoBuildFileError is the user-facing missing build file error message.
Variables ¶
This section is empty.
Functions ¶
func DeployNameFromImage ¶
DeployNameFromImage returns the default app deployment name for an image ref.
func DetectAppName ¶
DetectAppName returns a best-effort app name for a build context.
func EnsureBuildFile ¶
EnsureBuildFile creates a conservative Containerfile when no build file exists.
func NormalizeTag ¶
NormalizeTag converts one user build tag into a local apps/ store tag.
func NormalizeTags ¶
NormalizeTags converts user build tags into local store tags and display tags.
func ParseKeyValues ¶
ParseKeyValues parses repeated KEY=VALUE flags.
func RegistryClusterID ¶
RegistryClusterID returns the local cluster ID implied by an image ref host.
Types ¶
type Options ¶
type Options struct {
ContextDir string
File string
Tags []string
Platform string
Arch string
BuildArgs []string
Labels []string
StoreRoot string
DefaultRegistryHost string
Docker string
Pull bool
SBOM bool
ChooseTemplate TemplateChooser
Progress func(string)
}
Options controls a Podplane app image build.
Click to show internal directories.
Click to hide internal directories.