v1

package
v0.28.14 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 12 Imported by: 23

Documentation

Index

Constants

View Source
const GroupName = "example2.apiserver.k8s.io"

GroupName is the group name use in this package

Variables

View Source
var (
	ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_example_ReplicaSetSpec_To_v1_ReplicaSetSpec

func Convert_example_ReplicaSetSpec_To_v1_ReplicaSetSpec(in *example.ReplicaSetSpec, out *ReplicaSetSpec, s conversion.Scope) error

func Convert_example_ReplicaSetStatus_To_v1_ReplicaSetStatus

func Convert_example_ReplicaSetStatus_To_v1_ReplicaSetStatus(in *example.ReplicaSetStatus, out *ReplicaSetStatus, s conversion.Scope) error

Convert_example_ReplicaSetStatus_To_v1_ReplicaSetStatus is an autogenerated conversion function.

func Convert_example_ReplicaSet_To_v1_ReplicaSet

func Convert_example_ReplicaSet_To_v1_ReplicaSet(in *example.ReplicaSet, out *ReplicaSet, s conversion.Scope) error

Convert_example_ReplicaSet_To_v1_ReplicaSet is an autogenerated conversion function.

func Convert_v1_ReplicaSetSpec_To_example_ReplicaSetSpec

func Convert_v1_ReplicaSetSpec_To_example_ReplicaSetSpec(in *ReplicaSetSpec, out *example.ReplicaSetSpec, s conversion.Scope) error

func Convert_v1_ReplicaSetStatus_To_example_ReplicaSetStatus

func Convert_v1_ReplicaSetStatus_To_example_ReplicaSetStatus(in *ReplicaSetStatus, out *example.ReplicaSetStatus, s conversion.Scope) error

Convert_v1_ReplicaSetStatus_To_example_ReplicaSetStatus is an autogenerated conversion function.

func Convert_v1_ReplicaSet_To_example_ReplicaSet

func Convert_v1_ReplicaSet_To_example_ReplicaSet(in *ReplicaSet, out *example.ReplicaSet, s conversion.Scope) error

Convert_v1_ReplicaSet_To_example_ReplicaSet is an autogenerated conversion function.

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ReplicaSet

type ReplicaSet struct {
	metav1.TypeMeta `json:",inline"`

	// If the Labels of a ReplicaSet are empty, they are defaulted to
	// be the same as the Pod(s) that the ReplicaSet manages.
	// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Spec defines the specification of the desired behavior of the ReplicaSet.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	// +optional
	Spec ReplicaSetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`

	// Status is the most recently observed status of the ReplicaSet.
	// This data may be out of date by some window of time.
	// Populated by the system.
	// Read-only.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	// +optional
	Status ReplicaSetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

ReplicaSet ensures that a specified number of pod replicas are running at any given time.

func (*ReplicaSet) DeepCopy

func (in *ReplicaSet) DeepCopy() *ReplicaSet

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

func (*ReplicaSet) DeepCopyInto

func (in *ReplicaSet) DeepCopyInto(out *ReplicaSet)

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

func (*ReplicaSet) DeepCopyObject

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

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

func (*ReplicaSet) Descriptor

func (*ReplicaSet) Descriptor() ([]byte, []int)

func (*ReplicaSet) Marshal

func (m *ReplicaSet) Marshal() (dAtA []byte, err error)

func (*ReplicaSet) MarshalTo

func (m *ReplicaSet) MarshalTo(dAtA []byte) (int, error)

func (*ReplicaSet) MarshalToSizedBuffer added in v0.27.0

func (m *ReplicaSet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ReplicaSet) ProtoMessage

func (*ReplicaSet) ProtoMessage()

func (*ReplicaSet) Reset

func (m *ReplicaSet) Reset()

func (*ReplicaSet) Size

func (m *ReplicaSet) Size() (n int)

func (*ReplicaSet) String

func (this *ReplicaSet) String() string

func (*ReplicaSet) Unmarshal

func (m *ReplicaSet) Unmarshal(dAtA []byte) error

func (*ReplicaSet) XXX_DiscardUnknown added in v0.27.0

func (m *ReplicaSet) XXX_DiscardUnknown()

func (*ReplicaSet) XXX_Marshal added in v0.27.0

func (m *ReplicaSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplicaSet) XXX_Merge added in v0.27.0

func (m *ReplicaSet) XXX_Merge(src proto.Message)

func (*ReplicaSet) XXX_Size added in v0.27.0

func (m *ReplicaSet) XXX_Size() int

func (*ReplicaSet) XXX_Unmarshal added in v0.27.0

func (m *ReplicaSet) XXX_Unmarshal(b []byte) error

type ReplicaSetSpec

type ReplicaSetSpec struct {
	// Replicas is the number of desired replicas.
	// This is a pointer to distinguish between explicit zero and unspecified.
	// Defaults to 1.
	// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
	// +optional
	Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"`
}

ReplicaSetSpec is the specification of a ReplicaSet.

func (*ReplicaSetSpec) DeepCopy

func (in *ReplicaSetSpec) DeepCopy() *ReplicaSetSpec

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

func (*ReplicaSetSpec) DeepCopyInto

func (in *ReplicaSetSpec) DeepCopyInto(out *ReplicaSetSpec)

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

func (*ReplicaSetSpec) Descriptor

func (*ReplicaSetSpec) Descriptor() ([]byte, []int)

func (*ReplicaSetSpec) Marshal

func (m *ReplicaSetSpec) Marshal() (dAtA []byte, err error)

func (*ReplicaSetSpec) MarshalTo

func (m *ReplicaSetSpec) MarshalTo(dAtA []byte) (int, error)

func (*ReplicaSetSpec) MarshalToSizedBuffer added in v0.27.0

func (m *ReplicaSetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ReplicaSetSpec) ProtoMessage

func (*ReplicaSetSpec) ProtoMessage()

func (*ReplicaSetSpec) Reset

func (m *ReplicaSetSpec) Reset()

func (*ReplicaSetSpec) Size

func (m *ReplicaSetSpec) Size() (n int)

func (*ReplicaSetSpec) String

func (this *ReplicaSetSpec) String() string

func (*ReplicaSetSpec) Unmarshal

func (m *ReplicaSetSpec) Unmarshal(dAtA []byte) error

func (*ReplicaSetSpec) XXX_DiscardUnknown added in v0.27.0

func (m *ReplicaSetSpec) XXX_DiscardUnknown()

func (*ReplicaSetSpec) XXX_Marshal added in v0.27.0

func (m *ReplicaSetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplicaSetSpec) XXX_Merge added in v0.27.0

func (m *ReplicaSetSpec) XXX_Merge(src proto.Message)

func (*ReplicaSetSpec) XXX_Size added in v0.27.0

func (m *ReplicaSetSpec) XXX_Size() int

func (*ReplicaSetSpec) XXX_Unmarshal added in v0.27.0

func (m *ReplicaSetSpec) XXX_Unmarshal(b []byte) error

type ReplicaSetStatus

type ReplicaSetStatus struct {
	// Replicas is the most recently oberved number of replicas.
	// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
	Replicas int32 `json:"replicas" protobuf:"varint,1,opt,name=replicas"`
}

ReplicaSetStatus represents the current status of a ReplicaSet.

func (*ReplicaSetStatus) DeepCopy

func (in *ReplicaSetStatus) DeepCopy() *ReplicaSetStatus

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

func (*ReplicaSetStatus) DeepCopyInto

func (in *ReplicaSetStatus) DeepCopyInto(out *ReplicaSetStatus)

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

func (*ReplicaSetStatus) Descriptor

func (*ReplicaSetStatus) Descriptor() ([]byte, []int)

func (*ReplicaSetStatus) Marshal

func (m *ReplicaSetStatus) Marshal() (dAtA []byte, err error)

func (*ReplicaSetStatus) MarshalTo

func (m *ReplicaSetStatus) MarshalTo(dAtA []byte) (int, error)

func (*ReplicaSetStatus) MarshalToSizedBuffer added in v0.27.0

func (m *ReplicaSetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ReplicaSetStatus) ProtoMessage

func (*ReplicaSetStatus) ProtoMessage()

func (*ReplicaSetStatus) Reset

func (m *ReplicaSetStatus) Reset()

func (*ReplicaSetStatus) Size

func (m *ReplicaSetStatus) Size() (n int)

func (*ReplicaSetStatus) String

func (this *ReplicaSetStatus) String() string

func (*ReplicaSetStatus) Unmarshal

func (m *ReplicaSetStatus) Unmarshal(dAtA []byte) error

func (*ReplicaSetStatus) XXX_DiscardUnknown added in v0.27.0

func (m *ReplicaSetStatus) XXX_DiscardUnknown()

func (*ReplicaSetStatus) XXX_Marshal added in v0.27.0

func (m *ReplicaSetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplicaSetStatus) XXX_Merge added in v0.27.0

func (m *ReplicaSetStatus) XXX_Merge(src proto.Message)

func (*ReplicaSetStatus) XXX_Size added in v0.27.0

func (m *ReplicaSetStatus) XXX_Size() int

func (*ReplicaSetStatus) XXX_Unmarshal added in v0.27.0

func (m *ReplicaSetStatus) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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