Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +k8s:deepcopy-gen=package +groupName=backing.google.com
Index ¶
- Constants
- Variables
- func GetBackings(ctx context.Context) []*unstructured.Unstructured
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- func WithBackings(ctx context.Context, backings []*unstructured.Unstructured) context.Context
- type Binding
- func (in *Binding) DeepCopy() *Binding
- func (in *Binding) DeepCopyInto(out *Binding)
- func (in *Binding) DeepCopyObject() runtime.Object
- func (b *Binding) Do(ctx context.Context, ps *duckv1.WithPod)
- func (b *Binding) GetBindingStatus() duck.BindableStatus
- func (b *Binding) GetConditionSet() apis.ConditionSet
- func (b *Binding) GetGroupVersionKind() schema.GroupVersionKind
- func (s *Binding) GetStatus() *duckv1.Status
- func (b *Binding) GetSubject() tracker.Reference
- func (b *Binding) GetUntypedSpec() interface{}
- func (b *Binding) SetDefaults(ctx context.Context)
- func (b *Binding) Undo(ctx context.Context, ps *duckv1.WithPod)
- func (b *Binding) Validate(ctx context.Context) *apis.FieldError
- type BindingList
- type BindingSpec
- type BindingStatus
- func (in *BindingStatus) DeepCopy() *BindingStatus
- func (in *BindingStatus) DeepCopyInto(out *BindingStatus)
- func (bs *BindingStatus) GetCondition(t apis.ConditionType) *apis.Condition
- func (bs *BindingStatus) InitializeConditions()
- func (bs *BindingStatus) IsReady() bool
- func (bs *BindingStatus) MarkBindingAvailable()
- func (bs *BindingStatus) MarkBindingUnavailable(reason, message string)
- func (bs *BindingStatus) SetObservedGeneration(gen int64)
Constants ¶
const (
BindingConditionReady = apis.ConditionReady
)
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
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 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Binding.
func (*Binding) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Binding) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
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 ¶
GetStatus retrieves the status of the SinkBinding. Implements the KRShaped interface.
func (*Binding) GetSubject ¶
GetSubject implements psbinding.Bindable
func (*Binding) GetUntypedSpec ¶
func (b *Binding) GetUntypedSpec() interface{}
GetUntypedSpec returns the spec of the EventPolicy.
func (*Binding) SetDefaults ¶
SetDefaults implements apis.Defaultable
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)