Documentation ¶
Index ¶
- Constants
- Variables
- func Convert_example_PodCondition_To_v1_PodCondition(in *example.PodCondition, out *PodCondition, s conversion.Scope) error
- func Convert_example_PodList_To_v1_PodList(in *example.PodList, out *PodList, s conversion.Scope) error
- func Convert_example_PodSpec_To_v1_PodSpec(in *example.PodSpec, out *PodSpec, s conversion.Scope) error
- func Convert_example_PodStatus_To_v1_PodStatus(in *example.PodStatus, out *PodStatus, s conversion.Scope) error
- func Convert_example_Pod_To_v1_Pod(in *example.Pod, out *Pod, s conversion.Scope) error
- func Convert_v1_PodCondition_To_example_PodCondition(in *PodCondition, out *example.PodCondition, s conversion.Scope) error
- func Convert_v1_PodList_To_example_PodList(in *PodList, out *example.PodList, s conversion.Scope) error
- func Convert_v1_PodSpec_To_example_PodSpec(in *PodSpec, out *example.PodSpec, s conversion.Scope) error
- func Convert_v1_PodStatus_To_example_PodStatus(in *PodStatus, out *example.PodStatus, s conversion.Scope) error
- func Convert_v1_Pod_To_example_Pod(in *Pod, out *example.Pod, s conversion.Scope) error
- func Kind(kind string) schema.GroupKind
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- type ConditionStatus
- type Pod
- func (in *Pod) DeepCopy() *Pod
- func (in *Pod) DeepCopyInto(out *Pod)
- func (in *Pod) DeepCopyObject() runtime.Object
- func (*Pod) Descriptor() ([]byte, []int)
- func (m *Pod) Marshal() (dAtA []byte, err error)
- func (m *Pod) MarshalTo(dAtA []byte) (int, error)
- func (m *Pod) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Pod) ProtoMessage()
- func (m *Pod) Reset()
- func (m *Pod) Size() (n int)
- func (this *Pod) String() string
- func (m *Pod) Unmarshal(dAtA []byte) error
- func (m *Pod) XXX_DiscardUnknown()
- func (m *Pod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pod) XXX_Merge(src proto.Message)
- func (m *Pod) XXX_Size() int
- func (m *Pod) XXX_Unmarshal(b []byte) error
- type PodCondition
- func (in *PodCondition) DeepCopy() *PodCondition
- func (in *PodCondition) DeepCopyInto(out *PodCondition)
- func (*PodCondition) Descriptor() ([]byte, []int)
- func (m *PodCondition) Marshal() (dAtA []byte, err error)
- func (m *PodCondition) MarshalTo(dAtA []byte) (int, error)
- func (m *PodCondition) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PodCondition) ProtoMessage()
- func (m *PodCondition) Reset()
- func (m *PodCondition) Size() (n int)
- func (this *PodCondition) String() string
- func (m *PodCondition) Unmarshal(dAtA []byte) error
- func (m *PodCondition) XXX_DiscardUnknown()
- func (m *PodCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PodCondition) XXX_Merge(src proto.Message)
- func (m *PodCondition) XXX_Size() int
- func (m *PodCondition) XXX_Unmarshal(b []byte) error
- type PodConditionType
- type PodList
- func (in *PodList) DeepCopy() *PodList
- func (in *PodList) DeepCopyInto(out *PodList)
- func (in *PodList) DeepCopyObject() runtime.Object
- func (*PodList) Descriptor() ([]byte, []int)
- func (m *PodList) Marshal() (dAtA []byte, err error)
- func (m *PodList) MarshalTo(dAtA []byte) (int, error)
- func (m *PodList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PodList) ProtoMessage()
- func (m *PodList) Reset()
- func (m *PodList) Size() (n int)
- func (this *PodList) String() string
- func (m *PodList) Unmarshal(dAtA []byte) error
- func (m *PodList) XXX_DiscardUnknown()
- func (m *PodList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PodList) XXX_Merge(src proto.Message)
- func (m *PodList) XXX_Size() int
- func (m *PodList) XXX_Unmarshal(b []byte) error
- type PodPhase
- type PodSpec
- func (in *PodSpec) DeepCopy() *PodSpec
- func (in *PodSpec) DeepCopyInto(out *PodSpec)
- func (*PodSpec) Descriptor() ([]byte, []int)
- func (m *PodSpec) Marshal() (dAtA []byte, err error)
- func (m *PodSpec) MarshalTo(dAtA []byte) (int, error)
- func (m *PodSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PodSpec) ProtoMessage()
- func (m *PodSpec) Reset()
- func (m *PodSpec) Size() (n int)
- func (this *PodSpec) String() string
- func (m *PodSpec) Unmarshal(dAtA []byte) error
- func (m *PodSpec) XXX_DiscardUnknown()
- func (m *PodSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PodSpec) XXX_Merge(src proto.Message)
- func (m *PodSpec) XXX_Size() int
- func (m *PodSpec) XXX_Unmarshal(b []byte) error
- type PodStatus
- func (in *PodStatus) DeepCopy() *PodStatus
- func (in *PodStatus) DeepCopyInto(out *PodStatus)
- func (*PodStatus) Descriptor() ([]byte, []int)
- func (m *PodStatus) Marshal() (dAtA []byte, err error)
- func (m *PodStatus) MarshalTo(dAtA []byte) (int, error)
- func (m *PodStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PodStatus) ProtoMessage()
- func (m *PodStatus) Reset()
- func (m *PodStatus) Size() (n int)
- func (this *PodStatus) String() string
- func (m *PodStatus) Unmarshal(dAtA []byte) error
- func (m *PodStatus) XXX_DiscardUnknown()
- func (m *PodStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PodStatus) XXX_Merge(src proto.Message)
- func (m *PodStatus) XXX_Size() int
- func (m *PodStatus) XXX_Unmarshal(b []byte) error
- type RestartPolicy
Constants ¶
const GroupName = "example.apiserver.k8s.io"
GroupName is the group name use in this package
Variables ¶
var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") )
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 )
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 ¶
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 ¶
Convert_v1_Pod_To_example_Pod is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pod.
func (*Pod) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Pod) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Pod) Descriptor ¶
func (*Pod) MarshalToSizedBuffer ¶ added in v0.16.4
func (*Pod) ProtoMessage ¶
func (*Pod) ProtoMessage()
func (*Pod) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *Pod) XXX_DiscardUnknown()
func (*Pod) XXX_Marshal ¶ added in v0.16.4
func (*Pod) XXX_Unmarshal ¶ added in v0.16.4
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) 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodList.
func (*PodList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PodList) Descriptor ¶
func (*PodList) MarshalToSizedBuffer ¶ added in v0.16.4
func (*PodList) ProtoMessage ¶
func (*PodList) ProtoMessage()
func (*PodList) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *PodList) XXX_DiscardUnknown()
func (*PodList) XXX_Marshal ¶ added in v0.16.4
func (*PodList) XXX_Unmarshal ¶ added in v0.16.4
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://kubernetes.io/docs/concepts/security/service-accounts/ // +optional ServiceAccountName string `json:"serviceAccountName,omitempty" protobuf:"bytes,8,opt,name=serviceAccountName"` // DeprecatedServiceAccount is a deprecated 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSpec.
func (*PodSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodSpec) Descriptor ¶
func (*PodSpec) MarshalToSizedBuffer ¶ added in v0.16.4
func (*PodSpec) ProtoMessage ¶
func (*PodSpec) ProtoMessage()
func (*PodSpec) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *PodSpec) XXX_DiscardUnknown()
func (*PodSpec) XXX_Marshal ¶ added in v0.16.4
func (*PodSpec) XXX_Unmarshal ¶ added in v0.16.4
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodStatus.
func (*PodStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodStatus) Descriptor ¶
func (*PodStatus) MarshalToSizedBuffer ¶ added in v0.16.4
func (*PodStatus) ProtoMessage ¶
func (*PodStatus) ProtoMessage()
func (*PodStatus) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *PodStatus) XXX_DiscardUnknown()
func (*PodStatus) XXX_Marshal ¶ added in v0.16.4
func (*PodStatus) XXX_Unmarshal ¶ added in v0.16.4
type RestartPolicy ¶
type RestartPolicy string