v1alpha1

package
v0.0.0-...-3265d99 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +k8s:deepcopy-gen=package +groupName=backing.google.com

Index

Constants

View Source
const (
	BindingConditionReady = apis.ConditionReady
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: backing.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func GetBackings

func GetBackings(ctx context.Context) []*unstructured.Unstructured

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func WithBackings

func WithBackings(ctx context.Context, backings []*unstructured.Unstructured) context.Context

Types

type Binding

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

	Spec   BindingSpec   `json:"spec"`
	Status BindingStatus `json:"status"`
}

Binding is to bind a subject to GCP backing services.

func (*Binding) DeepCopy

func (in *Binding) DeepCopy() *Binding

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

func (*Binding) DeepCopyInto

func (in *Binding) DeepCopyInto(out *Binding)

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

func (*Binding) DeepCopyObject

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

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

func (*Binding) Do

func (b *Binding) Do(ctx context.Context, ps *duckv1.WithPod)

func (*Binding) GetBindingStatus

func (b *Binding) GetBindingStatus() duck.BindableStatus

func (*Binding) GetConditionSet

func (b *Binding) GetConditionSet() apis.ConditionSet

func (*Binding) GetGroupVersionKind

func (b *Binding) GetGroupVersionKind() schema.GroupVersionKind

GetGroupVersionKind returns GroupVersionKind for EventPolicy

func (*Binding) GetStatus

func (s *Binding) GetStatus() *duckv1.Status

GetStatus retrieves the status of the SinkBinding. Implements the KRShaped interface.

func (*Binding) GetSubject

func (b *Binding) GetSubject() tracker.Reference

GetSubject implements psbinding.Bindable

func (*Binding) GetUntypedSpec

func (b *Binding) GetUntypedSpec() interface{}

GetUntypedSpec returns the spec of the EventPolicy.

func (*Binding) SetDefaults

func (b *Binding) SetDefaults(ctx context.Context)

SetDefaults implements apis.Defaultable

func (*Binding) Undo

func (b *Binding) Undo(ctx context.Context, ps *duckv1.WithPod)

func (*Binding) Validate

func (b *Binding) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

type BindingList

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

BindingList is a collection of Binding.

func (*BindingList) DeepCopy

func (in *BindingList) DeepCopy() *BindingList

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

func (*BindingList) DeepCopyInto

func (in *BindingList) DeepCopyInto(out *BindingList)

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

func (*BindingList) DeepCopyObject

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

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

type BindingSpec

type BindingSpec struct {
	// inherits duck/v1beta1 BindingSpec, which currently provides:
	// * Subject - Subject references the resource(s) whose "runtime contract"
	//   should be augmented by Binding implementations.
	duckv1beta1.BindingSpec `json:",inline"`

	// A list of backing services to bind.
	Backings []duckv1.KReference `json:"backings"`
}

BindingSpec is the binding spec.

func (*BindingSpec) DeepCopy

func (in *BindingSpec) DeepCopy() *BindingSpec

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

func (*BindingSpec) DeepCopyInto

func (in *BindingSpec) DeepCopyInto(out *BindingSpec)

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

func (*BindingSpec) Validate

func (bs *BindingSpec) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

type BindingStatus

type BindingStatus struct {
	// inherits duck/v1 Status, which currently provides:
	// * ObservedGeneration - the 'Generation' of the Service that was last processed by the controller.
	// * Conditions - the latest available observations of a resource's current state.
	duckv1.Status `json:",inline"`
}

BindingStatus is the binding status.

func (*BindingStatus) DeepCopy

func (in *BindingStatus) DeepCopy() *BindingStatus

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

func (*BindingStatus) DeepCopyInto

func (in *BindingStatus) DeepCopyInto(out *BindingStatus)

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

func (*BindingStatus) GetCondition

func (bs *BindingStatus) GetCondition(t apis.ConditionType) *apis.Condition

func (*BindingStatus) InitializeConditions

func (bs *BindingStatus) InitializeConditions()

func (*BindingStatus) IsReady

func (bs *BindingStatus) IsReady() bool

func (*BindingStatus) MarkBindingAvailable

func (bs *BindingStatus) MarkBindingAvailable()

func (*BindingStatus) MarkBindingUnavailable

func (bs *BindingStatus) MarkBindingUnavailable(reason, message string)

func (*BindingStatus) SetObservedGeneration

func (bs *BindingStatus) SetObservedGeneration(gen int64)

Jump to

Keyboard shortcuts

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