v1alpha1

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder builds a scheme with the types known to the package.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme adds the types known to this package to an existing schema.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: pub.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 Bar

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

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

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

Bar is for testing.

func (*Bar) DeepCopy

func (in *Bar) DeepCopy() *Bar

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

func (*Bar) DeepCopyInto

func (in *Bar) DeepCopyInto(out *Bar)

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

func (*Bar) DeepCopyObject

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

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

func (*Bar) GetConditionSet

func (*Bar) GetConditionSet() apis.ConditionSet

GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.

func (*Bar) GetGroupVersionKind

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

GetGroupVersionKind implements kmeta.OwnerRefable

func (*Bar) GetStatus

func (b *Bar) GetStatus() *duckv1.Status

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

func (*Bar) SetDefaults

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

SetDefaults implements apis.Defaultable

func (*Bar) Validate

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

Validate implements apis.Validatable

type BarList

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

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

BarList is a list of Bar resources

func (*BarList) DeepCopy

func (in *BarList) DeepCopy() *BarList

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

func (*BarList) DeepCopyInto

func (in *BarList) DeepCopyInto(out *BarList)

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

func (*BarList) DeepCopyObject

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

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

type BarSpec

type BarSpec struct{}

BarSpec holds the desired state of the Bar (from the client).

func (*BarSpec) DeepCopy

func (in *BarSpec) DeepCopy() *BarSpec

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

func (*BarSpec) DeepCopyInto

func (in *BarSpec) DeepCopyInto(out *BarSpec)

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

type BarStatus

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

BarStatus communicates the observed state of the Bar (from the controller).

func (*BarStatus) DeepCopy

func (in *BarStatus) DeepCopy() *BarStatus

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

func (*BarStatus) DeepCopyInto

func (in *BarStatus) DeepCopyInto(out *BarStatus)

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

func (*BarStatus) InitializeConditions

func (bs *BarStatus) InitializeConditions()

Jump to

Keyboard shortcuts

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