v1

package
v0.20.5 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 14 Imported by: 64

Documentation

Index

Constants

View Source
const GroupName = "example.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_PodCondition_To_v1_PodCondition

func Convert_example_PodCondition_To_v1_PodCondition(in *example.PodCondition, out *PodCondition, s conversion.Scope) error

Convert_example_PodCondition_To_v1_PodCondition is an autogenerated conversion function.

func Convert_example_PodList_To_v1_PodList

func Convert_example_PodList_To_v1_PodList(in *example.PodList, out *PodList, s conversion.Scope) error

Convert_example_PodList_To_v1_PodList is an autogenerated conversion function.

func Convert_example_PodSpec_To_v1_PodSpec

func Convert_example_PodSpec_To_v1_PodSpec(in *example.PodSpec, out *PodSpec, s conversion.Scope) error

Convert_example_PodSpec_To_v1_PodSpec is an autogenerated conversion function.

func Convert_example_PodStatus_To_v1_PodStatus

func Convert_example_PodStatus_To_v1_PodStatus(in *example.PodStatus, out *PodStatus, s conversion.Scope) error

Convert_example_PodStatus_To_v1_PodStatus is an autogenerated conversion function.

func Convert_example_Pod_To_v1_Pod

func Convert_example_Pod_To_v1_Pod(in *example.Pod, out *Pod, s conversion.Scope) error

Convert_example_Pod_To_v1_Pod is an autogenerated conversion function.

func Convert_v1_PodCondition_To_example_PodCondition

func Convert_v1_PodCondition_To_example_PodCondition(in *PodCondition, out *example.PodCondition, s conversion.Scope) error

Convert_v1_PodCondition_To_example_PodCondition is an autogenerated conversion function.

func Convert_v1_PodList_To_example_PodList

func Convert_v1_PodList_To_example_PodList(in *PodList, out *example.PodList, s conversion.Scope) error

Convert_v1_PodList_To_example_PodList is an autogenerated conversion function.

func Convert_v1_PodSpec_To_example_PodSpec

func Convert_v1_PodSpec_To_example_PodSpec(in *PodSpec, out *example.PodSpec, s conversion.Scope) error

Convert_v1_PodSpec_To_example_PodSpec is an autogenerated conversion function.

func Convert_v1_PodStatus_To_example_PodStatus

func Convert_v1_PodStatus_To_example_PodStatus(in *PodStatus, out *example.PodStatus, s conversion.Scope) error

Convert_v1_PodStatus_To_example_PodStatus is an autogenerated conversion function.

func Convert_v1_Pod_To_example_Pod

func Convert_v1_Pod_To_example_Pod(in *Pod, out *example.Pod, s conversion.Scope) error

Convert_v1_Pod_To_example_Pod 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 ConditionStatus

type ConditionStatus string

type Pod

type Pod struct {
	metav1.TypeMeta `json:",inline"`
	// 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"`

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

	// Most recently observed status of the pod.
	// This data may not be up to date.
	// 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 PodStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

Pod is a collection of containers, used as either input (create, update) or as output (list, get).

func (*Pod) DeepCopy

func (in *Pod) DeepCopy() *Pod

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

func (*Pod) DeepCopyInto

func (in *Pod) DeepCopyInto(out *Pod)

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

func (*Pod) DeepCopyObject

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

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

func (*Pod) Descriptor

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

func (*Pod) Marshal

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

func (*Pod) MarshalTo

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

func (*Pod) MarshalToSizedBuffer added in v0.16.4

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

func (*Pod) ProtoMessage

func (*Pod) ProtoMessage()

func (*Pod) Reset

func (m *Pod) Reset()

func (*Pod) Size

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

func (*Pod) String

func (this *Pod) String() string

func (*Pod) Unmarshal

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

func (*Pod) XXX_DiscardUnknown added in v0.16.4

func (m *Pod) XXX_DiscardUnknown()

func (*Pod) XXX_Marshal added in v0.16.4

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

func (*Pod) XXX_Merge added in v0.16.4

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

func (*Pod) XXX_Size added in v0.16.4

func (m *Pod) XXX_Size() int

func (*Pod) XXX_Unmarshal added in v0.16.4

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

type PodCondition

type PodCondition struct {
	// Type is the type of the condition.
	// Currently only Ready.
	// More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions
	Type PodConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=PodConditionType"`
	// Status is the status of the condition.
	// Can be True, False, Unknown.
	// More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions
	Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=ConditionStatus"`
	// Last time we probed the condition.
	// +optional
	LastProbeTime metav1.Time `json:"lastProbeTime,omitempty" protobuf:"bytes,3,opt,name=lastProbeTime"`
	// Last time the condition transitioned from one status to another.
	// +optional
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"`
	// Unique, one-word, CamelCase reason for the condition's last transition.
	// +optional
	Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"`
	// Human-readable message indicating details about last transition.
	// +optional
	Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"`
}

func (*PodCondition) DeepCopy

func (in *PodCondition) DeepCopy() *PodCondition

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

func (*PodCondition) DeepCopyInto

func (in *PodCondition) DeepCopyInto(out *PodCondition)

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

func (*PodCondition) Descriptor

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

func (*PodCondition) Marshal

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

func (*PodCondition) MarshalTo

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

func (*PodCondition) MarshalToSizedBuffer added in v0.16.4

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

func (*PodCondition) ProtoMessage

func (*PodCondition) ProtoMessage()

func (*PodCondition) Reset

func (m *PodCondition) Reset()

func (*PodCondition) Size

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

func (*PodCondition) String

func (this *PodCondition) String() string

func (*PodCondition) Unmarshal

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

func (*PodCondition) XXX_DiscardUnknown added in v0.16.4

func (m *PodCondition) XXX_DiscardUnknown()

func (*PodCondition) XXX_Marshal added in v0.16.4

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

func (*PodCondition) XXX_Merge added in v0.16.4

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

func (*PodCondition) XXX_Size added in v0.16.4

func (m *PodCondition) XXX_Size() int

func (*PodCondition) XXX_Unmarshal added in v0.16.4

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

type PodConditionType

type PodConditionType string

type PodList

type PodList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// List of pods.
	// More info: http://kubernetes.io/docs/user-guide/pods
	Items []Pod `json:"items" protobuf:"bytes,2,rep,name=items"`
}

