v1beta1

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1beta1 contains meta types used to configure Crossplane packages. +kubebuilder:object:generate=true +groupName=meta.pkg.crossplane.io +versionName=v1beta1

Index

Constants

View Source
const (
	Group   = "meta.pkg.crossplane.io"
	Version = "v1beta1"
)

Package type metadata.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects.
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

	// AddToScheme adds all registered types to scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	FunctionKind             = reflect.TypeOf(Function{}).Name()
	FunctionGroupKind        = schema.GroupKind{Group: Group, Kind: FunctionKind}.String()
	FunctionKindAPIVersion   = FunctionKind + "." + SchemeGroupVersion.String()
	FunctionGroupVersionKind = SchemeGroupVersion.WithKind(FunctionKind)
)

Function type metadata.

Functions

func ConvertObjectMeta added in v1.17.0

func ConvertObjectMeta(in metav1.ObjectMeta) metav1.ObjectMeta

ConvertObjectMeta 'converts' ObjectMeta by producing a deepcopy. This is necessary because goverter can't convert metav1.Time. It also prevents goverter generating code that is functionally identical to deepcopygen's.

Types

type CrossplaneConstraints

type CrossplaneConstraints struct {
	// Semantic version constraints of Crossplane that package is compatible with.
	Version string `json:"version"`
}

CrossplaneConstraints specifies a packages compatibility with Crossplane versions.

func (*CrossplaneConstraints) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CrossplaneConstraints.

func (*CrossplaneConstraints) DeepCopyInto

func (in *CrossplaneConstraints) DeepCopyInto(out *CrossplaneConstraints)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Dependency

type Dependency struct {
	// Provider is the name of a Provider package image.
	Provider *string `json:"provider,omitempty"`

	// Configuration is the name of a Configuration package image.
	Configuration *string `json:"configuration,omitempty"`

	// Function is the name of a Function package image.
	Function *string `json:"function,omitempty"`

	// Version is the semantic version constraints of the dependency image.
	Version string `json:"version"`
}

Dependency is a dependency on another package. One of Provider or Configuration may be supplied.

func (*Dependency) DeepCopy

func (in *Dependency) DeepCopy() *Dependency

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Dependency.

func (*Dependency) DeepCopyInto

func (in *Dependency) DeepCopyInto(out *Dependency)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type FromHubConverter added in v1.17.0

type FromHubConverter interface {
	Function(in *v1.Function) *Function
}

A FromHubConverter converts v1beta1 types from the 'hub' v1 type.

goverter:converter goverter:name GeneratedFromHubConverter goverter:extend ConvertObjectMeta goverter:output:file ./zz_generated.conversion.go goverter:output:package github.com/crossplane/crossplane/apis/pkg/meta/v1beta1 +k8s:deepcopy-gen=false

type Function

type Function struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec FunctionSpec `json:"spec"`
}

A Function is the description of a Crossplane Function package.

func (*Function) ConvertFrom added in v1.17.0

func (c *Function) ConvertFrom(hub conversion.Hub) error

ConvertFrom converts this Function from the Hub version.

func (*Function) ConvertTo added in v1.17.0

func (c *Function) ConvertTo(hub conversion.Hub) error

ConvertTo converts this Function to the Hub version.

func (*Function) DeepCopy

func (in *Function) DeepCopy() *Function

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Function.

func (*Function) DeepCopyInto

func (in *Function) DeepCopyInto(out *Function)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Function) DeepCopyObject

func (in *Function) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type FunctionSpec

type FunctionSpec struct {
	MetaSpec `json:",inline"`

	// Image is the packaged Function image.
	Image *string `json:"image,omitempty"`
}

FunctionSpec specifies the configuration of a Function.

func (*FunctionSpec) DeepCopy

func (in *FunctionSpec) DeepCopy() *FunctionSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FunctionSpec.

func (*FunctionSpec) DeepCopyInto

func (in *FunctionSpec) DeepCopyInto(out *FunctionSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GeneratedFromHubConverter added in v1.17.0

type GeneratedFromHubConverter struct{}

func (*GeneratedFromHubConverter) DeepCopy added in v1.17.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GeneratedFromHubConverter.

func (*GeneratedFromHubConverter) DeepCopyInto added in v1.17.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GeneratedFromHubConverter) Function added in v1.17.0

func (c *GeneratedFromHubConverter) Function(source *v1.Function) *Function

type GeneratedToHubConverter added in v1.17.0

type GeneratedToHubConverter struct{}

func (*GeneratedToHubConverter) DeepCopy added in v1.17.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GeneratedToHubConverter.

func (*GeneratedToHubConverter) DeepCopyInto added in v1.17.0

func (in *GeneratedToHubConverter) DeepCopyInto(out *GeneratedToHubConverter)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GeneratedToHubConverter) Function added in v1.17.0

func (c *GeneratedToHubConverter) Function(source *Function) *v1.Function

type MetaSpec

type MetaSpec struct {
	// Semantic version constraints of Crossplane that package is compatible with.
	Crossplane *CrossplaneConstraints `json:"crossplane,omitempty"`

	// Dependencies on other packages.
	DependsOn []Dependency `json:"dependsOn,omitempty"`
}

MetaSpec are fields that every meta package type must implement.

func (*MetaSpec) DeepCopy

func (in *MetaSpec) DeepCopy() *MetaSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetaSpec.

func (*MetaSpec) DeepCopyInto

func (in *MetaSpec) DeepCopyInto(out *MetaSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ToHubConverter added in v1.17.0

type ToHubConverter interface {
	Function(in *Function) *v1.Function
}

A ToHubConverter converts v1beta1 types to the 'hub' v1 type.

goverter:converter goverter:name GeneratedToHubConverter goverter:extend ConvertObjectMeta goverter:output:file ./zz_generated.conversion.go goverter:output:package github.com/crossplane/crossplane/apis/pkg/meta/v1beta1 +k8s:deepcopy-gen=false

Jump to

Keyboard shortcuts

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