v1alpha1

package
v0.0.0-...-4dab0f8 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=bindings.mattmoor.dev

Index

Constants

View Source
const (
	// FooBindingConditionReady is set when the revision is starting to materialize
	// runtime resources, and becomes true when those resources are ready.
	FooBindingConditionReady = apis.ConditionReady
)

Variables

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

SchemeGroupVersion is group version used to register these objects

Functions

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

Types

type FooBinding

type FooBinding struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec holds the desired state of the FooBinding (from the client).
	// +optional
	Spec FooBindingSpec `json:"spec,omitempty"`

	// Status communicates the observed state of the FooBinding (from the controller).
	// +optional
	Status FooBindingStatus `json:"status,omitempty"`
}

FooBinding is a Knative abstraction that encapsulates the interface by which Knative components express a desire to have a particular image cached.

func (*FooBinding) DeepCopy

func (in *FooBinding) DeepCopy() *FooBinding

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

func (*FooBinding) DeepCopyInto

func (in *FooBinding) DeepCopyInto(out *FooBinding)

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

func (*FooBinding) DeepCopyObject

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

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

func (*FooBinding) Do

func (fb *FooBinding) Do(ps *PodSpeccable)

func (*FooBinding) GetGroupVersionKind

func (fb *FooBinding) GetGroupVersionKind() schema.GroupVersionKind

GetGroupVersionKind implements kmeta.OwnerRefable

func (*FooBinding) SetDefaults

func (fb *FooBinding) SetDefaults(ctx context.Context)

SetDefaults implements apis.Defaultable

func (*FooBinding) Undo

func (fb *FooBinding) Undo(ps *PodSpeccable)

func (*FooBinding) Validate

func (fb *FooBinding) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

type FooBindingList

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

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

FooBindingList is a list of FooBinding resources

func (*FooBindingList) DeepCopy

func (in *FooBindingList) DeepCopy() *FooBindingList

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

func (*FooBindingList) DeepCopyInto

func (in *FooBindingList) DeepCopyInto(out *FooBindingList)

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

func (*FooBindingList) DeepCopyObject

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

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

type FooBindingSpec

type FooBindingSpec struct {

	// Target holds a reference to the "pod speccable" Kubernetes resource which will
	// be the target of our "Foo" binding.
	Target corev1.ObjectReference `json:"target"`

	// Value contains the value of the environment variable to inject.
	Value string `json:"value,omitempty"`
}

FooBindingSpec holds the desired state of the FooBinding (from the client).

func (*FooBindingSpec) DeepCopy

func (in *FooBindingSpec) DeepCopy() *FooBindingSpec

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

func (*FooBindingSpec) DeepCopyInto

func (in *FooBindingSpec) DeepCopyInto(out *FooBindingSpec)

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

func (*FooBindingSpec) Validate

func (fbs *FooBindingSpec) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

type FooBindingStatus

type FooBindingStatus struct {
	duckv1beta1.Status `json:",inline"`

	// Address holds the information needed to connect this Addressable up to receive events.
	// +optional
	Address *duckv1beta1.Addressable `json:"address,omitempty"`
}

FooBindingStatus communicates the observed state of the FooBinding (from the controller).

func (*FooBindingStatus) DeepCopy

func (in *FooBindingStatus) DeepCopy() *FooBindingStatus

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

func (*FooBindingStatus) DeepCopyInto

func (in *FooBindingStatus) DeepCopyInto(out *FooBindingStatus)

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

func (*FooBindingStatus) InitializeConditions

func (fbs *FooBindingStatus) InitializeConditions()

func (*FooBindingStatus) MarkBindingAvailable

func (fbs *FooBindingStatus) MarkBindingAvailable()

func (*FooBindingStatus) MarkBindingUnavailable

func (fbs *FooBindingStatus) MarkBindingUnavailable(reason, message string)

type PodSpeccable

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

	Spec PodSpeccableSpec `json:"spec"`
}

PodSpeccable is a duck type that the resources referenced by a binding's Target must implement.

func (*PodSpeccable) DeepCopy

func (in *PodSpeccable) DeepCopy() *PodSpeccable

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

func (*PodSpeccable) DeepCopyInto

func (in *PodSpeccable) DeepCopyInto(out *PodSpeccable)

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

func (*PodSpeccable) DeepCopyObject

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

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

func (*PodSpeccable) GetFullType

func (*PodSpeccable) GetFullType() duck.Populatable

GetFullType implements duck.Implementable

func (*PodSpeccable) GetListType

func (*PodSpeccable) GetListType() runtime.Object

GetListType implements apis.Listable

func (*PodSpeccable) Populate

func (t *PodSpeccable) Populate()

Populate implements duck.Populatable

type PodSpeccableList

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

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

PodSpeccableList is a list of PodSpeccable resources

func (*PodSpeccableList) DeepCopy

func (in *PodSpeccableList) DeepCopy() *PodSpeccableList

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

func (*PodSpeccableList) DeepCopyInto

func (in *PodSpeccableList) DeepCopyInto(out *PodSpeccableList)

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

func (*PodSpeccableList) DeepCopyObject

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

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

type PodSpeccableSpec

type PodSpeccableSpec struct {
	Template corev1.PodTemplateSpec `json:"template"`
}

PodSpeccableSpec is the specification for the desired state of a PodSpeccable (or at least our shared portion).

func (*PodSpeccableSpec) DeepCopy

func (in *PodSpeccableSpec) DeepCopy() *PodSpeccableSpec

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

func (*PodSpeccableSpec) DeepCopyInto

func (in *PodSpeccableSpec) DeepCopyInto(out *PodSpeccableSpec)

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