PodList is a list of Pods.

func (*PodList) DeepCopy

func (in *PodList) DeepCopy() *PodList

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

func (*PodList) DeepCopyInto

func (in *PodList) DeepCopyInto(out *PodList)

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

func (*PodList) DeepCopyObject

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

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

func (*PodList) Descriptor

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

func (*PodList) Marshal

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

func (*PodList) MarshalTo

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

func (*PodList) MarshalToSizedBuffer added in v0.16.4

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

func (*PodList) ProtoMessage

func (*PodList) ProtoMessage()

func (*PodList) Reset

func (m *PodList) Reset()

func (*PodList) Size

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

func (*PodList) String

func (this *PodList) String() string

func (*PodList) Unmarshal

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

func (*PodList) XXX_DiscardUnknown added in v0.16.4

func (m *PodList) XXX_DiscardUnknown()

func (*PodList) XXX_Marshal added in v0.16.4

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

func (*PodList) XXX_Merge added in v0.16.4

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

func (*PodList) XXX_Size added in v0.16.4

func (m *PodList) XXX_Size() int

func (*PodList) XXX_Unmarshal added in v0.16.4

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

type PodPhase

type PodPhase string

type PodSpec

type PodSpec struct {
	// Restart policy for all containers within the pod.
	// One of Always, OnFailure, Never.
	// Default to Always.
	// More info: http://kubernetes.io/docs/user-guide/pod-states#restartpolicy
	// +optional
	RestartPolicy RestartPolicy `json:"restartPolicy,omitempty" protobuf:"bytes,3,opt,name=restartPolicy,casttype=RestartPolicy"`
	// Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
	// Value must be non-negative integer. The value zero indicates delete immediately.
	// If this value is nil, the default grace period will be used instead.
	// The grace period is the duration in seconds after the processes running in the pod are sent
	// a termination signal and the time when the processes are forcibly halted with a kill signal.
	// Set this value longer than the expected cleanup time for your process.
	// Defaults to 30 seconds.
	// +optional
	TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" protobuf:"varint,4,opt,name=terminationGracePeriodSeconds"`
	// Optional duration in seconds the pod may be active on the node relative to
	// StartTime before the system will actively try to mark it failed and kill associated containers.
	// Value must be a positive integer.
	// +optional
	ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" protobuf:"varint,5,opt,name=activeDeadlineSeconds"`
	// NodeSelector is a selector which must be true for the pod to fit on a node.
	// Selector which must match a node's labels for the pod to be scheduled on that node.
	// More info: http://kubernetes.io/docs/user-guide/node-selection/README
	// +optional
	NodeSelector map[string]string `json:"nodeSelector,omitempty" protobuf:"bytes,7,rep,name=nodeSelector"`

	// ServiceAccountName is the name of the ServiceAccount to use to run this pod.
	// More info: https://git.k8s.io/community/contributors/design-proposals/auth/service_accounts.md
	// +optional
	ServiceAccountName string `json:"serviceAccountName,omitempty" protobuf:"bytes,8,opt,name=serviceAccountName"`
	// DeprecatedServiceAccount is a depreciated alias for ServiceAccountName.
	// Deprecated: Use serviceAccountName instead.
	// +k8s:conversion-gen=false
	// +optional
	DeprecatedServiceAccount string `json:"serviceAccount,omitempty" protobuf:"bytes,9,opt,name=serviceAccount"`

	// NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
	// the scheduler simply schedules this pod onto that node, assuming that it fits resource
	// requirements.
	// +optional
	NodeName string `json:"nodeName,omitempty" protobuf:"bytes,10,opt,name=nodeName"`
	// Host networking requested for this pod. Use the host's network namespace.
	// If this option is set, the ports that will be used must be specified.
	// Default to false.
	// +k8s:conversion-gen=false
	// +optional
	HostNetwork bool `json:"hostNetwork,omitempty" protobuf:"varint,11,opt,name=hostNetwork"`
	// Use the host's pid namespace.
	// Optional: Default to false.
	// +k8s:conversion-gen=false
	// +optional
	HostPID bool `json:"hostPID,omitempty" protobuf:"varint,12,opt,name=hostPID"`
	// Use the host's ipc namespace.
	// Optional: Default to false.
	// +k8s:conversion-gen=false
	// +optional
	HostIPC bool `json:"hostIPC,omitempty" protobuf:"varint,13,opt,name=hostIPC"`
	// Specifies the hostname of the Pod
	// If not specified, the pod's hostname will be set to a system-defined value.
	// +optional
	Hostname string `json:"hostname,omitempty" protobuf:"bytes,16,opt,name=hostname"`
	// If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
	// If not specified, the pod will not have a domainname at all.
	// +optional
	Subdomain string `json:"subdomain,omitempty" protobuf:"bytes,17,opt,name=subdomain"`
	// If specified, the pod will be dispatched by specified scheduler.
	// If not specified, the pod will be dispatched by default scheduler.
	// +optional
	SchedulerName string `json:"schedulername,omitempty" protobuf:"bytes,19,opt,name=schedulername"`
}

