adapters

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 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 added in v1.6.0

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 added in v1.5.0

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

func (*ClusterObjectDeployment) SetStatusRevision added in v1.6.0

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 added in v1.6.0

type GenericClusterPackage struct {
	corev1alpha1.ClusterPackage
}

func (*GenericClusterPackage) ClientObject added in v1.6.0

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

func (*GenericClusterPackage) GetConditions added in v1.6.0

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

func (*GenericClusterPackage) GetImage added in v1.6.0

func (a *GenericClusterPackage) GetImage() string

func (*GenericClusterPackage) GetSpecHash added in v1.6.0

func (a *GenericClusterPackage) GetSpecHash() string

func (*GenericClusterPackage) GetStatusRevision added in v1.6.0

func (a *GenericClusterPackage) GetStatusRevision() int64

func (*GenericClusterPackage) GetUnpackedHash added in v1.6.0

func (a *GenericClusterPackage) GetUnpackedHash() string

func (*GenericClusterPackage) SetStatusRevision added in v1.6.0

func (a *GenericClusterPackage) SetStatusRevision(rev int64)

func (*GenericClusterPackage) SetUnpackedHash added in v1.6.0

func (a *GenericClusterPackage) SetUnpackedHash(hash string)

func (*GenericClusterPackage) TemplateContext added in v1.6.0

func (*GenericClusterPackage) UpdatePhase added in v1.6.0

func (a *GenericClusterPackage) UpdatePhase()

type GenericPackage added in v1.6.0

type GenericPackage struct {
	corev1alpha1.Package
}

func (*GenericPackage) ClientObject added in v1.6.0

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

func (*GenericPackage) GetConditions added in v1.6.0

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

func (*GenericPackage) GetImage added in v1.6.0

func (a *GenericPackage) GetImage() string

func (*GenericPackage) GetSpecHash added in v1.6.0

func (a *GenericPackage) GetSpecHash() string

func (*GenericPackage) GetStatusRevision added in v1.6.0

func (a *GenericPackage) GetStatusRevision() int64

func (*GenericPackage) GetUnpackedHash added in v1.6.0

func (a *GenericPackage) GetUnpackedHash() string

func (*GenericPackage) SetStatusRevision added in v1.6.0

func (a *GenericPackage) SetStatusRevision(rev int64)

func (*GenericPackage) SetUnpackedHash added in v1.6.0

func (a *GenericPackage) SetUnpackedHash(hash string)

func (*GenericPackage) TemplateContext added in v1.6.0

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

func (*GenericPackage) UpdatePhase added in v1.6.0

func (a *GenericPackage) UpdatePhase()

type GenericPackageAccessor added in v1.6.0

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

	TemplateContext() manifestsv1alpha1.TemplateContext
	SetStatusRevision(rev int64)
	GetStatusRevision() int64
	// contains filtered or unexported methods
}

func NewGenericClusterPackage added in v1.6.0

func NewGenericClusterPackage(scheme *runtime.Scheme) GenericPackageAccessor

func NewGenericPackage added in v1.6.0

func NewGenericPackage(scheme *runtime.Scheme) GenericPackageAccessor

type GenericPackageFactory added in v1.6.0

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 added in v1.6.0

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 added in v1.5.0

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

func (*ObjectDeployment) SetStatusRevision added in v1.6.0

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