Help us shape the future of Go! Take the 2026 Go Developer Survey

resources

package
v0.34.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ProviderConfigHelmGVK is the GroupVersionKind used for
	// provider-helm ProviderConfig.
	ProviderConfigHelmGVK = schema.GroupVersionKind{
		Group:   "helm.crossplane.io",
		Version: "v1beta1",
		Kind:    kind,
	}
	// ProviderConfigKubernetesGVK is the GroupVersionKind used for
	// provider-kubernetes ProviderConfig.
	ProviderConfigKubernetesGVK = schema.GroupVersionKind{
		Group:   "kubernetes.crossplane.io",
		Version: "v1alpha1",
		Kind:    kind,
	}
)
View Source
var (
	// ControlPlaneGVK is the GroupVersionKind used for
	// provider-kubernetes ProviderConfig.
	ControlPlaneGVK = schema.GroupVersionKind{
		Group:   "spaces.upbound.io",
		Version: "v1beta1",
		Kind:    "ControlPlane",
	}
)
View Source
var (
	// ControllerConfigGRV is the GroupVersionResource used for
	// the Crossplane ControllerConfig.
	ControllerConfigGRV = schema.GroupVersionResource{
		Group:    "pkg.crossplane.io",
		Version:  "v1alpha1",
		Resource: "controllerconfigs",
	}
)
View Source
var (
	// Domain specifies the demo Upbound domain.
	// NOTE(tnthornton) this field is a temporary measure that will be removed
	// when the Custom Resource exposes the status.domain field.
	Domain = "local.upbound.io"
)

Functions

This section is empty.

Types

type ControlPlane

type ControlPlane struct {
	unstructured.Unstructured
}

ControlPlane represents the ControlPlane CustomResource and extends an unstructured.Unstructured.

func (*ControlPlane) GetAge

func (c *ControlPlane) GetAge() *time.Duration

func (*ControlPlane) GetCondition

func (c *ControlPlane) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition returns the condition for the given xpv1.ConditionType if it exists, otherwise returns nil.

func (*ControlPlane) GetConnectionSecretToReference

func (c *ControlPlane) GetConnectionSecretToReference() *xpv1.SecretReference

GetConnectionSecretToReference of this control plane.

func (*ControlPlane) GetControlPlaneID

func (c *ControlPlane) GetControlPlaneID() string

GetControlPlaneID returns the MXP ID associated with the ControlPlane.

func (*ControlPlane) GetCrossplaneVersion

func (c *ControlPlane) GetCrossplaneVersion() string

func (*ControlPlane) GetMessage

func (c *ControlPlane) GetMessage() string

func (*ControlPlane) GetUnstructured

func (c *ControlPlane) GetUnstructured() *unstructured.Unstructured

GetUnstructured returns the underlying *unstructured.Unstructured.

func (*ControlPlane) SetConditions

func (c *ControlPlane) SetConditions(conditions ...xpv1.Condition)

SetConditions of this composite resource claim.

func (*ControlPlane) SetControlPlaneID

func (c *ControlPlane) SetControlPlaneID(id string)

SetControlPlaneID for the MXP ID associated with the control plane.

func (*ControlPlane) SetMessage added in v0.32.1

func (c *ControlPlane) SetMessage(msg string)

func (*ControlPlane) SetWriteConnectionSecretToReference

func (c *ControlPlane) SetWriteConnectionSecretToReference(ref *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this control plane.

type ControllerConfig

type ControllerConfig struct {
	unstructured.Unstructured
}

ControllerConfig represents a Crossplane ControllerConfig.

func (*ControllerConfig) GetUnstructured

func (c *ControllerConfig) GetUnstructured() *unstructured.Unstructured

GetUnstructured returns the unstructured representation of the package.

func (*ControllerConfig) SetServiceAccountName

func (c *ControllerConfig) SetServiceAccountName(name string)

SetServiceAccountName for the ControllerConfig.

type Deployment

type Deployment struct {
	appsv1.Deployment
}

Deployment extends an appsv1.Deployment.

func (*Deployment) GetCondition

GetCondition returns the condition for the given DeploymentConditionType if it exists, otherwise returns nil.

type HostCluster

type HostCluster struct {
	unstructured.Unstructured
}

HostCluster represents the HostCluster CustomResource and extends an unstructured.Unstructured.

func (*HostCluster) GetCondition

func (h *HostCluster) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition returns the condition for the given xpv1.ConditionType if it exists, otherwise returns nil.

func (*HostCluster) GetUnstructured

func (h *HostCluster) GetUnstructured() *unstructured.Unstructured

GetUnstructured returns the underlying *unstructured.Unstructured.

func (*HostCluster) SetCompositionSelector

func (h *HostCluster) SetCompositionSelector(sel *metav1.LabelSelector)

SetCompositionSelector of this composite resource claim.

type Package

type Package struct {
	unstructured.Unstructured
}

Package represents a Crossplane Package.

func (*Package) GetHealthy

func (p *Package) GetHealthy() bool

GetHealthy checks whether a package is healhty. If health cannot be determined, false is always returned.

func (*Package) GetInstalled

func (p *Package) GetInstalled() bool

GetInstalled checks whether a package is installed. If installation status cannot be determined, false is always returned.

func (*Package) GetUnstructured

func (p *Package) GetUnstructured() *unstructured.Unstructured

GetUnstructured returns the unstructured representation of the package.

func (*Package) SetControllerConfigRef

func (p *Package) SetControllerConfigRef(ref xppkgv1.ControllerConfigReference)

SetControllerConfigRef sets the controllerConfigRef on the package.

func (*Package) SetPackage

func (p *Package) SetPackage(pkg string)

SetPackage sets the package reference.

type ProviderConfig

type ProviderConfig struct {
	unstructured.Unstructured
}

ProviderConfig represents a Crossplane ProviderConfig.

func (*ProviderConfig) GetUnstructured

func (p *ProviderConfig) GetUnstructured() *unstructured.Unstructured

GetUnstructured returns the unstructured representation of the package.

func (*ProviderConfig) SetCredentialsSource

func (p *ProviderConfig) SetCredentialsSource(src xpv1.CredentialsSource)

SetCredentialsSource for the Provider.

type Upbound

type Upbound struct {
	unstructured.Unstructured
}

Upbound represents the Upbound CustomResource and extends an unstructured.Unstructured.

func (*Upbound) GetCondition

func (s *Upbound) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition returns the condition for the given xpv1.ConditionType if it exists, otherwise returns nil.

func (*Upbound) GetDomain

func (s *Upbound) GetDomain() string

GetDomain returns the domain field from the Upbound CustomResource. NOTE(tnthornton) this field does not yet exist on the CustomResource, but will in the near future.

func (*Upbound) GetExternalIP

func (s *Upbound) GetExternalIP() string

GetExternalIP returns the externalIP field from the Upbound CustomResource. NOTE(tnthornton) this field does not yet exist on the CustomResource, but will in the near future.

Jump to

Keyboard shortcuts

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