v1alpha1

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: Apache-2.0 Imports: 4 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.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 Placeable

type Placeable struct {
	Placement []Placement `json:"placements,omitempty"`
}

Placeable is a list of podName and virtual replicas pairs. Each pair represents the assignment of virtual replicas to a pod

func (*Placeable) DeepCopy

func (in *Placeable) DeepCopy() *Placeable

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

func (*Placeable) DeepCopyInto

func (in *Placeable) DeepCopyInto(out *Placeable)

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

func (*Placeable) GetFullType

func (*Placeable) GetFullType() duck.Populatable

GetFullType implements duck.Implementable

type PlaceableList

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

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

PlaceableList is a list of PlaceableType resources

func (*PlaceableList) DeepCopy

func (in *PlaceableList) DeepCopy() *PlaceableList

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

func (*PlaceableList) DeepCopyInto

func (in *PlaceableList) DeepCopyInto(out *PlaceableList)

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

func (*PlaceableList) DeepCopyObject

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

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

type PlaceableStatus

type PlaceableStatus struct {
	Placeable `json:",inline"`
}

func (*PlaceableStatus) DeepCopy

func (in *PlaceableStatus) DeepCopy() *PlaceableStatus

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

func (*PlaceableStatus) DeepCopyInto

func (in *PlaceableStatus) DeepCopyInto(out *PlaceableStatus)

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

type PlaceableType

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

	Status PlaceableStatus `json:"status"`
}

PlaceableType is a skeleton type wrapping Placeable in the manner we expect resource writers defining compatible resources to embed it. We will typically use this type to deserialize Placeable ObjectReferences and access the Placeable data. This is not a real resource. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*PlaceableType) DeepCopy

func (in *PlaceableType) DeepCopy() *PlaceableType

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

func (*PlaceableType) DeepCopyInto

func (in *PlaceableType) DeepCopyInto(out *PlaceableType)

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

func (*PlaceableType) DeepCopyObject

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

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

func (*PlaceableType) GetListType

func (*PlaceableType) GetListType() runtime.Object

GetListType implements apis.Listable

func (*PlaceableType) Populate

func (t *PlaceableType) Populate()

Populate implements duck.Populatable

type Placement

type Placement struct {
	// PodName is the name of the pod where the resource is placed
	PodName string `json:"podName,omitempty"`

	// ZoneName is the name of the zone where the pod is located
	ZoneName string `json:"zoneName,omitempty"`

	// VReplicas is the number of virtual replicas assigned to in the pod
	VReplicas int32 `json:"vreplicas,omitempty"`
}

func (*Placement) DeepCopy

func (in *Placement) DeepCopy() *Placement

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

func (*Placement) DeepCopyInto

func (in *Placement) DeepCopyInto(out *Placement)

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