Documentation ¶
Index ¶
- Constants
- type Conf
- type Config
- type ImageDestination
- type ImageOverride
- type ImageRef
- type Kind
- type Origin
- type OriginGit
- type OriginLocal
- type OriginPlatformSelected
- type OriginPreresolved
- type OriginResolved
- type OriginTagged
- type PlatformSelection
- type SearchRule
- type SearchRuleKeyMatcher
- type SearchRuleUpdateStrategy
- type SearchRuleUpdateStrategyEntireString
- type SearchRuleUpdateStrategyJSON
- type SearchRuleUpdateStrategyNone
- type SearchRuleUpdateStrategyYAML
- type SearchRuleValueMatcher
- type Source
- type SourceBazelOpts
- type SourceBazelRunOpts
- type SourceDockerBuildOpts
- type SourceDockerBuildxOpts
- type SourceDockerOpts
- type SourceKoBuildOpts
- type SourceKoOpts
- type SourceKubectlBuildkitBuildOpts
- type SourceKubectlBuildkitOpts
- type SourcePackBuildOpts
- type SourcePackOpts
Constants ¶
View Source
const ( ImagesLockKbldID = "kbld.carvel.dev/id" ImagesLockKbldOrigins = "kbld.carvel.dev/origins" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct {
// contains filtered or unexported fields
}
func NewConfFromResources ¶
func (Conf) ImageDestinations ¶
func (c Conf) ImageDestinations() []ImageDestination
func (Conf) ImageOverrides ¶
func (c Conf) ImageOverrides() []ImageOverride
func (Conf) SearchRules ¶ added in v0.41.0
func (c Conf) SearchRules() []SearchRule
func (Conf) SearchRulesWithoutDefaults ¶ added in v0.41.0
func (c Conf) SearchRulesWithoutDefaults() []SearchRule
func (Conf) WithAdditionalConfig ¶ added in v0.11.0
type Config ¶
type Config struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind,omitempty"` MinimumRequiredVersion string `json:"minimumRequiredVersion,omitempty"` Sources []Source `json:"sources,omitempty"` Overrides []ImageOverride `json:"overrides,omitempty"` Destinations []ImageDestination `json:"destinations,omitempty"` Keys []string `json:"keys,omitempty"` SearchRules []SearchRule `json:"searchRules,omitempty"` }
func NewConfigFromImagesLock ¶ added in v0.41.0
func (Config) WriteToFile ¶ added in v0.41.0
type ImageDestination ¶
type ImageDestination struct { ImageRef NewImage string `json:"newImage"` Tags []string `json:"tags"` }
func (ImageDestination) Validate ¶
func (d ImageDestination) Validate() error
type ImageOverride ¶
type ImageOverride struct { ImageRef NewImage string `json:"newImage"` Preresolved bool `json:"preresolved,omitempty"` TagSelection *versions.VersionSelection `json:"tagSelection,omitempty"` PlatformSelection *PlatformSelection `json:"platformSelection,omitempty"` ImageOrigins []Origin `json:"origins,omitempty"` }
func UniqueImageOverrides ¶ added in v0.41.0
func UniqueImageOverrides(overrides []ImageOverride) []ImageOverride
func (ImageOverride) Equal ¶ added in v0.41.0
func (d ImageOverride) Equal(other ImageOverride) bool
Equal reports whether this ImageOverride is equal to another ImageOverride. (`ImageMeta` is descriptive — not identifying — so not part of equality)
func (ImageOverride) Validate ¶
func (d ImageOverride) Validate() error
type ImageRef ¶ added in v0.41.0
type Origin ¶ added in v0.41.0
type Origin struct { Git *OriginGit `json:"git,omitempty"` Local *OriginLocal `json:"local,omitempty"` Resolved *OriginResolved `json:"resolved,omitempty"` Tagged *OriginTagged `json:"tagged,omitempty"` Preresolved *OriginPreresolved `json:"preresolved,omitempty"` PlatformSelected *OriginPlatformSelected `json:"platformSelected,omitempty"` }
func NewOriginsFromString ¶ added in v0.41.0
type OriginLocal ¶ added in v0.41.0
type OriginLocal struct {
Path string `json:"path"`
}
type OriginPlatformSelected ¶ added in v0.41.0
type OriginPreresolved ¶ added in v0.41.0
type OriginPreresolved struct {
URL string `json:"url"`
}
type OriginResolved ¶ added in v0.41.0
type OriginTagged ¶ added in v0.41.0
type OriginTagged struct {
Tags []string `json:"tags"`
}
type PlatformSelection ¶ added in v0.41.0
type PlatformSelection struct { Architecture string `json:"architecture,omitempty"` OS string `json:"os,omitempty"` OSVersion string `json:"os.version,omitempty"` // note dot OSFeatures []string `json:"os.features,omitempty"` // note dot Variant string `json:"variant,omitempty"` Features []string `json:"features,omitempty"` }
PlatformSelection https://github.com/opencontainers/image-spec/blob/main/image-index.md#image-index-property-descriptions
type SearchRule ¶ added in v0.41.0
type SearchRule struct { KeyMatcher *SearchRuleKeyMatcher `json:"keyMatcher,omitempty"` ValueMatcher *SearchRuleValueMatcher `json:"valueMatcher,omitempty"` UpdateStrategy *SearchRuleUpdateStrategy `json:"updateStrategy,omitempty"` }
func (SearchRule) UpdateStrategyWithDefaults ¶ added in v0.41.0
func (d SearchRule) UpdateStrategyWithDefaults() SearchRuleUpdateStrategy
func (SearchRule) Validate ¶ added in v0.41.0
func (d SearchRule) Validate() error
type SearchRuleKeyMatcher ¶ added in v0.41.0
type SearchRuleUpdateStrategy ¶ added in v0.41.0
type SearchRuleUpdateStrategy struct { None *SearchRuleUpdateStrategyNone `json:"none,omitempty"` EntireString *SearchRuleUpdateStrategyEntireString `json:"entireValue,omitempty"` JSON *SearchRuleUpdateStrategyJSON `json:"json,omitempty"` YAML *SearchRuleUpdateStrategyYAML `json:"yaml,omitempty"` }
type SearchRuleUpdateStrategyEntireString ¶ added in v0.41.0
type SearchRuleUpdateStrategyEntireString struct{}
type SearchRuleUpdateStrategyJSON ¶ added in v0.41.0
type SearchRuleUpdateStrategyJSON struct {
SearchRules []SearchRule `json:"searchRules,omitempty"`
}
type SearchRuleUpdateStrategyNone ¶ added in v0.41.0
type SearchRuleUpdateStrategyNone struct{}
type SearchRuleUpdateStrategyYAML ¶ added in v0.41.0
type SearchRuleUpdateStrategyYAML struct {
SearchRules []SearchRule `json:"searchRules,omitempty"`
}
type SearchRuleValueMatcher ¶ added in v0.41.0
type Source ¶
type Source struct { ImageRef Path string Docker *SourceDockerOpts Pack *SourcePackOpts KubectlBuildkit *SourceKubectlBuildkitOpts Ko *SourceKoOpts Bazel *SourceBazelOpts }
type SourceBazelOpts ¶ added in v0.41.0
type SourceBazelOpts struct {
Run SourceBazelRunOpts
}
type SourceBazelRunOpts ¶ added in v0.41.0
type SourceDockerBuildOpts ¶ added in v0.10.0
type SourceDockerBuildxOpts ¶ added in v0.41.0
type SourceDockerOpts ¶ added in v0.10.0
type SourceDockerOpts struct { Build SourceDockerBuildOpts Buildx *SourceDockerBuildxOpts }
type SourceKoBuildOpts ¶ added in v0.41.0
type SourceKoBuildOpts struct {
RawOptions *[]string `json:"rawOptions"`
}
type SourceKoOpts ¶ added in v0.41.0
type SourceKoOpts struct {
Build SourceKoBuildOpts
}
type SourceKubectlBuildkitBuildOpts ¶ added in v0.41.0
type SourceKubectlBuildkitOpts ¶ added in v0.41.0
type SourceKubectlBuildkitOpts struct {
Build SourceKubectlBuildkitBuildOpts
}
type SourcePackBuildOpts ¶ added in v0.12.0
type SourcePackOpts ¶ added in v0.12.0
type SourcePackOpts struct {
Build SourcePackBuildOpts
}
Click to show internal directories.
Click to hide internal directories.