adapters

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 5 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) 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) 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 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) 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) 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
	SetStatusCollisionCount(*int32)
	GetStatusCollisionCount() *int32
	GetStatusTemplateHash() string
	SetStatusTemplateHash(templateHash string)
	SetSelector(labels map[string]string)
}

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