apiserver: k8s.io/apiserver/pkg/apis/example/v1 Index | Files

package v1

import "k8s.io/apiserver/pkg/apis/example/v1"

Index

Package Files

conversion.go defaults.go doc.go generated.pb.go register.go types.go zz_generated.conversion.go zz_generated.deepcopy.go zz_generated.defaults.go

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")
)
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

func Convert_example_PodCondition_To_v1_PodCondition Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func RegisterConversions Uses

func RegisterConversions(s *runtime.Scheme) error

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

func RegisterDefaults Uses

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 Uses

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

type ConditionStatus Uses

type ConditionStatus string

type Pod Uses

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 Uses

func (in *Pod) DeepCopy() *Pod

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

func (*Pod) DeepCopyInto Uses

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 Uses

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

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

func (*Pod) Descriptor Uses

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

func (*Pod) Marshal Uses

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

func (*Pod) MarshalTo Uses

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

func (*Pod) MarshalToSizedBuffer Uses

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

func (*Pod) ProtoMessage Uses

func (*Pod) ProtoMessage()

func (*Pod) Reset Uses

func (m *Pod) Reset()

func (*Pod) Size Uses

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

func (*Pod) String Uses

func (this *Pod) String() string

func (*Pod) Unmarshal Uses

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

func (*Pod) XXX_DiscardUnknown Uses

func (m *Pod) XXX_DiscardUnknown()

func (*Pod) XXX_Marshal Uses

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

func (*Pod) XXX_Merge Uses

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

func (*Pod) XXX_Size Uses

func (m *Pod) XXX_Size() int

func (*Pod) XXX_Unmarshal Uses

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

type PodCondition Uses

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 Uses

func (in *PodCondition) DeepCopy() *PodCondition

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

func (*PodCondition) DeepCopyInto Uses

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 Uses

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

func (*PodCondition) Marshal Uses

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

func (*PodCondition) MarshalTo Uses

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

func (*PodCondition) MarshalToSizedBuffer Uses

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

func (*PodCondition) ProtoMessage Uses

func (*PodCondition) ProtoMessage()

func (*PodCondition) Reset Uses

func (m *PodCondition) Reset()

func (*PodCondition) Size Uses

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

func (*PodCondition) String Uses

func (this *PodCondition) String() string

func (*PodCondition) Unmarshal Uses

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

func (*PodCondition) XXX_DiscardUnknown Uses

func (m *PodCondition) XXX_DiscardUnknown()

func (*PodCondition) XXX_Marshal Uses

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

func (*PodCondition) XXX_Merge Uses

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

func (*PodCondition) XXX_Size Uses

func (m *PodCondition) XXX_Size() int

func (*PodCondition) XXX_Unmarshal Uses

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

type PodConditionType Uses

type PodConditionType string

type PodList Uses

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 Uses

func (in *PodList) DeepCopy() *PodList

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

func (*PodList) DeepCopyInto Uses

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 Uses

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

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

func (*PodList) Descriptor Uses

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

func (*PodList) Marshal Uses

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

func (*PodList) MarshalTo Uses

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

func (*PodList) MarshalToSizedBuffer Uses

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

func (*PodList) ProtoMessage Uses

func (*PodList) ProtoMessage()

func (*PodList) Reset Uses

func (m *PodList) Reset()

func (*PodList) Size Uses

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

func (*PodList) String Uses

func (this *PodList) String() string

func (*PodList) Unmarshal Uses

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

func (*PodList) XXX_DiscardUnknown Uses

func (m *PodList) XXX_DiscardUnknown()

func (*PodList) XXX_Marshal Uses

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

func (*PodList) XXX_Merge Uses

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

func (*PodList) XXX_Size Uses

func (m *PodList) XXX_Size() int

func (*PodList) XXX_Unmarshal Uses

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

type PodPhase Uses

type PodPhase string

type PodSpec Uses

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 Uses

func (in *PodSpec) DeepCopy() *PodSpec

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

func (*PodSpec) DeepCopyInto Uses

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 Uses

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

func (*PodSpec) Marshal Uses

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

func (*PodSpec) MarshalTo Uses

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

func (*PodSpec) MarshalToSizedBuffer Uses

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

func (*PodSpec) ProtoMessage Uses

func (*PodSpec) ProtoMessage()

func (*PodSpec) Reset Uses

func (m *PodSpec) Reset()

func (*PodSpec) Size Uses

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

func (*PodSpec) String Uses

func (this *PodSpec) String() string

func (*PodSpec) Unmarshal Uses

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

func (*PodSpec) XXX_DiscardUnknown Uses

func (m *PodSpec) XXX_DiscardUnknown()

func (*PodSpec) XXX_Marshal Uses

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

func (*PodSpec) XXX_Merge Uses

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

func (*PodSpec) XXX_Size Uses

func (m *PodSpec) XXX_Size() int

func (*PodSpec) XXX_Unmarshal Uses

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

type PodStatus Uses

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 Uses

func (in *PodStatus) DeepCopy() *PodStatus

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

func (*PodStatus) DeepCopyInto Uses

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 Uses

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

func (*PodStatus) Marshal Uses

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

func (*PodStatus) MarshalTo Uses

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

func (*PodStatus) MarshalToSizedBuffer Uses

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

func (*PodStatus) ProtoMessage Uses

func (*PodStatus) ProtoMessage()

func (*PodStatus) Reset Uses

func (m *PodStatus) Reset()

func (*PodStatus) Size Uses

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

func (*PodStatus) String Uses

func (this *PodStatus) String() string

func (*PodStatus) Unmarshal Uses

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

func (*PodStatus) XXX_DiscardUnknown Uses

func (m *PodStatus) XXX_DiscardUnknown()

func (*PodStatus) XXX_Marshal Uses

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

func (*PodStatus) XXX_Merge Uses

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

func (*PodStatus) XXX_Size Uses

func (m *PodStatus) XXX_Size() int

func (*PodStatus) XXX_Unmarshal Uses

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

type RestartPolicy Uses

type RestartPolicy string

Package v1 imports 14 packages (graph) and is imported by 2 packages. Updated 2019-09-01. Refresh now. Tools for package owners.