Documentation ¶
Index ¶
Constants ¶
View Source
const ( LifecycleConfigName = "lifecycle-image" LifecycleConfigKey = "image" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.13.0
type Config struct { SystemNamespace string `json:"systemNamespace"` SystemServiceAccount string `json:"systemServiceAccount"` EnablePriorityClasses bool `json:"enablePriorityClasses"` MaximumPlatformApiVersion string `json:"maximumPlatformApiVersion"` SshTrustUnknownHosts bool `json:"sshTrustUnknownHosts"` }
type FeatureFlags ¶ added in v0.13.0
type Images ¶ added in v0.13.0
type Images struct { BuildInitImage string `json:"buildInitImage"` BuildInitWindowsImage string `json:"buildInitWindowsImage"` BuildWaiterImage string `json:"buildWaiterImage"` CompletionImage string `json:"completionImage"` CompletionWindowsImage string `json:"completionWindowsImage"` RebaseImage string `json:"rebaseImage"` }
func (*Images) ToBuildPodImages ¶ added in v0.13.0
func (i *Images) ToBuildPodImages() v1alpha2.BuildPodImages
TODO: evaluate if we can move the lifecycle_provider stuff out of this config package Ideally v1alpha2.BuildPodImages should either just use config.Images directly or be an alias to it. However this doesn't work right now because lifecycle_provider.go imports pkg/cnb which imports pkg/apis/build/v1alpha2 and thus creating an import cycle.
type LifecycleProvider ¶
type LifecycleProvider struct {
// contains filtered or unexported fields
}
func NewLifecycleProvider ¶
func NewLifecycleProvider(client RegistryClient, keychainFactory registry.KeychainFactory) *LifecycleProvider
func (*LifecycleProvider) AddEventHandler ¶
func (l *LifecycleProvider) AddEventHandler(handler func())
func (*LifecycleProvider) LayerForOS ¶
func (l *LifecycleProvider) LayerForOS(os string) (v1.Layer, cnb.LifecycleMetadata, error)
func (*LifecycleProvider) Metadata ¶ added in v0.13.0
func (l *LifecycleProvider) Metadata() (cnb.LifecycleMetadata, error)
func (*LifecycleProvider) UpdateImage ¶
func (l *LifecycleProvider) UpdateImage(cm *corev1.ConfigMap) error
Click to show internal directories.
Click to hide internal directories.