PodSpec is a description of a pod

func (*PodSpec) DeepCopy

func (in *PodSpec) DeepCopy() *PodSpec

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

func (*PodSpec) DeepCopyInto

func (in *PodSpec) DeepCopyInto(out *PodSpec)

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

func (*PodSpec) Descriptor

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

func (*PodSpec) Marshal

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

func (*PodSpec) MarshalTo

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

func (*PodSpec) MarshalToSizedBuffer added in v0.16.4

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

func (*PodSpec) ProtoMessage

func (*PodSpec) ProtoMessage()

func (*PodSpec) Reset

func (m *PodSpec) Reset()

func (*PodSpec) Size

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

func (*PodSpec) String

func (this *PodSpec) String() string

func (*PodSpec) Unmarshal

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

func (*PodSpec) XXX_DiscardUnknown added in v0.16.4

func (m *PodSpec) XXX_DiscardUnknown()

func (*PodSpec) XXX_Marshal added in v0.16.4

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

func (*PodSpec) XXX_Merge added in v0.16.4

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

func (*PodSpec) XXX_Size added in v0.16.4

func (m *PodSpec) XXX_Size() int

func (*PodSpec) XXX_Unmarshal added in v0.16.4

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

type PodStatus

type PodStatus struct {
	// Current condition of the pod.
	// More info: http://kubernetes.io/docs/user-guide/pod-states#pod-phase
	// +optional
	Phase PodPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PodPhase"`
	// Current service state of pod.
	// More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions
	// +optional
	Conditions []PodCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,2,rep,name=conditions"`
	// A human readable message indicating details about why the pod is in this condition.
	// +optional
	Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"`
	// A brief CamelCase message indicating details about why the pod is in this state.
	// e.g. 'DiskPressure'
	// +optional
	Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"`

	// IP address of the host to which the pod is assigned. Empty if not yet scheduled.
	// +optional
	HostIP string `json:"hostIP,omitempty" protobuf:"bytes,5,opt,name=hostIP"`
	// IP address allocated to the pod. Routable at least within the cluster.
	// Empty if not yet allocated.
	// +optional
	PodIP string `json:"podIP,omitempty" protobuf:"bytes,6,opt,name=podIP"`

	// RFC 3339 date and time at which the object was acknowledged by the Kubelet.
	// This is before the Kubelet pulled the container image(s) for the pod.
	// +optional
	StartTime *metav1.Time `json:"startTime,omitempty" protobuf:"bytes,7,opt,name=startTime"`
}

PodStatus represents information about the status of a pod. Status may trail the actual state of a system.

func (*PodStatus) DeepCopy

func (in *PodStatus) DeepCopy() *PodStatus

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

func (*PodStatus) DeepCopyInto

func (in *PodStatus) DeepCopyInto(out *PodStatus)

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

func (*PodStatus) Descriptor

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

func (*PodStatus) Marshal

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

func (*PodStatus) MarshalTo

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

func (*PodStatus) MarshalToSizedBuffer added in v0.16.4

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

func (*PodStatus) ProtoMessage

func (*PodStatus) ProtoMessage()

func (*PodStatus) Reset

func (m *PodStatus) Reset()

func (*PodStatus) Size

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

func (*PodStatus) String

func (this *PodStatus) String() string

func (*PodStatus) Unmarshal

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

func (*PodStatus) XXX_DiscardUnknown added in v0.16.4

func (m *PodStatus) XXX_DiscardUnknown()

func (*PodStatus) XXX_Marshal added in v0.16.4

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

func (*PodStatus) XXX_Merge added in v0.16.4

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

func (*PodStatus) XXX_Size added in v0.16.4

func (m *PodStatus) XXX_Size() int

func (*PodStatus) XXX_Unmarshal added in v0.16.4

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

type RestartPolicy

type RestartPolicy string

Jump to

Keyboard shortcuts

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