Documentation
¶
Index ¶
- Constants
- func DefaultConfigPath() (string, error)
- func DefaultVolumeKeysPath() (string, error)
- func FormatUndecodedKeys(undecodedKeys []toml.Key) string
- func MkdirAll(path string) error
- func PackHome() (string, error)
- func Write(cfg interface{}, path string) error
- type Config
- type Registry
- type RunImage
- type TrustedBuilder
- type VolumeConfig
Constants ¶
View Source
const DefaultLifecycleImageRepo = "docker.io/buildpacksio/lifecycle"
View Source
const OfficialRegistryName = "official"
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigPath ¶
func DefaultVolumeKeysPath ¶ added in v0.35.0
func FormatUndecodedKeys ¶ added in v0.10.0
Types ¶
type Config ¶
type Config struct {
// Deprecated: Use DefaultRegistryName instead. See https://github.com/buildpacks/pack/issues/747.
DefaultRegistry string `toml:"default-registry-url,omitempty"`
DefaultRegistryName string `toml:"default-registry,omitempty"`
DefaultBuilder string `toml:"default-builder-image,omitempty"`
PullPolicy string `toml:"pull-policy,omitempty"`
Experimental bool `toml:"experimental,omitempty"`
RunImages []RunImage `toml:"run-images"`
TrustedBuilders []TrustedBuilder `toml:"trusted-builders,omitempty"`
Registries []Registry `toml:"registries,omitempty"`
LifecycleImage string `toml:"lifecycle-image,omitempty"`
RegistryMirrors map[string]string `toml:"registry-mirrors,omitempty"`
LayoutRepositoryDir string `toml:"layout-repo-dir,omitempty"`
}
type Registry ¶ added in v0.13.0
type Registry struct {
Name string `toml:"name"`
Type string `toml:"type"`
URL string `toml:"url"`
}
func DefaultRegistry ¶ added in v0.14.0
func DefaultRegistry() Registry
func GetRegistries ¶ added in v0.14.0
type TrustedBuilder ¶ added in v0.11.0
type TrustedBuilder struct {
Name string `toml:"name"`
}
type VolumeConfig ¶ added in v0.35.0
func ReadVolumeKeys ¶ added in v0.35.0
func ReadVolumeKeys(path string) (VolumeConfig, error)
Click to show internal directories.
Click to hide internal directories.