Documentation ¶
Index ¶
- func GenerateContainerRegistry(name string, in v1alpha1.DOContainerRegistryParameters, ...)
- func GenerateContainerRegistryObservation(registry *godo.Registry, subscription *godo.RegistrySubscription) v1alpha1.DOContainerRegistryObservation
- func GenerateKubernetes(name string, in v1alpha1.DOKubernetesClusterParameters, ...)
- func GenerateObservation(observed *godo.KubernetesCluster) v1alpha1.DOKubernetesClusterObservation
- func LateInitializeSpec(p *v1alpha1.DOKubernetesClusterParameters, observed godo.KubernetesCluster)
- func RegistryLateInitializeSpec(p *v1alpha1.DOContainerRegistryParameters, observed godo.Registry)
- func SetCondition(cr *v1alpha1.DOKubernetesCluster)
- type RegistryClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateContainerRegistry ¶ added in v0.2.0
func GenerateContainerRegistry(name string, in v1alpha1.DOContainerRegistryParameters, create *godo.RegistryCreateRequest)
GenerateContainerRegistry generates *godo.RegistryCreateRequest instance from DOContainerRegistryParameters.
func GenerateContainerRegistryObservation ¶ added in v0.2.0
func GenerateContainerRegistryObservation(registry *godo.Registry, subscription *godo.RegistrySubscription) v1alpha1.DOContainerRegistryObservation
GenerateContainerRegistryObservation generates DOContainerRegistryObservation instance from godo.Registry and godo.RegistrySubscription
func GenerateKubernetes ¶
func GenerateKubernetes(name string, in v1alpha1.DOKubernetesClusterParameters, create *godo.KubernetesClusterCreateRequest)
GenerateKubernetes generates *godo.KubernetesRequest instance from DOKubernetesClusterParameters.
func GenerateObservation ¶ added in v0.2.0
func GenerateObservation(observed *godo.KubernetesCluster) v1alpha1.DOKubernetesClusterObservation
GenerateObservation generates a DOKubernetesClusterObservation from a given observed state from godo
func LateInitializeSpec ¶
func LateInitializeSpec(p *v1alpha1.DOKubernetesClusterParameters, observed godo.KubernetesCluster)
LateInitializeSpec updates any unset (i.e. nil) optional fields of the supplied DOKubernetesClusterParameters that are set (i.e. non-zero) on the supplied Kubernetes Cluster.
func RegistryLateInitializeSpec ¶ added in v0.2.0
func RegistryLateInitializeSpec(p *v1alpha1.DOContainerRegistryParameters, observed godo.Registry)
RegistryLateInitializeSpec updates any unset (i.e. nil) optional fields of the supplied DOContainerRegistryParameters that are set (i.e. non-zero) on the supplied Container Registry.
func SetCondition ¶ added in v0.2.0
func SetCondition(cr *v1alpha1.DOKubernetesCluster)
SetCondition sets the condition for a DOKubernetesCluster resource from its state
Types ¶
type RegistryClient ¶ added in v0.2.0
type RegistryClient interface { Get(context.Context) (*godo.Registry, *godo.Response, error) GetSubscription(context.Context) (*godo.RegistrySubscription, *godo.Response, error) Create(context.Context, *godo.RegistryCreateRequest) (*godo.Registry, *godo.Response, error) UpdateSubscription(context.Context, *godo.RegistrySubscriptionUpdateRequest) (*godo.RegistrySubscription, *godo.Response, error) Delete(context.Context) (*godo.Response, error) }
RegistryClient is the external client used for DOContainerRegistry Custom Resource