adapters

package
v1.9.4 Latest Latest
Warning

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

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

Documentation

Overview

The adapters package contains interface implementations to use Cluster- and non Cluster- prefixed APIs via the same code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterObjectDeployment

type ClusterObjectDeployment struct {
	corev1alpha1.ClusterObjectDeployment
}

func (*ClusterObjectDeployment) ClientObject

func (a *ClusterObjectDeployment) ClientObject() client.Object

func (*ClusterObjectDeployment) GetConditions

func (a *ClusterObjectDeployment) GetConditions() *[]metav1.Condition

func (*ClusterObjectDeployment) GetObjectSetTemplate

func (a *ClusterObjectDeployment) GetObjectSetTemplate() corev1alpha1.ObjectSetTemplate

func (*ClusterObjectDeployment) GetRevisionHistoryLimit

func (a *ClusterObjectDeployment) GetRevisionHistoryLimit() *int32

func (*ClusterObjectDeployment) GetSelector

func (a *ClusterObjectDeployment) GetSelector() metav1.LabelSelector

func (*ClusterObjectDeployment) GetStatusCollisionCount

func (a *ClusterObjectDeployment) GetStatusCollisionCount() *int32

func (*ClusterObjectDeployment) GetStatusRevision

func (a *ClusterObjectDeployment) GetStatusRevision() int64

func (*ClusterObjectDeployment) GetStatusTemplateHash

func (a *ClusterObjectDeployment) GetStatusTemplateHash() string

func (*ClusterObjectDeployment) GetTemplateSpec

func (*ClusterObjectDeployment) SetSelector

func (a *ClusterObjectDeployment) SetSelector(labels map[string]string)

func (*ClusterObjectDeployment) SetStatusCollisionCount

func (a *ClusterObjectDeployment) SetStatusCollisionCount(cc *int32)

func (*ClusterObjectDeployment) SetStatusConditions

func (a *ClusterObjectDeployment) SetStatusConditions(conds ...metav1.Condition)

func (*ClusterObjectDeployment) SetStatusRevision

func (a *ClusterObjectDeployment) SetStatusRevision(r int64)

func (*ClusterObjectDeployment) SetStatusTemplateHash

func (a *ClusterObjectDeployment) SetStatusTemplateHash(templateHash string)

func (*ClusterObjectDeployment) SetTemplateSpec

func (*ClusterObjectDeployment) UpdatePhase

func (a *ClusterObjectDeployment) UpdatePhase()

type ClusterObjectSlice

type ClusterObjectSlice struct {
	corev1alpha1.ClusterObjectSlice
}

func (*ClusterObjectSlice) ClientObject

func (a *ClusterObjectSlice) ClientObject() client.Object

func (*ClusterObjectSlice) GetObjects

func (*ClusterObjectSlice) SetObjects

func (a *ClusterObjectSlice) SetObjects(objects []corev1alpha1.ObjectSetObject)

type ClusterObjectSliceList

type ClusterObjectSliceList struct {
	corev1alpha1.ClusterObjectSliceList
}

func (*ClusterObjectSliceList) ClientObjectList

func (a *ClusterObjectSliceList) ClientObjectList() client.ObjectList

func (*ClusterObjectSliceList) GetItems

type GenericClusterPackage

type GenericClusterPackage struct {
	corev1alpha1.ClusterPackage
}

func (*GenericClusterPackage) ClientObject

func (a *GenericClusterPackage) ClientObject() client.Object

func (*GenericClusterPackage) GetComponent added in v1.9.1

func (a *GenericClusterPackage) GetComponent() string

func (*GenericClusterPackage) GetConditions

func (a *GenericClusterPackage) GetConditions() *[]metav1.Condition

func (*GenericClusterPackage) GetImage

func (a *GenericClusterPackage) GetImage() string

func (*GenericClusterPackage) GetSpecHash

func (a *GenericClusterPackage) GetSpecHash(packageHashModifier *int32) string

func (*GenericClusterPackage) GetStatusRevision

func (a *GenericClusterPackage) GetStatusRevision() int64

func (*GenericClusterPackage) GetUnpackedHash

