duck

package
v0.0.0-...-87426b5 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=duck.knative.dev

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "duck.knative.dev", Version: "v3"}

SchemeGroupVersion is group version used to register these objects

Functions

This section is empty.

Types

type TestBindable

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

	Spec   TestBindableSpec   `json:"spec,omitempty"`
	Status TestBindableStatus `json:"status,omitempty"`
}

TestBindable is a simple resource that's compatible with our webhook

func (*TestBindable) DeepCopy

func (in *TestBindable) DeepCopy() *TestBindable

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

func (*TestBindable) DeepCopyInto

func (in *TestBindable) DeepCopyInto(out *TestBindable)

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

func (*TestBindable) DeepCopyObject

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

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

func (*TestBindable) Do

func (tb *TestBindable) Do(ctx context.Context, ps *duckv1.WithPod)

Do implements psbinding.Bindable

func (*TestBindable) GetBindingStatus

func (tb *TestBindable) GetBindingStatus() duck.BindableStatus

GetBindingStatus implements psbinding.Bindable

func (*TestBindable) GetGroupVersionKind

func (tb *TestBindable) GetGroupVersionKind() schema.GroupVersionKind

GetGroupVersionKind returns the GroupVersionKind.

func (*TestBindable) GetListType

func (tb *TestBindable) GetListType() runtime.Object

GetListType implements apis.Listable

func (*TestBindable) GetSubject

func (tb *TestBindable) GetSubject() tracker.Reference

GetSubject implements psbinding.Bindable

func (*TestBindable) GetUntypedSpec

func (tb *TestBindable) GetUntypedSpec() interface{}

GetUntypedSpec returns the spec of the resource.

func (*TestBindable) Undo

func (tb *TestBindable) Undo(ctx context.Context, ps *duckv1.WithPod)

type TestBindableList

type TestBindableList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []TestBindable `json:"items"`
}

TestBindableList is a list of TestBindable resources

func (*TestBindableList) DeepCopy

func (in *TestBindableList) DeepCopy() *TestBindableList

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

func (*TestBindableList) DeepCopyInto

func (in *TestBindableList) DeepCopyInto(out *TestBindableList)

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

func (*TestBindableList) DeepCopyObject

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

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

type TestBindableSpec

type TestBindableSpec struct {
	duckv1alpha1.BindingSpec `json:",inline"`

	Foo string `json:"foo"`
}

TestBindableSpec represents test resource spec.

func (*TestBindableSpec) DeepCopy

func (in *TestBindableSpec) DeepCopy() *TestBindableSpec

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

func (*TestBindableSpec) DeepCopyInto

func (in *TestBindableSpec) DeepCopyInto(out *TestBindableSpec)

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

type TestBindableStatus

type TestBindableStatus struct {
	duckv1.Status `json:",inline"`
}

TestBindableStatus represents the status of our test binding.

func (*TestBindableStatus) DeepCopy

func (in *TestBindableStatus) DeepCopy() *TestBindableStatus

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

func (*TestBindableStatus) DeepCopyInto

func (in *TestBindableStatus) DeepCopyInto(out *TestBindableStatus)

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

func (*TestBindableStatus) InitializeConditions

func (tbs *TestBindableStatus) InitializeConditions()

InitializeConditions populates the TestBindableStatus's conditions field with all of its conditions configured to Unknown.

func (*TestBindableStatus) MarkBindingAvailable

func (tbs *TestBindableStatus) MarkBindingAvailable()

MarkBindingAvailable marks the TestBindable's Ready condition to True.

func (*TestBindableStatus) MarkBindingUnavailable

func (tbs *TestBindableStatus) MarkBindingUnavailable(reason, message string)

MarkBindingUnavailable marks the TestBindable's Ready condition to False with the provided reason and message.

func (*TestBindableStatus) SetObservedGeneration

func (tbs *TestBindableStatus) SetObservedGeneration(gen int64)

SetObservedGeneration implements psbinding.BindableStatus

Jump to

Keyboard shortcuts

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