_import

package
v0.17.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const CurrentAPIVersion = descriptor.APIVersionV1

Variables

This section is empty.

Functions

func DefaultTimestampProvider

func DefaultTimestampProvider() defaultTimestampProvider

func SummarizeChange

func SummarizeChange(
	ctx context.Context,
	keychain authn.Keychain,
	desc DependencyDescriptor,
	kpConfig config.KpConfig,
	relocatedImageProvider RelocatedImageProvider,
	differ Differ, cs buildk8s.ClientSet) (hasChanges bool, changes string, err error)

func ValidateDescriptor added in v0.17.1

func ValidateDescriptor(d DependencyDescriptor) error

Types

type API

type API struct {
	Version string `yaml:"apiVersion" json:"apiVersion"`
}

type ClusterBuilder

type ClusterBuilder = descriptor.ClusterBuilder

Type aliases to use types from the descriptor package

func GetClusterBuilders added in v0.17.1

func GetClusterBuilders(d DependencyDescriptor) []ClusterBuilder

type ClusterBuildpack added in v0.17.1

type ClusterBuildpack = descriptor.ClusterBuildpack

Type aliases to use types from the descriptor package

func GetClusterBuildpacks added in v0.17.1

func GetClusterBuildpacks(d DependencyDescriptor) []ClusterBuildpack

type ClusterLifecycle added in v0.17.1

type ClusterLifecycle = descriptor.ClusterLifecycle

Type aliases to use types from the descriptor package

func GetClusterLifecycles added in v0.17.1

func GetClusterLifecycles(d DependencyDescriptor) []ClusterLifecycle

type ClusterStack

type ClusterStack = descriptor.ClusterStack

Type aliases to use types from the descriptor package

func GetClusterStacks added in v0.17.1

func GetClusterStacks(d DependencyDescriptor) []ClusterStack

type ClusterStore

type ClusterStore = descriptor.ClusterStore

Type aliases to use types from the descriptor package

func GetClusterStores added in v0.17.1

func GetClusterStores(d DependencyDescriptor) []ClusterStore

type DefaultRelocatedImageProvider

type DefaultRelocatedImageProvider struct {
	// contains filtered or unexported fields
}

func NewDefaultRelocatedImageProvider

func NewDefaultRelocatedImageProvider(fetcher registry.Fetcher) *DefaultRelocatedImageProvider

func (*DefaultRelocatedImageProvider) RelocatedImage

func (r *DefaultRelocatedImageProvider) RelocatedImage(keychain authn.Keychain, kpConfig config.KpConfig, srcImage string) (string, error)

type DependencyDescriptor

type DependencyDescriptor = descriptor.DependencyDescriptor

Type aliases to use types from the descriptor package

type DependencyDescriptorV1Alpha1 added in v0.17.1

type DependencyDescriptorV1Alpha1 = descriptor.DependencyDescriptorV1Alpha1

Type aliases to use types from the descriptor package

type DependencyDescriptorV1Alpha3 added in v0.17.1

type DependencyDescriptorV1Alpha3 = descriptor.DependencyDescriptorV1Alpha3

Type aliases to use types from the descriptor package

type Differ

type Differ interface {
	Diff(dOld, dNew interface{}) (string, error)
}

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) DiffClusterBuildpack added in v0.17.1

func (id *ImportDiffer) DiffClusterBuildpack(keychain authn.Keychain, kpConfig config.KpConfig, oldCBP *v1alpha2.ClusterBuildpack, newCBP ClusterBuildpack) (diff string, err error)

func (*ImportDiffer) DiffClusterLifecycle added in v0.17.1

func (id *ImportDiffer) DiffClusterLifecycle(keychain authn.Keychain, kpConfig config.KpConfig, oldCL *v1alpha2.ClusterLifecycle, newCL ClusterLifecycle) (diff string, err 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 (i *Importer) ImportDescriptor(ctx context.Context, keychain authn.Keychain, kpConfig config.KpConfig, rawDescriptor string) ([]runtime.Object, error)

func (*Importer) ImportDescriptorDryRun

func (i *Importer) ImportDescriptorDryRun(ctx context.Context, keychain authn.Keychain, kpConfig config.KpConfig, rawDescriptor string) ([]runtime.Object, error)

func (*Importer) ReadDescriptor

func (i *Importer) ReadDescriptor(rawDescriptor string) (DependencyDescriptor, error)

type Printer

type Printer interface {
	Printlnf(format string, args ...interface{}) error
	PrintStatus(format string, args ...interface{}) error
}

type RelocatedImageProvider

type RelocatedImageProvider interface {
	RelocatedImage(authn.Keychain, config.KpConfig, string) (string, error)
}

type Source

type Source = descriptor.Source

Type aliases to use types from the descriptor package

type TimestampProvider

type TimestampProvider interface {
	GetTimestamp() string
}

Directories

Path Synopsis
Package conversion provides types and functions to convert older API versions of dependency descriptors (v1alpha1, v1alpha3) to the current v1 format.
Package conversion provides types and functions to convert older API versions of dependency descriptors (v1alpha1, v1alpha3) to the current v1 format.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL