Documentation ¶
Index ¶
- Constants
- func DefaultTimestampProvider() defaultTimestampProvider
- func SummarizeChange(ctx context.Context, keychain authn.Keychain, desc DependencyDescriptor, ...) (hasChanges bool, changes string, err error)
- type API
- type ClusterBuilder
- type ClusterBuilderV1
- type ClusterStack
- type ClusterStore
- type DefaultRelocatedImageProvider
- type DependencyDescriptor
- type DependencyDescriptorV1
- type Differ
- type ImportDiffer
- func (id *ImportDiffer) DiffClusterBuilder(oldCB *v1alpha2.ClusterBuilder, newCB ClusterBuilder) (string, error)
- func (id *ImportDiffer) DiffClusterStack(keychain authn.Keychain, kpConfig config.KpConfig, ...) (diff string, err error)
- func (id *ImportDiffer) DiffClusterStore(keychain authn.Keychain, kpConfig config.KpConfig, ...) (string, error)
- func (id *ImportDiffer) DiffLifecycle(keychain authn.Keychain, kpConfig config.KpConfig, oldImg string, ...) (string, error)
- type Importer
- func (i *Importer) ImportDescriptor(ctx context.Context, keychain authn.Keychain, kpConfig config.KpConfig, ...) ([]runtime.Object, error)
- func (i *Importer) ImportDescriptorDryRun(ctx context.Context, keychain authn.Keychain, kpConfig config.KpConfig, ...) ([]runtime.Object, error)
- func (i *Importer) ReadDescriptor(rawDescriptor string) (DependencyDescriptor, error)
- type Lifecycle
- type Printer
- type RelocatedImageProvider
- type Source
- type TimestampProvider
Constants ¶
View Source
const APIVersionV1 = "kp.kpack.io/v1alpha1"
View Source
const CurrentAPIVersion = "kp.kpack.io/v1alpha3"
Variables ¶
This section is empty.
Functions ¶
func DefaultTimestampProvider ¶
func DefaultTimestampProvider() defaultTimestampProvider
Types ¶
type ClusterBuilder ¶
type ClusterBuilder struct { Name string `yaml:"name"` ClusterStack string `yaml:"clusterStack"` ClusterStore string `yaml:"clusterStore"` Order []corev1alpha1.OrderEntry `yaml:"order"` }
type ClusterBuilderV1 ¶
type ClusterBuilderV1 struct { Name string `yaml:"name"` Stack string `yaml:"stack"` Store string `yaml:"store"` Order []corev1alpha1.OrderEntry `yaml:"order"` }
type ClusterStack ¶
type ClusterStore ¶
type DefaultRelocatedImageProvider ¶ added in v0.4.0
type DefaultRelocatedImageProvider struct {
// contains filtered or unexported fields
}
func NewDefaultRelocatedImageProvider ¶ added in v0.4.0
func NewDefaultRelocatedImageProvider(fetcher registry.Fetcher) *DefaultRelocatedImageProvider
func (*DefaultRelocatedImageProvider) RelocatedImage ¶ added in v0.4.0
type DependencyDescriptor ¶
type DependencyDescriptor struct { APIVersion string `yaml:"apiVersion"` Kind string `yaml:"kind"` DefaultClusterStack string `yaml:"defaultClusterStack"` DefaultClusterBuilder string `yaml:"defaultClusterBuilder"` Lifecycle Lifecycle `yaml:"lifecycle"` ClusterStores []ClusterStore `yaml:"clusterStores"` ClusterStacks []ClusterStack `yaml:"clusterStacks"` ClusterBuilders []ClusterBuilder `yaml:"clusterBuilders"` }
func (DependencyDescriptor) GetClusterBuilders ¶
func (d DependencyDescriptor) GetClusterBuilders() []ClusterBuilder
func (DependencyDescriptor) GetClusterStacks ¶
func (d DependencyDescriptor) GetClusterStacks() []ClusterStack
func (DependencyDescriptor) GetLifecycleImage ¶
func (d DependencyDescriptor) GetLifecycleImage() string
func (DependencyDescriptor) HasLifecycleImage ¶
func (d DependencyDescriptor) HasLifecycleImage() bool
func (DependencyDescriptor) Validate ¶
func (d DependencyDescriptor) Validate() error
type DependencyDescriptorV1 ¶
type DependencyDescriptorV1 struct { APIVersion string `yaml:"apiVersion"` Kind string `yaml:"kind"` DefaultStack string `yaml:"defaultStack"` DefaultClusterBuilder string `yaml:"defaultClusterBuilder"` Stores []ClusterStore `yaml:"stores"` Stacks []ClusterStack `yaml:"stacks"` ClusterBuilders []ClusterBuilderV1 `yaml:"clusterBuilders"` }
func (DependencyDescriptorV1) ToNextVersion ¶
func (d1 DependencyDescriptorV1) ToNextVersion() DependencyDescriptor
type ImportDiffer ¶
type ImportDiffer struct { Differ Differ RelocatedImageProvider RelocatedImageProvider }
func (*ImportDiffer) DiffClusterBuilder ¶
func (id *ImportDiffer) DiffClusterBuilder(oldCB *v1alpha2.ClusterBuilder, newCB ClusterBuilder) (string, error)
func (*ImportDiffer) DiffClusterStack ¶
func (id *ImportDiffer) DiffClusterStack(keychain authn.Keychain, kpConfig config.KpConfig, oldCS *v1alpha2.ClusterStack, newCS ClusterStack) (diff string, err error)
func (*ImportDiffer) DiffClusterStore ¶
func (id *ImportDiffer) DiffClusterStore(keychain authn.Keychain, kpConfig config.KpConfig, oldCS *v1alpha2.ClusterStore, newCS ClusterStore) (string, error)
type Importer ¶
type Importer struct {
// contains filtered or unexported fields
}
func NewImporter ¶
func NewImporter(printer Printer, k8sClient kubernetes.Interface, client versioned.Interface, fetcher registry.Fetcher, relocator registry.Relocator, waiter commands.ResourceWaiter, timestampProvider TimestampProvider) *Importer
func (*Importer) ImportDescriptor ¶
func (*Importer) ImportDescriptorDryRun ¶
func (*Importer) ReadDescriptor ¶
func (i *Importer) ReadDescriptor(rawDescriptor string) (DependencyDescriptor, error)
type RelocatedImageProvider ¶ added in v0.4.0
type TimestampProvider ¶
type TimestampProvider interface {
GetTimestamp() string
}
Click to show internal directories.
Click to hide internal directories.