func (a *GenericClusterPackage) GetUnpackedHash() string

func (*GenericClusterPackage) SetStatusRevision

func (a *GenericClusterPackage) SetStatusRevision(rev int64)

func (*GenericClusterPackage) SetUnpackedHash

func (a *GenericClusterPackage) SetUnpackedHash(hash string)

func (*GenericClusterPackage) TemplateContext

func (a *GenericClusterPackage) TemplateContext() manifests.TemplateContext

func (*GenericClusterPackage) UpdatePhase

func (a *GenericClusterPackage) UpdatePhase()

type GenericPackage

type GenericPackage struct {
	corev1alpha1.Package
}

func (*GenericPackage) ClientObject

func (a *GenericPackage) ClientObject() client.Object

func (*GenericPackage) GetComponent added in v1.9.1

func (a *GenericPackage) GetComponent() string

func (*GenericPackage) GetConditions

func (a *GenericPackage) GetConditions() *[]metav1.Condition

func (*GenericPackage) GetImage

func (a *GenericPackage) GetImage() string

func (*GenericPackage) GetSpecHash

func (a *GenericPackage) GetSpecHash(packageHashModifier *int32) string

func (*GenericPackage) GetStatusRevision

func (a *GenericPackage) GetStatusRevision() int64

func (*GenericPackage) GetUnpackedHash

func (a *GenericPackage) GetUnpackedHash() string

func (*GenericPackage) SetStatusRevision

func (a *GenericPackage) SetStatusRevision(rev int64)

func (*GenericPackage) SetUnpackedHash

func (a *GenericPackage) SetUnpackedHash(hash string)

func (*GenericPackage) TemplateContext

func (a *GenericPackage) TemplateContext() manifests.TemplateContext

func (*GenericPackage) UpdatePhase

func (a *GenericPackage) UpdatePhase()

type GenericPackageAccessor

type GenericPackageAccessor interface {
	ClientObject() client.Object
	UpdatePhase()
	GetConditions() *[]metav1.Condition
	GetImage() string
	GetSpecHash(packageHashModifier *int32) string
	GetUnpackedHash() string
	SetUnpackedHash(hash string)

	TemplateContext() manifests.TemplateContext
	SetStatusRevision(rev int64)
	GetStatusRevision() int64
	GetComponent() string
	// contains filtered or unexported methods
}

func NewGenericClusterPackage

func NewGenericClusterPackage(scheme *runtime.Scheme) GenericPackageAccessor

func NewGenericPackage

func NewGenericPackage(scheme *runtime.Scheme) GenericPackageAccessor

type GenericPackageFactory

type GenericPackageFactory func(scheme *runtime.Scheme) GenericPackageAccessor

type ObjectDeployment

type ObjectDeployment struct {
	corev1alpha1.ObjectDeployment
}

func (*ObjectDeployment) ClientObject

func (a *ObjectDeployment) ClientObject() client.Object

func (*ObjectDeployment) GetConditions

func (a *ObjectDeployment) GetConditions() *[]metav1.Condition

func (*ObjectDeployment) GetObjectSetTemplate

func (a *ObjectDeployment) GetObjectSetTemplate() corev1alpha1.ObjectSetTemplate

func (*ObjectDeployment) GetRevisionHistoryLimit

func (a *ObjectDeployment) GetRevisionHistoryLimit() *int32

func (*ObjectDeployment) GetSelector

func (a *ObjectDeployment) GetSelector() metav1.LabelSelector

func (*ObjectDeployment) GetStatusCollisionCount

func (a *ObjectDeployment) GetStatusCollisionCount() *int32

func (*ObjectDeployment) GetStatusRevision

func (a *ObjectDeployment) GetStatusRevision() int64

func (*ObjectDeployment) GetStatusTemplateHash

func (a *ObjectDeployment) GetStatusTemplateHash() string

func (*ObjectDeployment) GetTemplateSpec

func (*ObjectDeployment) SetSelector

func (a *ObjectDeployment) SetSelector(labels map[string]string)

func (*ObjectDeployment) SetStatusCollisionCount

