_import

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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

func SummarizeChange added in v0.2.0

func SummarizeChange(
	desc DependencyDescriptor,
	storeFactory *clusterstore.Factory, stackFactory *clusterstack.Factory,
	differ Differ, cs buildk8s.ClientSet) (hasChanges bool, changes string, err error)

Types

type API added in v0.1.3

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

type ClusterBuilder

type ClusterBuilder struct {
	Name         string                `yaml:"name"`
	ClusterStack string                `yaml:"clusterStack"`
	ClusterStore string                `yaml:"clusterStore"`
	Order        []v1alpha1.OrderEntry `yaml:"order"`
}

type ClusterBuilderV1 added in v0.1.3

type ClusterBuilderV1 struct {
	Name  string                `yaml:"name"`
	Stack string                `yaml:"stack"`
	Store string                `yaml:"store"`
	Order []v1alpha1.OrderEntry `yaml:"order"`
}

type ClusterStack added in v0.1.3

type ClusterStack struct {
	Name       string `yaml:"name"`
	BuildImage Source `yaml:"buildImage"`
	RunImage   Source `yaml:"runImage"`
}

type ClusterStore added in v0.1.3

type ClusterStore struct {
	Name    string   `yaml:"name"`
	Sources []Source `yaml:"sources"`
}

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 added in v0.1.3

func (d DependencyDescriptor) GetClusterBuilders() []ClusterBuilder

func (DependencyDescriptor) GetClusterStacks added in v0.1.3

func (d DependencyDescriptor) GetClusterStacks() []ClusterStack

func (DependencyDescriptor) GetLifecycleImage added in v0.2.0

func (d DependencyDescriptor) GetLifecycleImage() string

func (DependencyDescriptor) HasLifecycleImage added in v0.2.0

func (d DependencyDescriptor) HasLifecycleImage() bool

func (DependencyDescriptor) Validate

func (d DependencyDescriptor) Validate() error

type DependencyDescriptorV1 added in v0.1.3

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 added in v0.1.3

func (d1 DependencyDescriptorV1) ToNextVersion() DependencyDescriptor

type Differ added in v0.1.3

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

type ImportDiffer added in v0.1.3

type ImportDiffer struct {
	Differ         Differ
	StoreRefGetter StoreRefGetter
	StackRefGetter StackRefGetter
}

func (*ImportDiffer) DiffClusterBuilder added in v0.1.3

func (id *ImportDiffer) DiffClusterBuilder(oldCB *v1alpha1.ClusterBuilder, newCB ClusterBuilder) (string, error)

func (*ImportDiffer) DiffClusterStack added in v0.1.3

func (id *ImportDiffer) DiffClusterStack(oldCS *v1alpha1.ClusterStack, newCS ClusterStack) (diff string, err error)

func (*ImportDiffer) DiffClusterStore added in v0.1.3

func (id *ImportDiffer) DiffClusterStore(oldCS *v1alpha1.ClusterStore, newCS ClusterStore) (string, error)

func (*ImportDiffer) DiffLifecycle added in v0.2.0

func (id *ImportDiffer) DiffLifecycle(oldImg string, newImg string) (string, error)

type Lifecycle added in v0.2.0

type Lifecycle Source

type Source

type Source struct {
	Image string `yaml:"image"`
}

type StackRefGetter added in v0.1.3

type StackRefGetter interface {
	RelocatedBuildImage(string) (string, error)
	RelocatedRunImage(string) (string, error)
}

type StoreRefGetter added in v0.1.3

type StoreRefGetter interface {
	RelocatedBuildpackage(string) (string, error)
}

Jump to

Keyboard shortcuts

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