v1alpha1

package
v0.0.0-...-2f88468 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=serviceconnector.dev

Index

Constants

This section is empty.

Variables

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

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Composer

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

	Spec   ComposerSpec   `json:"spec,omitempty"`
	Status ComposerStatus `json:"status,omitempty"`
}

Composer is the Schema for the composers API

func (*Composer) DeepCopy

func (in *Composer) DeepCopy() *Composer

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

func (*Composer) DeepCopyInto

func (in *Composer) DeepCopyInto(out *Composer)

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

func (*Composer) DeepCopyObject

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

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

type ComposerList

type ComposerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Composer `json:"items"`
}

ComposerList contains a list of Composer

func (*ComposerList) DeepCopy

func (in *ComposerList) DeepCopy() *ComposerList

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

func (*ComposerList) DeepCopyInto

func (in *ComposerList) DeepCopyInto(out *ComposerList)

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

func (*ComposerList) DeepCopyObject

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

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

type ComposerSpec

type ComposerSpec struct {
	// Type is the type of the service
	// +optional
	Type string `json:"type,omitempty"`
	// Provider is the provider of the service
	// +optional
	Provider string `json:"provider,omitempty"`

	// ServiceAccountName refer the name of the service account used
	// for all reconciliation
	// +optional
	ServiceAccountName string `json:"serviceAccountName,omitempty"`

	// Resources is a collection of Resouce objects
	// where each resource represents a Kubernetes resource including custom resources
	Resources []Resource `json:"resources"`

	// Mappings is a collection of Path values
	// where each path represents a path represents JSONPath expression for a field in the resource
	Mappings []Mapping `json:"mappings"`

	// Templates is a collection of Template values
	// where each path represents a Go template with access to all the path values
	// +optional
	Templates []Template `json:"templates,omitempty"`
}

ComposerSpec defines the desired state of Composer

func (*ComposerSpec) DeepCopy

func (in *ComposerSpec) DeepCopy() *ComposerSpec

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

func (*ComposerSpec) DeepCopyInto

func (in *ComposerSpec) DeepCopyInto(out *ComposerSpec)

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

type ComposerStatus

type ComposerStatus struct {
	// Binding exposes the constructed Secret from the backing services resources
	// and comform to Provisioned Service duck-type of Service Binding Specification
	Binding *corev1.LocalObjectReference `json:"binding"`

	// ObservedGeneration is the 'Generation' of the CompositeService that
	// was last processed by the controller.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// Represents the observations of a Composer's current state.
	// Composer.status.conditions.type are: "Available", "Progressing", and "Degraded"
	// Composer.status.conditions.status are one of True, False, Unknown.
	// Composer.status.conditions.reason the value should be a CamelCase string and producers of specific
	// condition types may define expected values and meanings for this field, and whether the values
	// are considered a guaranteed API.
	// Composer.status.conditions.Message is a human readable message indicating details about the transition.
	// For further information see: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}

ComposerStatus defines the observed state of Composer

func (*ComposerStatus) DeepCopy

func (in *ComposerStatus) DeepCopy() *ComposerStatus

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

func (*ComposerStatus) DeepCopyInto

func (in *ComposerStatus) DeepCopyInto(out *ComposerStatus)

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

type Mapping

type Mapping struct {
	// target key name
	Name string `json:"name"`

	// JSONPath expression
	Path string `json:"path"`

	// Resource ID
	ResouceID string `json:"resouceID"`

	// Decode Base64
	// +optional
	Base64 bool `json:"base64,omitempty"`

	// Ignore the entry from the target
	// +optional
	Ignore bool `json:"ignore,omitempty"`
}

Mapping represents JSONPath expression for a field in the resource

func (*Mapping) DeepCopy

func (in *Mapping) DeepCopy() *Mapping

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

func (*Mapping) DeepCopyInto

func (in *Mapping) DeepCopyInto(out *Mapping)

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

type Ref

type Ref struct {
	// API version of the Resource
	APIVersion string `json:"apiVersion"`

	// Kind of the Resource
	Kind string `json:"kind"`

	// Name of the Resource
	// Mutually exclusive with a combination of SourceID and TargetPath
	Name string `json:"name,omitempty"`

	// Name of the source resource
	// A combination of SourceID and TargetPath is mutually exclusive with Name
	ResouceID string `json:"resourceID,omitempty"`

	// Path is a JSONPath expression to target resource
	// A combination of SourceID and TargetPath is mutually exclusive with Name
	Path string `json:"path,omitempty"`
}

Ref represents a Kubernetes resource reference

func (*Ref) DeepCopy

func (in *Ref) DeepCopy() *Ref

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

func (*Ref) DeepCopyInto

func (in *Ref) DeepCopyInto(out *Ref)

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

type Resource

type Resource struct {
	// ID to indentify the resource reference
	ID string `json:"id"`

	// Ref points to a Kubernetes resource reference
	Ref Ref `json:"ref"`
}

Resource represents a Kubernetes resource with an ID

func (*Resource) DeepCopy

func (in *Resource) DeepCopy() *Resource

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

func (*Resource) DeepCopyInto

func (in *Resource) DeepCopyInto(out *Resource)

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

type Template

type Template struct {
	Name     string `json:"name"`
	Template string `json:"template"`
}

Template represents a Go template with access to all the path values

func (*Template) DeepCopy

func (in *Template) DeepCopy() *Template

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

func (*Template) DeepCopyInto

func (in *Template) DeepCopyInto(out *Template)

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

Jump to

Keyboard shortcuts

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