func (a *ObjectDeployment) SetStatusCollisionCount(cc *int32)

func (*ObjectDeployment) SetStatusConditions

func (a *ObjectDeployment) SetStatusConditions(conds ...metav1.Condition)

func (*ObjectDeployment) SetStatusRevision

func (a *ObjectDeployment) SetStatusRevision(r int64)

func (*ObjectDeployment) SetStatusTemplateHash

func (a *ObjectDeployment) SetStatusTemplateHash(templateHash string)

func (*ObjectDeployment) SetTemplateSpec

func (a *ObjectDeployment) SetTemplateSpec(spec corev1alpha1.ObjectSetTemplateSpec)

func (*ObjectDeployment) UpdatePhase

func (a *ObjectDeployment) UpdatePhase()

type ObjectDeploymentAccessor

type ObjectDeploymentAccessor interface {
	ClientObject() client.Object
	UpdatePhase()
	GetConditions() *[]metav1.Condition
	GetSelector() metav1.LabelSelector
	GetObjectSetTemplate() corev1alpha1.ObjectSetTemplate
	SetTemplateSpec(corev1alpha1.ObjectSetTemplateSpec)
	GetTemplateSpec() corev1alpha1.ObjectSetTemplateSpec
	GetRevisionHistoryLimit() *int32
	SetStatusConditions(...metav1.Condition)
	SetStatusCollisionCount(*int32)
	GetStatusCollisionCount() *int32
	GetGeneration() int64
	GetStatusTemplateHash() string
	SetStatusTemplateHash(templateHash string)
	SetSelector(labels map[string]string)
	SetStatusRevision(r int64)
	GetStatusRevision() int64
}

func NewClusterObjectDeployment

func NewClusterObjectDeployment(scheme *runtime.Scheme) ObjectDeploymentAccessor

func NewObjectDeployment

func NewObjectDeployment(scheme *runtime.Scheme) ObjectDeploymentAccessor

type ObjectDeploymentFactory

type ObjectDeploymentFactory func(
	scheme *runtime.Scheme) ObjectDeploymentAccessor

type ObjectSlice

type ObjectSlice struct {
	corev1alpha1.ObjectSlice
}

func (*ObjectSlice) ClientObject

func (a *ObjectSlice) ClientObject() client.Object

func (*ObjectSlice) GetObjects

func (a *ObjectSlice) GetObjects() []corev1alpha1.ObjectSetObject

func (*ObjectSlice) SetObjects

func (a *ObjectSlice) SetObjects(objects []corev1alpha1.ObjectSetObject)

type ObjectSliceAccessor

type ObjectSliceAccessor interface {
	ClientObject() client.Object
	GetObjects() []corev1alpha1.ObjectSetObject
	SetObjects([]corev1alpha1.ObjectSetObject)
}

func NewClusterObjectSlice

func NewClusterObjectSlice(scheme *runtime.Scheme) ObjectSliceAccessor

func NewObjectSlice

func NewObjectSlice(scheme *runtime.Scheme) ObjectSliceAccessor

type ObjectSliceFactory

type ObjectSliceFactory func(
	scheme *runtime.Scheme) ObjectSliceAccessor

type ObjectSliceList

type ObjectSliceList struct {
	corev1alpha1.ObjectSliceList
}

func (*ObjectSliceList) ClientObjectList

func (a *ObjectSliceList) ClientObjectList() client.ObjectList

func (*ObjectSliceList) GetItems

func (a *ObjectSliceList) GetItems() []ObjectSliceAccessor

type ObjectSliceListAccessor

type ObjectSliceListAccessor interface {
	ClientObjectList() client.ObjectList
	GetItems() []ObjectSliceAccessor
}

func NewClusterObjectSliceList

func NewClusterObjectSliceList(scheme *runtime.Scheme) ObjectSliceListAccessor

func NewObjectSliceList

func NewObjectSliceList(scheme *runtime.Scheme) ObjectSliceListAccessor

type ObjectSliceListFactory

type ObjectSliceListFactory func(
	scheme *runtime.Scheme) ObjectSliceListAccessor

Jump to

Keyboard shortcuts

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