v1beta1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the binding v1beta1 API group +kubebuilder:object:generate=true +groupName=binding.kubepreset.dev

Index

Constants

View Source
const ConditionReady = "Ready"

ConditionReady specifies that the resource is ready.

Variables

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

	// 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 CompositeService

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

	Spec   CompositeServiceSpec   `json:"spec,omitempty"`
	Status CompositeServiceStatus `json:"status,omitempty"`
}

CompositeService is the Schema for the compositeservices API

func (*CompositeService) DeepCopy

func (in *CompositeService) DeepCopy() *CompositeService

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

func (*CompositeService) DeepCopyInto

func (in *CompositeService) DeepCopyInto(out *CompositeService)

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

func (*CompositeService) DeepCopyObject

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

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

type CompositeServiceList

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

CompositeServiceList contains a list of CompositeService

func (*CompositeServiceList) DeepCopy

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

func (*CompositeServiceList) DeepCopyInto

func (in *CompositeServiceList) DeepCopyInto(out *CompositeServiceList)

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

func (*CompositeServiceList) DeepCopyObject

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

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

type CompositeServiceSpec

type CompositeServiceSpec 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"`

	// 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:"paths"`

	// 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"`
}

CompositeServiceSpec defines the desired state of CompositeService

func (*CompositeServiceSpec) DeepCopy

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

func (*CompositeServiceSpec) DeepCopyInto

func (in *CompositeServiceSpec) DeepCopyInto(out *CompositeServiceSpec)

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

type CompositeServiceStatus

type CompositeServiceStatus 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"`

	// Conditions are the conditions of this CompositeService
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

CompositeServiceStatus defines the observed state of CompositeService

func (*CompositeServiceStatus) DeepCopy

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

func (*CompositeServiceStatus) DeepCopyInto

func (in *CompositeServiceStatus) DeepCopyInto(out *CompositeServiceStatus)

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 Resource

type Resource 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
	SourceID string `json:"sourceID,omitempty"`

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

	// ID to indentify the referen
	ID string `json:"id"`
}

Resource represents a Kubernetes resource including custom resources

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