v1alpha1

package
v0.34.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 4 Imported by: 226

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 added in v0.16.0

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource added in v0.8.0

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Placeable added in v0.27.0

type Placeable struct {
	MaxAllowedVReplicas *int32      `json:"maxAllowedVReplicas,omitempty"`
	Placements          []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 added in v0.27.0

func (in *Placeable) DeepCopy() *Placeable

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

func (*Placeable) DeepCopyInto added in v0.27.0

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 added in v0.27.0

func (*Placeable) GetFullType() duck.Populatable

GetFullType implements duck.Implementable

type PlaceableList added in v0.27.0

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 added in v0.27.0

func (in *PlaceableList) DeepCopy() *PlaceableList

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

func (*PlaceableList) DeepCopyInto added in v0.27.0

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 added in v0.27.0

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

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

type PlaceableStatus added in v0.27.0

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

func (*PlaceableStatus) DeepCopy added in v0.27.0

func (in *PlaceableStatus) DeepCopy() *PlaceableStatus

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

func (*PlaceableStatus) DeepCopyInto added in v0.27.0

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 added in v0.27.0

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 added in v0.27.0

func (in *PlaceableType) DeepCopy() *PlaceableType

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

func (*PlaceableType) DeepCopyInto added in v0.27.0

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 added in v0.27.0

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

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

func (*PlaceableType) GetListType added in v0.27.0

func (*PlaceableType) GetListType() runtime.Object

GetListType implements apis.Listable

func (*PlaceableType) Populate added in v0.27.0

func (t *PlaceableType) Populate()

Populate implements duck.Populatable

type Placement added in v0.27.0

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

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

func (*Placement) DeepCopy added in v0.27.0

func (in *Placement) DeepCopy() *Placement

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

func (*Placement) DeepCopyInto added in v0.27.0

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