{"modulePath":"github.com/dockerstack/kubernetes","version":"v0.20.1-0.20150627061651-1c0b765df6da","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package api\n\nPackage api contains the latest (or \"internal\") version of the Kubernetes API objects. This is the API objects as represented in memory. The contract presented to clients is located in the versioned packages, which are sub-directories. The first one is \"v1beta1\". Those packages describe how a particular version is serialized to storage/network.\n\n## Constants\n\n```go\nconst (\n\t// NamespaceDefault means the object is in the default namespace which is applied when not specified by clients\n\tNamespaceDefault string = \"default\"\n\t// NamespaceAll is the default argument to specify on a context when you want to list or filter resources across all namespaces\n\tNamespaceAll string = \"\"\n\t// NamespaceNone is the argument for a context when there is no namespace.\n\tNamespaceNone string = \"\"\n\t// TerminationMessagePathDefault means the default path to capture the application termination message running in a container\n\tTerminationMessagePathDefault string = \"/dev/termination-log\"\n)\n```\n\n```go\nconst (\n\tStatusSuccess = \"Success\"\n\tStatusFailure = \"Failure\"\n)\n```\nValues of Status.Status\n\n```go\nconst (\n\t// SecretTypeOpaque is the default; arbitrary user-defined data\n\tSecretTypeOpaque SecretType = \"Opaque\"\n\n\t// SecretTypeServiceAccountToken contains a token that identifies a service account to the API\n\t//\n\t// Required fields:\n\t// - Secret.Annotations[\"kubernetes.io/service-account.name\"] - the name of the ServiceAccount the token identifies\n\t// - Secret.Annotations[\"kubernetes.io/service-account.uid\"] - the UID of the ServiceAccount the token identifies\n\t// - Secret.Data[\"token\"] - a token that identifies the service account to the API\n\tSecretTypeServiceAccountToken SecretType = \"kubernetes.io/service-account-token\"\n\n\t// ServiceAccountNameKey is the key of the required annotation for SecretTypeServiceAccountToken secrets\n\tServiceAccountNameKey = \"kubernetes.io/service-account.name\"\n\t// ServiceAccountUIDKey is the key of the required annotation for SecretTypeServiceAccountToken secrets\n\tServiceAccountUIDKey = \"kubernetes.io/service-account.uid\"\n\t// ServiceAccountTokenKey is the key of the required data for SecretTypeServiceAccountToken secrets\n\tServiceAccountTokenKey = \"token\"\n\t// ServiceAccountKubeconfigKey is the key of the optional kubeconfig data for SecretTypeServiceAccountToken secrets\n\tServiceAccountKubeconfigKey = \"kubernetes.kubeconfig\"\n\t// ServiceAccountRootCAKey is the key of the optional root certificate authority for SecretTypeServiceAccountToken secrets\n\tServiceAccountRootCAKey = \"ca.crt\"\n\n\t// SecretTypeDockercfg contains a dockercfg file that follows the same format rules as ~/.dockercfg\n\t//\n\t// Required fields:\n\t// - Secret.Data[\".dockercfg\"] - a serialized ~/.dockercfg file\n\tSecretTypeDockercfg SecretType = \"kubernetes.io/dockercfg\"\n\n\t// DockerConfigKey is the key of the required data for SecretTypeDockercfg secrets\n\tDockerConfigKey = \".dockercfg\"\n)\n```\n\n```go\nconst (\n\t// Enable stdin for remote command execution\n\tExecStdinParam = \"input\"\n\t// Enable stdout for remote command execution\n\tExecStdoutParam = \"output\"\n\t// Enable stderr for remote command execution\n\tExecStderrParam = \"error\"\n\t// Enable TTY for remote command execution\n\tExecTTYParam = \"tty\"\n\t// Command to run for remote command execution\n\tExecCommandParamm = \"command\"\n\n\tStreamType       = \"streamType\"\n\tStreamTypeStdin  = \"stdin\"\n\tStreamTypeStdout = \"stdout\"\n\tStreamTypeStderr = \"stderr\"\n\tStreamTypeData   = \"data\"\n\tStreamTypeError  = \"error\"\n\n\tPortHeader = \"port\"\n)\n```\nThese constants are for remote command execution and port forwarding and are used by both the client side and server side components.\n\nThis is probably not the ideal place for them, but it didn't seem worth it to create pkg/exec and pkg/portforward just to contain a single file with constants in it.  Suggestions for more appropriate alternatives are definitely welcome!\n\n```go\nconst (\n\t// ClusterIPNone - do not assign a cluster IP\n\t// no proxying required and no environment variables should be created for pods\n\tClusterIPNone = \"None\"\n)\n```\n\n```go\nconst MaxSecretSize = 1 * 1024 * 1024\n```\n\n## Variables\n\n```go\nvar (\n\t// Errors that could be returned by GetReference.\n\tErrNilObject  = errors.New(\"can't reference a nil object\")\n\tErrNoSelfLink = errors.New(\"selfLink was empty, can't make reference\")\n)\n```\n\n```go\nvar Codec = runtime.CodecFor(Scheme, \"\")\n```\nCodec is the identity codec for this package - it can only convert itself to itself.\n\n```go\nvar ForTesting_ReferencesAllowBlankSelfLinks = false\n```\nForTesting\\_ReferencesAllowBlankSelfLinks can be set to true in tests to avoid \"ErrNoSelfLink\" errors.\n\n```go\nvar Scheme = runtime.NewScheme()\n```\nScheme is the default instance of runtime.Scheme to which types in the Kubernetes API are already registered.\n\n```go\nvar Semantic = conversion.EqualitiesOrDie(\n\tfunc(a, b resource.Quantity) bool {\n\n\t\tif a.Amount == nil \u0026\u0026 b.MilliValue() == 0 {\n\t\t\treturn true\n\t\t}\n\t\tif b.Amount == nil \u0026\u0026 a.MilliValue() == 0 {\n\t\t\treturn true\n\t\t}\n\t\tif a.Amount == nil || b.Amount == nil {\n\t\t\treturn false\n\t\t}\n\t\treturn a.Amount.Cmp(b.Amount) == 0\n\t},\n\tfunc(a, b util.Time) bool {\n\t\treturn a.UTC() == b.UTC()\n\t},\n\tfunc(a, b labels.Selector) bool {\n\t\treturn a.String() == b.String()\n\t},\n\tfunc(a, b fields.Selector) bool {\n\t\treturn a.String() == b.String()\n\t},\n)\n```\nSemantic can do semantic deep equality checks for api objects. Example: api.Semantic.DeepEqual(aPod, aPodWithNonNilButEmptyMaps) == true\n\n## Functions\n\n```go\nfunc AddToNodeAddresses(addresses *[]NodeAddress, addAddresses ...NodeAddress)\n```\nAddToNodeAddresses appends the NodeAddresses to the passed-by-pointer slice, only if they do not already exist\n\n```go\nfunc FieldSelectorQueryParam(version string) string\n```\nTODO: remove me when watch is refactored\n\n```go\nfunc FillObjectMetaSystemFields(ctx Context, meta *ObjectMeta)\n```\nFillObjectMetaSystemFields populates fields that are managed by the system on ObjectMeta.\n\n```go\nfunc GenerateName(u NameGenerator, meta *ObjectMeta)\n```\nGenerateName will resolve the object name of the provided ObjectMeta to a generated version if necessary. It expects that validation for ObjectMeta has already completed (that Base is a valid name) and that the NameGenerator generates a name that is also valid.\n\n```go\nfunc HasObjectMetaSystemFieldValues(meta *ObjectMeta) bool\n```\nHasObjectMetaSystemFieldValues returns true if fields that are managed by the system on ObjectMeta have values.\n\n```go\nfunc HashObject(obj runtime.Object, codec runtime.Codec) (string, error)\n```\n\n```go\nfunc IsEmpty(requestsToContexts RequestContextMapper) (bool, error)\n```\nIsEmpty returns true if there are no contexts registered, or an error if it could not be determined. Intended for use by tests.\n\n```go\nfunc IsPodReady(pod *Pod) bool\n```\nIsPodReady retruns true if a pod is ready; false otherwise.\n\n```go\nfunc IsServiceIPRequested(service *Service) bool\n```\nthis function aims to check if the service's cluster IP is requested or not\n\n```go\nfunc IsServiceIPSet(service *Service) bool\n```\nthis function aims to check if the service's ClusterIP is set or not the objective is not to perform validation here\n\n```go\nfunc IsStandardFinalizerName(str string) bool\n```\n\n```go\nfunc IsStandardResourceName(str string) bool\n```\n\n```go\nfunc LabelSelectorQueryParam(version string) string\n```\nTODO: remove me when watch is refactored\n\n```go\nfunc LoadBalancerStatusEqual(l, r *LoadBalancerStatus) bool\n```\nTODO: make method on LoadBalancerStatus?\n\n```go\nfunc NamespaceFrom(ctx Context) (string, bool)\n```\nNamespaceFrom returns the value of the namespace key on the ctx\n\n```go\nfunc NamespaceValue(ctx Context) string\n```\nNamespaceValue returns the value of the namespace key on the ctx, or the empty string if none\n\n```go\nfunc NewRequestContextFilter(mapper RequestContextMapper, handler http.Handler) (http.Handler, error)\n```\nNewRequestContextFilter ensures there is a Context object associated with the request before calling the passed handler. After the passed handler runs, the context is cleaned up.\n\n```go\nfunc PreV1Beta3(version string) bool\n```\npreV1Beta3 returns true if the provided API version is an API introduced before v1beta3.\n\n```go\nfunc UserFrom(ctx Context) (user.Info, bool)\n```\nUserFrom returns the value of the user key on the ctx\n\n```go\nfunc ValidNamespace(ctx Context, resource *ObjectMeta) bool\n```\nValidNamespace returns false if the namespace on the context differs from the resource.  If the resource has no namespace, it is set to the value in the context.\n\n## Types\n\n```go\ntype APIVersions struct {\n\tVersions []string `json:\"versions\"`\n}\n```\nAPIVersions lists the api versions that are available, to allow version negotiation. APIVersions isn't just an unnamed array of strings in order to allow for future evolution, though unversioned\n\n```go\nfunc (apiVersions APIVersions) GoString() string\n```\n\n```go\nfunc (apiVersions APIVersions) String() string\n```\nString returns available api versions as a human-friendly version string.\n\n```go\ntype AWSElasticBlockStoreVolumeSource struct {\n\t// Unique id of the persistent disk resource. Used to identify the disk in AWS\n\tVolumeID string `json:\"volumeID\"`\n\t// Required: Filesystem type to mount.\n\t// Must be a filesystem type supported by the host operating system.\n\t// Ex. \"ext4\", \"xfs\", \"ntfs\"\n\t// TODO: how do we prevent errors in the filesystem from compromising the machine\n\tFSType string `json:\"fsType,omitempty\"`\n\t// Optional: Partition on the disk to mount.\n\t// If omitted, kubelet will attempt to mount the device name.\n\t// Ex. For /dev/sda1, this field is \"1\", for /dev/sda, this field is 0 or empty.\n\tPartition int `json:\"partition,omitempty\"`\n\t// Optional: Defaults to false (read/write). ReadOnly here will force\n\t// the ReadOnly setting in VolumeMounts.\n\tReadOnly bool `json:\"readOnly,omitempty\"`\n}\n```\nAWSElasticBlockStoreVolumeSource represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist and be formatted before mounting to a container. The disk must also be in the same AWS zone as the kubelet. A AWS EBS disk can only be mounted as read/write once.\n\n```go\ntype Binding struct {\n\tTypeMeta `json:\",inline\"`\n\t// ObjectMeta describes the object that is being bound.\n\tObjectMeta `json:\"metadata,omitempty\"`\n\n\t// Target is the object to bind to.\n\tTarget ObjectReference `json:\"target\"`\n}\n```\nBinding ties one object to another - for example, a pod is bound to a node by a scheduler.\n\n```go\nfunc (*Binding) IsAnAPIObject()\n```\n\n```go\ntype Capabilities struct {\n\t// Added capabilities\n\tAdd []Capability `json:\"add,omitempty\"`\n\t// Removed capabilities\n\tDrop []Capability `json:\"drop,omitempty\"`\n}\n```\nCapabilities represent POSIX capabilities that can be added or removed to a running container.\n\n```go\ntype Capability string\n```\nCapability represent POSIX capabilities type\n\n```go\ntype CauseType string\n```\nCauseType is a machine readable value providing more detail about what occured in a status response. An operation may have multiple causes for a status (whether Failure or Success).\n\n```go\nconst (\n\t// CauseTypeFieldValueNotFound is used to report failure to find a requested value\n\t// (e.g. looking up an ID).\n\tCauseTypeFieldValueNotFound CauseType = \"FieldValueNotFound\"\n\t// CauseTypeFieldValueRequired is used to report required values that are not\n\t// provided (e.g. empty strings, null values, or empty arrays).\n\tCauseTypeFieldValueRequired CauseType = \"FieldValueRequired\"\n\t// CauseTypeFieldValueDuplicate is used to report collisions of values that must be\n\t// unique (e.g. unique IDs).\n\tCauseTypeFieldValueDuplicate CauseType = \"FieldValueDuplicate\"\n\t// CauseTypeFieldValueInvalid is used to report malformed values (e.g. failed regex\n\t// match).\n\tCauseTypeFieldValueInvalid CauseType = \"FieldValueInvalid\"\n\t// CauseTypeFieldValueNotSupported is used to report valid (as per formatting rules)\n\t// values that can not be handled (e.g. an enumerated string).\n\tCauseTypeFieldValueNotSupported CauseType = \"FieldValueNotSupported\"\n\t// CauseTypeUnexpectedServerResponse is used to report when the server responded to the client\n\t// without the expected return type. The presence of this cause indicates the error may be\n\t// due to an intervening proxy or the server software malfunctioning.\n\tCauseTypeUnexpectedServerResponse CauseType = \"UnexpectedServerResponse\"\n)\n```\n\n```go\ntype ComponentCondition struct {\n\tType    ComponentConditionType `json:\"type\"`\n\tStatus  ConditionStatus        `json:\"status\"`\n\tMessage string                 `json:\"message,omitempty\"`\n\tError   string                 `json:\"error,omitempty\"`\n}\n```\n\n```go\ntype ComponentConditionType string\n```\nType and constants for component health validation.\n\n```go\nconst (\n\tComponentHealthy ComponentConditionType = \"Healthy\"\n)\n```\nThese are the valid conditions for the component.\n\n```go\ntype ComponentStatus struct {\n\tTypeMeta   `json:\",inline\"`\n\tObjectMeta `json:\"metadata,omitempty\"`\n\n\tConditions []ComponentCondition `json:\"conditions,omitempty\"`\n}\n```\nComponentStatus (and ComponentStatusList) holds the cluster validation info.\n\n```go\nfunc (*ComponentStatus) IsAnAPIObject()\n```\n\n```go\ntype ComponentStatusList struct {\n\tTypeMeta `json:\",inline\"`\n\tListMeta `json:\"metadata,omitempty\"`\n\n\tItems []ComponentStatus `json:\"items\"`\n}\n```\n\n```go\nfunc (*ComponentStatusList) IsAnAPIObject()\n```\n\n```go\ntype ConditionStatus string\n```\n\n```go\nconst (\n\tConditionTrue    ConditionStatus = \"True\"\n\tConditionFalse   ConditionStatus = \"False\"\n\tConditionUnknown ConditionStatus = \"Unknown\"\n)\n```\nThese are valid condition statuses. \"ConditionTrue\" means a resource is in the condition; \"ConditionFalse\" means a resource is not in the condition; \"ConditionUnknown\" means kubernetes can't decide if a resource is in the condition or not. In the future, we could add other intermediate conditions, e.g. ConditionDegraded.\n\n```go\ntype Container struct {\n\t// Required: This must be a DNS_LABEL.  Each container in a pod must\n\t// have a unique name.\n\tName string `json:\"name\"`\n\t// Required.\n\tImage string `json:\"image\"`\n\t// Optional: The docker image's entrypoint is used if this is not provided; cannot be updated.\n\t// Variable references $(VAR_NAME) are expanded using the container's environment.  If a variable\n\t// cannot be resolved, the reference in the input string will be unchanged.  The $(VAR_NAME) syntax\n\t// can be escaped with a double $$, ie: $$(VAR_NAME).  Escaped references will never be expanded,\n\t// regardless of whether the variable exists or not.\n\tCommand []string `json:\"command,omitempty\"`\n\t// Optional: The docker image's cmd is used if this is not provided; cannot be updated.\n\t// Variable references $(VAR_NAME) are expanded using the container's environment.  If a variable\n\t// cannot be resolved, the reference in the input string will be unchanged.  The $(VAR_NAME) syntax\n\t// can be escaped with a double $$, ie: $$(VAR_NAME).  Escaped references will never be expanded,\n\t// regardless of whether the variable exists or not.\n\tArgs []string `json:\"args,omitempty\"`\n\t// Optional: Defaults to Docker's default.\n\tWorkingDir string          `json:\"workingDir,omitempty\"`\n\tPorts      []ContainerPort `json:\"ports,omitempty\"`\n\tEnv        []EnvVar        `json:\"env,omitempty\"`\n\t// Compute resource requirements.\n\tResources      ResourceRequirements `json:\"resources,omitempty\"`\n\tVolumeMounts   []VolumeMount        `json:\"volumeMounts,omitempty\"`\n\tLivenessProbe  *Probe               `json:\"livenessProbe,omitempty\"`\n\tReadinessProbe *Probe               `json:\"readinessProbe,omitempty\"`\n\tLifecycle      *Lifecycle           `json:\"lifecycle,omitempty\"`\n\t// Required.\n\tTerminationMessagePath string `json:\"terminationMessagePath,omitempty\"`\n\t// Required: Policy for pulling images for this container\n\tImagePullPolicy PullPolicy `json:\"imagePullPolicy\"`\n\t// Optional: SecurityContext defines the security options the pod should be run with\n\tSecurityContext *SecurityContext `json:\"securityContext,omitempty\" description:\"security options the pod should run with\"`\n}\n```\nContainer represents a single container that is expected to be run on the host.\n\n```go\ntype ContainerPort struct {\n\t// Optional: If specified, this must be a IANA_SVC_NAME  Each named port\n\t// in a pod must have a unique name.\n\tName string `json:\"name,omitempty\"`\n\t// Optional: If specified, this must be a valid port number, 0 \u003c x \u003c 65536.\n\t// If HostNetwork is specified, this must match ContainerPort.\n\tHostPort int `json:\"hostPort,omitempty\"`\n\t// Required: This must be a valid port number, 0 \u003c x \u003c 65536.\n\tContainerPort int `json:\"containerPort\"`\n\t// Required: Supports \"TCP\" and \"UDP\".\n\tProtocol Protocol `json:\"protocol,omitempty\"`\n\t// Optional: What host IP to bind the external port to.\n\tHostIP string `json:\"hostIP,omitempty\"`\n}\n```\nContainerPort represents a network port in a single container\n\n```go\ntype ContainerState struct {\n\tWaiting    *ContainerStateWaiting    `json:\"waiting,omitempty\"`\n\tRunning    *ContainerStateRunning    `json:\"running,omitempty\"`\n\tTerminated *ContainerStateTerminated `json:\"terminated,omitempty\"`\n}\n```\nContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.\n\n```go\ntype ContainerStateRunning struct {\n\tStartedAt util.Time `json:\"startedAt,omitempty\"`\n}\n```\n\n```go\ntype ContainerStateTerminated struct {\n\tExitCode    int       `json:\"exitCode\"`\n\tSignal      int       `json:\"signal,omitempty\"`\n\tReason      string    `json:\"reason,omitempty\"`\n\tMessage     string    `json:\"message,omitempty\"`\n\tStartedAt   util.Time `json:\"startedAt,omitempty\"`\n\tFinishedAt  util.Time `json:\"finishedAt,omitempty\"`\n\tContainerID string    `json:\"containerID,omitempty\"`\n}\n```\n\n```go\ntype ContainerStateWaiting struct {\n\t// Reason could be pulling image,\n\tReason string `json:\"reason,omitempty\"`\n}\n```\n\n```go\ntype ContainerStatus struct {\n\t// Each container in a pod must have a unique name.\n\tName string `json:\"name\"`\n\t// TODO(dchen1107): Should we rename PodStatus to a more generic name or have a separate states\n\t// defined for container?\n\tState                ContainerState `json:\"state,omitempty\"`\n\tLastTerminationState ContainerState `json:\"lastState,omitempty\"`\n\t// Ready specifies whether the conatiner has passed its readiness check.\n\tReady bool `json:\"ready\"`\n\t// Note that this is calculated from dead containers.  But those containers are subject to\n\t// garbage collection.  This value will get capped at 5 by GC.\n\tRestartCount int `json:\"restartCount\"`\n\t// TODO(dchen1107): Need to decide how to represent this in v1beta3\n\tImage       string `json:\"image\"`\n\tImageID     string `json:\"imageID\"`\n\tContainerID string `json:\"containerID,omitempty\"`\n}\n```\n\n```go\nfunc GetContainerStatus(statuses []ContainerStatus, name string) (ContainerStatus, bool)\n```\n\n```go\nfunc GetExistingContainerStatus(statuses []ContainerStatus, name string) ContainerStatus\n```\n\n```go\ntype Context interface {\n\tValue(key interface{}) interface{}\n}\n```\nContext carries values across API boundaries.\n\n```go\nfunc NewContext() Context\n```\nNewContext instantiates a base context object for request flows.\n\n```go\nfunc NewDefaultContext() Context\n```\nNewDefaultContext instantiates a base context object for request flows in the default namespace\n\n```go\nfunc WithNamespace(parent Context, namespace string) Context\n```\nWithNamespace returns a copy of parent in which the namespace value is set\n\n```go\nfunc WithNamespaceDefaultIfNone(parent Context) Context\n```\nWithNamespaceDefaultIfNone returns a context whose namespace is the default if and only if the parent context has no namespace value\n\n```go\nfunc WithUser(parent Context, user user.Info) Context\n```\nWithUser returns a copy of parent in which the user value is set\n\n```go\nfunc WithValue(parent Context, key interface{}, val interface{}) Context\n```\nWithValue returns a copy of parent in which the value associated with key is val.\n\n```go\ntype ConversionError struct {\n\tIn, Out interface{}\n\tMessage string\n}\n```\nConversion error conveniently packages up errors in conversions.\n\n```go\nfunc (c *ConversionError) Error() string\n```\nReturn a helpful string about the error\n\n```go\ntype DNSPolicy string\n```\nDNSPolicy defines how a pod's DNS will be configured.\n\n```go\nconst (\n\t// DNSClusterFirst indicates that the pod should use cluster DNS\n\t// first, if it is available, then fall back on the default (as\n\t// determined by kubelet) DNS settings.\n\tDNSClusterFirst DNSPolicy = \"ClusterFirst\"\n\n\t// DNSDefault indicates that the pod should use the default (as\n\t// determined by kubelet) DNS settings.\n\tDNSDefault DNSPolicy = \"Default\"\n)\n```\n\n```go\ntype DeleteOptions struct {\n\tTypeMeta `json:\",inline\"`\n\n\t// Optional duration in seconds before the object should be deleted. Value must be non-negative integer.\n\t// The value zero indicates delete immediately. If this value is nil, the default grace period for the\n\t// specified type will be used.\n\tGracePeriodSeconds *int64 `json:\"gracePeriodSeconds\"`\n}\n```\nDeleteOptions may be provided when deleting an API object\n\n```go\nfunc NewDeleteOptions(grace int64) *DeleteOptions\n```\nNewDeleteOptions returns a DeleteOptions indicating the resource should be deleted within the specified grace period. Use zero to indicate immediate deletion. If you would prefer to use the default grace period, use \u0026api.DeleteOptions{} directly.\n\n```go\nfunc (*DeleteOptions) IsAnAPIObject()\n```\n\n```go\ntype EmptyDirVolumeSource struct {\n\t// TODO: Longer term we want to represent the selection of underlying\n\t// media more like a scheduling problem - user says what traits they\n\t// need, we give them a backing store that satisifies that.  For now\n\t// this will cover the most common needs.\n\t// Optional: what type of storage medium should back this directory.\n\t// The default is \"\" which means to use the node's default medium.\n\tMedium StorageMedium `json:\"medium\"`\n}\n```\nEmptyDirVolumeSource represents an empty directory for a pod.\n\n```go\ntype EndpointAddress struct {\n\t// The IP of this endpoint.\n\t// TODO: This should allow hostname or IP, see #4447.\n\tIP string\n\n\t// Optional: The kubernetes object related to the entry point.\n\tTargetRef *ObjectReference\n}\n```\nEndpointAddress is a tuple that describes single IP address.\n\n```go\ntype EndpointPort struct {\n\t// The name of this port (corresponds to ServicePort.Name).  Optional\n\t// if only one port is defined.  Must be a DNS_LABEL.\n\tName string\n\n\t// The port number.\n\tPort int\n\n\t// The IP protocol for this port.\n\tProtocol Protocol\n}\n```\nEndpointPort is a tuple that describes a single port.\n\n```go\ntype EndpointSubset struct {\n\tAddresses []EndpointAddress\n\tPorts     []EndpointPort\n}\n```\nEndpointSubset is a group of addresses with a common set of ports.  The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n\n\t{\n\t  Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t  Ports:     [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t}\n\nThe resulting set of endpoints can be viewed as:\n\n\ta: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n\tb: [ 10.10.1.1:309, 10.10.2.2:309 ]\n\n```go\ntype Endpoints struct {\n\tTypeMeta   `json:\",inline\"`\n\tObjectMeta `json:\"metadata,omitempty\"`\n\n\t// The set of all endpoints is the union of all subsets.\n\tSubsets []EndpointSubset\n}\n```\nEndpoints is a collection of endpoints that implement the actual service.  Example:\n\n\t Name: \"mysvc\",\n\t Subsets: [\n\t   {\n\t     Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t     Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t   },\n\t   {\n\t     Addresses: [{\"ip\": \"10.10.3.3\"}],\n\t     Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n\t   },\n\t]\n\n```go\nfunc (*Endpoints) IsAnAPIObject()\n```\n\n```go\ntype EndpointsList struct {\n\tTypeMeta `json:\",inline\"`\n\tListMeta `json:\"metadata,omitempty\"`\n\n\tItems []Endpoints `json:\"items\"`\n}\n```\nEndpointsList is a list of endpoints.\n\n```go\nfunc (*EndpointsList) IsAnAPIObject()\n```\n\n```go\ntype EnvVar struct {\n\t// Required: This must be a C_IDENTIFIER.\n\tName string `json:\"name\"`\n\t// Optional: no more than one of the following may be specified.\n\t// Optional: Defaults to \"\"; variable references $(VAR_NAME) are expanded\n\t// using the previous defined environment variables in the container and\n\t// any service environment variables.  If a variable cannot be resolved,\n\t// the reference in the input string will be unchanged.  The $(VAR_NAME)\n\t// syntax can be escaped with a double $$, ie: $$(VAR_NAME).  Escaped\n\t// references will never be expanded, regardless of whether the variable\n\t// exists or not.\n\tValue string `json:\"value,omitempty\"`\n\t// Optional: Specifies a source the value of this var should come from.\n\tValueFrom *EnvVarSource `json:\"valueFrom,omitempty\"`\n}\n```\nEnvVar represents an environment variable present in a Container.\n\n```go\ntype EnvVarSource struct {\n\t// Required: Selects a field of the pod; only name and namespace are supported.\n\tFieldRef *ObjectFieldSelector `json:\"fieldRef\"`\n}\n```\nEnvVarSource represents a source for the value of an EnvVar.\n\n```go\ntype Event struct {\n\tTypeMeta   `json:\",inline\"`\n\tObjectMeta `json:\"metadata,omitempty\"`\n\n\t// Required. The object that this event is about.\n\tInvolvedObject ObjectReference `json:\"involvedObject,omitempty\"`\n\n\t// Optional; this should be a short, machine understandable string that gives the reason\n\t// for this event being generated. For example, if the event is reporting that a container\n\t// can't start, the Reason might be \"ImageNotFound\".\n\t// TODO: provide exact specification for format.\n\tReason string `json:\"reason,omitempty\"`\n\n\t// Optional. A human-readable description of the status of this operation.\n\t// TODO: decide on maximum length.\n\tMessage string `json:\"message,omitempty\"`\n\n\t// Optional. The component reporting this event. Should be a short machine understandable string.\n\tSource EventSource `json:\"source,omitempty\"`\n\n\t// The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)\n\tFirstTimestamp util.Time `json:\"firstTimestamp,omitempty\"`\n\n\t// The time at which the most recent occurance of this event was recorded.\n\tLastTimestamp util.Time `json:\"lastTimestamp,omitempty\"`\n\n\t// The number of times this event has occurred.\n\tCount int `json:\"count,omitempty\"`\n}\n```\nEvent is a report of an event somewhere in the cluster. TODO: Decide whether to store these separately or with the object they apply to.\n\n```go\nfunc (*Event) IsAnAPIObject()\n```\n\n```go\ntype EventList struct {\n\tTypeMeta `json:\",inline\"`\n\tListMeta `json:\"metadata,omitempty\"`\n\n\tItems []Event `json:\"items\"`\n}\n```\nEventList is a list of events.\n\n```go\nfunc (*EventList) IsAnAPIObject()\n```\n\n```go\ntype EventSource struct {\n\t// Component from which the event is generated.\n\tComponent string `json:\"component,omitempty\"`\n\t// Host name on which the event is generated.\n\tHost string `json:\"host,omitempty\"`\n}\n```\n\n```go\ntype ExecAction struct {\n\t// Command is the command line to execute inside the container, the working directory for the\n\t// command  is root ('/') in the container's filesystem.  The command is simply exec'd, it is\n\t// not run inside a shell, so traditional shell instructions ('|', etc) won't work.  To use\n\t// a shell, you need to explicitly call out to that shell.\n\tCommand []string `json:\"command,omitempty\"`\n}\n```\nExecAction describes a \"run in container\" action.\n\n```go\ntype FinalizerName string\n```\n\n```go\nconst (\n\tFinalizerKubernetes FinalizerName = \"kubernetes\"\n)\n```\nThese are internal finalizer values to Kubernetes, must be qualified name unless defined here\n\n```go\ntype GCEPersistentDiskVolumeSource struct {\n\t// Unique name of the PD resource. Used to identify the disk in GCE\n\tPDName string `json:\"pdName\"`\n\t// Required: Filesystem type to mount.\n\t// Must be a filesystem type supported by the host operating system.\n\t// Ex. \"ext4\", \"xfs\", \"ntfs\"\n\t// TODO: how do we prevent errors in the filesystem from compromising the machine\n\tFSType string `json:\"fsType,omitempty\"`\n\t// Optional: Partition on the disk to mount.\n\t// If omitted, kubelet will attempt to mount the device name.\n\t// Ex. For /dev/sda1, this field is \"1\", for /dev/sda, this field is 0 or empty.\n\tPartition int `json:\"partition,omitempty\"`\n\t// Optional: Defaults to false (read/write). ReadOnly here will force\n\t// the ReadOnly setting in VolumeMounts.\n\tReadOnly bool `json:\"readOnly,omitempty\"`\n}\n```\nGCEPersistentDiskVolumeSource represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist and be formatted before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once.\n\n```go\ntype GitRepoVolumeSource struct {\n\t// Repository URL\n\tRepository string `json:\"repository\"`\n\t// Commit hash, this is optional\n\tRevision string `json:\"revision\"`\n}\n```\nGitRepoVolumeSource represents a volume that is pulled from git when the pod is created.\n\n```go\ntype GlusterfsVolumeSource struct {\n\t// Required: EndpointsName is the endpoint name that details Glusterfs topology\n\tEndpointsName string `json:\"endpoints\"`\n\n\t// Required: Path is the Glusterfs volume path\n\tPath string `json:\"path\"`\n\n\t// Optional: Defaults to false (read/write). ReadOnly here will force\n\t// the Glusterfs to be mounted with read-only permissions\n\tReadOnly bool `json:\"readOnly,omitempty\"`\n}\n```\nGlusterfsVolumeSource represents a Glusterfs Mount that lasts the lifetime of a pod\n\n```go\ntype HTTPGetAction struct {\n\t// Optional: Path to access on the HTTP server.\n\tPath string `json:\"path,omitempty\"`\n\t// Required: Name or number of the port to access on the container.\n\tPort util.IntOrString `json:\"port,omitempty\"`\n\t// Optional: Host name to connect to, defaults to the pod IP.\n\tHost string `json:\"host,omitempty\"`\n\t// Optional: Scheme to use for connecting to the host, defaults to HTTP.\n\tScheme URIScheme `json:\"scheme,omitempty\"`\n}\n```\nHTTPGetAction describes an action based on HTTP Get requests.\n\n```go\ntype Handler struct {\n\t// One and only one of the following should be specified.\n\t// Exec specifies the action to take.\n\tExec *ExecAction `json:\"exec,omitempty\"`\n\t// HTTPGet specifies the http request to perform.\n\tHTTPGet *HTTPGetAction `json:\"httpGet,omitempty\"`\n\t// TCPSocket specifies an action involving a TCP port.\n\t// TODO: implement a realistic TCP lifecycle hook\n\tTCPSocket *TCPSocketAction `json:\"tcpSocket,omitempty\"`\n}\n```\nHandler defines a specific action that should be taken TODO: pass structured data to these actions, and document that data here.\n\n```go\ntype HostPathVolumeSource struct {\n\tPath string `json:\"path\"`\n}\n```\nHostPathVolumeSource represents a host directory mapped into a pod.\n\n```go\ntype ISCSIVolumeSource struct {\n\t// Required: iSCSI target portal\n\t// the portal is either an IP or ip_addr:port if port is other than default (typically TCP ports 860 and 3260)\n\tTargetPortal string `json:\"targetPortal,omitempty\"`\n\t// Required:  target iSCSI Qualified Name\n\tIQN string `json:\"iqn,omitempty\"`\n\t// Required: iSCSI target lun number\n\tLun int `json:\"lun,omitempty\"`\n\t// Required: Filesystem type to mount.\n\t// Must be a filesystem type supported by the host operating system.\n\t// Ex. \"ext4\", \"xfs\", \"ntfs\"\n\t// TODO: how do we prevent errors in the filesystem from compromising the machine\n\tFSType string `json:\"fsType,omitempty\"`\n\t// Optional: Defaults to false (read/write). ReadOnly here will force\n\t// the ReadOnly setting in VolumeMounts.\n\tReadOnly bool `json:\"readOnly,omitempty\"`\n}\n```\nA ISCSI Disk can only be mounted as read/write once.\n\n```go\ntype Lifecycle struct {\n\t// PostStart is called immediately after a container is created.  If the handler fails, the container\n\t// is terminated and restarted.\n\tPostStart *Handler `json:\"postStart,omitempty\"`\n\t// PreStop is called immediately before a container is terminated.  The reason for termination is\n\t// passed to the handler.  Regardless of the outcome of the handler, the container is eventually terminated.\n\tPreStop *Handler `json:\"preStop,omitempty\"`\n}\n```\nLifecycle describes actions that the management system should take in response to container lifecycle events.  For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.\n\n```go\ntype LimitRange struct {\n\tTypeMeta   `json:\",inline\"`\n\tObjectMeta `json:\"metadata,omitempty\"`\n\n\t// Spec defines the limits enforced\n\tSpec LimitRangeSpec `json:\"spec,omitempty\"`\n}\n```\nLimitRange sets resource usage limits for each kind of resource in a Namespace\n\n```go\nfunc (*LimitRange) IsAnAPIObject()\n```\n\n```go\ntype LimitRangeItem struct {\n\t// Type of resource that this limit applies to\n\tType LimitType `json:\"type,omitempty\"`\n\t// Max usage constraints on this kind by resource name\n\tMax ResourceList `json:\"max,omitempty\"`\n\t// Min usage constraints on this kind by resource name\n\tMin ResourceList `json:\"min,omitempty\"`\n\t// Default usage constraints on this kind by resource name\n\tDefault ResourceList `json:\"default,omitempty\"`\n}\n```\nLimitRangeItem defines a min/max usage limit for any resource that matches on kind\n\n```go\ntype LimitRangeList struct {\n\tTypeMeta `json:\",inline\"`\n\tListMeta `json:\"metadata,omitempty\"`\n\n\t// Items is a list of LimitRange objects\n\tItems []LimitRange `json:\"items\"`\n}\n```\nLimitRangeList is a list of LimitRange items.\n\n```go\nfunc (*LimitRangeList) IsAnAPIObject()\n```\n\n```go\ntype LimitRangeSpec struct {\n\t// Limits is the list of LimitRangeItem objects that are enforced\n\tLimits []LimitRangeItem `json:\"limits\"`\n}\n```\nLimitRangeSpec defines a min/max usage limit for resources that match on kind\n\n```go\ntype LimitType string\n```\nA type of object that is limited\n\n```go\nconst (\n\t// Limit that applies to all pods in a namespace\n\tLimitTypePod LimitType = \"Pod\"\n\t// Limit that applies to all containers in a namespace\n\tLimitTypeContainer LimitType = \"Container\"\n)\n```\n\n```go\ntype List struct {\n\tTypeMeta `json:\",inline\"`\n\tListMeta `json:\"metadata,omitempty\"`\n\n\tItems []runtime.Object `json:\"items\"`\n}\n```\nList holds a list of objects, which may not be known by the server.\n\n```go\nfunc (*List) IsAnAPIObject()\n```\n\n```go\ntype ListMeta struct {\n\t// SelfLink is a URL representing this object.\n\tSelfLink string `json:\"selfLink,omitempty\"`\n\n\t// An opaque value that represents the version of this response for use with optimistic\n\t// concurrency and change monitoring endpoints.  Clients must treat these values as opaque\n\t// and values may only be valid for a particular resource or set of resources. Only servers\n\t// will generate resource versions.\n\tResourceVersion string `json:\"resourceVersion,omitempty\"`\n}\n```\nListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.\n\n```go\nfunc ListMetaFor(obj runtime.Object) (*ListMeta, error)\n```\nListMetaFor returns a pointer to a provided object's ListMeta, or an error if the object does not have that pointer. TODO: allow runtime.Unknown to extract this object\n\n```go\ntype ListOptions struct {\n\tTypeMeta `json:\",inline\"`\n\n\t// A selector based on labels\n\tLabelSelector labels.Selector\n\t// A selector based on fields\n\tFieldSelector fields.Selector\n\t// If true, watch for changes to this list\n\tWatch bool\n\t// The resource version to watch (no effect on list yet)\n\tResourceVersion string\n}\n```\nListOptions is the query options to a standard REST list call, and has future support for watch calls.\n\n```go\nfunc (*ListOptions) IsAnAPIObject()\n```\n\n```go\ntype LoadBalancerIngress struct {\n\t// IP is set for load-balancer ingress points that are IP based\n\t// (typically GCE or OpenStack load-balancers)\n\tIP string `json:\"ip,omitempty\" description:\"IP address of ingress point\"`\n\n\t// Hostname is set for load-balancer ingress points that are DNS based\n\t// (typically AWS load-balancers)\n\tHostname string `json:\"hostname,omitempty\" description:\"hostname of ingress point\"`\n}\n```\nLoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.\n\n```go\ntype LoadBalancerStatus struct {\n\t// Ingress is a list containing ingress points for the load-balancer;\n\t// traffic intended for the service should be sent to these ingress points.\n\tIngress []LoadBalancerIngress `json:\"ingress,omitempty\" description:\"load-balancer ingress points\"`\n}\n```\nLoadBalancerStatus represents the status of a load-balancer\n\n```go\nfunc LoadBalancerStatusDeepCopy(lb *LoadBalancerStatus) *LoadBalancerStatus\n```\nTODO: make method on LoadBalancerStatus?\n\n```go\ntype LocalObjectReference struct {\n\t//TODO: Add other useful fields.  apiVersion, kind, uid?\n\tName string\n}\n```\nLocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.\n\n```go\ntype NFSVolumeSource struct {\n\t// Server is the hostname or IP address of the NFS server\n\tServer string `json:\"server\"`\n\n\t// Path is the exported NFS share\n\tPath string `json:\"path\"`\n\n\t// Optional: Defaults to false (read/write). ReadOnly here will force\n\t// the NFS export to be mounted with read-only permissions\n\tReadOnly bool `json:\"readOnly,omitempty\"`\n}\n```\nNFSVolumeSource represents an NFS Mount that lasts the lifetime of a pod\n\n```go\ntype NameGenerator interface {\n\t// GenerateName generates a valid name from the base name, adding a random suffix to the\n\t// the base. If base is valid, the returned name must also be valid. The generator is\n\t// responsible for knowing the maximum valid name length.\n\tGenerateName(base string) string\n}\n```\nNameGenerator generates names for objects. Some backends may have more information available to guide selection of new names and this interface hides those details.\n\n```go\nvar SimpleNameGenerator NameGenerator = simpleNameGenerator{}\n```\nSimpleNameGenerator is a generator that returns the name plus a random suffix of five alphanumerics when a name is requested. The string is guaranteed to not exceed the length of a standard Kubernetes name (63 characters)\n\n```go\ntype Namespace struct {\n\tTypeMeta   `json:\",inline\"`\n\tObjectMeta `json:\"metadata,omitempty\"`\n\n\t// Spec defines the behavior of the Namespace.\n\tSpec NamespaceSpec `json:\"spec,omitempty\"`\n\n\t// Status describes the current status of a Namespace\n\tStatus NamespaceStatus `json:\"status,omitempty\"`\n}\n```\nA namespace provides a scope for Names. Use of multiple namespaces is optional\n\n```go\nfunc (*Namespace) IsAnAPIObject()\n```\n\n```go\ntype NamespaceList struct {\n\tTypeMeta `json:\",inline\"`\n\tListMeta `json:\"metadata,omitempty\"`\n\n\tItems []Namespace `json:\"items\"`\n}\n```\nNamespaceList is a list of Namespaces.\n\n```go\nfunc (*NamespaceList) IsAnAPIObject()\n```\n\n```go\ntype NamespacePhase string\n```\n\n```go\nconst (\n\t// NamespaceActive means the namespace is available for use in the system\n\tNamespaceActive NamespacePhase = \"Active\"\n\t// NamespaceTerminating means the namespace is undergoing graceful termination\n\tNamespaceTerminating NamespacePhase = \"Terminating\"\n)\n```\nThese are the valid phases of a namespace.\n\n```go\ntype NamespaceSpec struct {\n\t// Finalizers is an opaque list of values that must be empty to permanently remove object from storage\n\tFinalizers []FinalizerName\n}\n```\nNamespaceSpec describes the attributes on a Namespace\n\n```go\ntype NamespaceStatus struct {\n\t// Phase is the current lifecycle phase of the namespace.\n\tPhase NamespacePhase `json:\"phase,omitempty\"`\n}\n```\nNamespaceStatus is information about the current status of a Namespace.\n\n```go\ntype Node struct {\n\tTypeMeta   `json:\",inline\"`\n\tObjectMeta `json:\"metadata,omitempty\"`\n\n\t// Spec defines the behavior of a node.\n\tSpec NodeSpec `json:\"spec,omitempty\"`\n\n\t// Status describes the current status of a Node\n\tStatus NodeStatus `json:\"status,omitempty\"`\n}\n```\nNode is a worker node in Kubernetes The name of the node according to etcd is in ObjectMeta.Name.\n\n```go\nfunc (*Node) IsAnAPIObject()\n```\n\n```go\ntype NodeAddress struct {\n\tType    NodeAddressType `json:\"type\"`\n\tAddress string          `json:\"address\"`\n}\n```\n\n```go\ntype NodeAddressType string\n```\n\n```go\nconst (\n\tNodeLegacyHostIP NodeAddressType = \"LegacyHostIP\"\n\tNodeHostName     NodeAddressType = \"Hostname\"\n\tNodeExternalIP   NodeAddressType = \"ExternalIP\"\n\tNodeInternalIP   NodeAddressType = \"InternalIP\"\n)\n```\nThese are valid address types of node. NodeLegacyHostIP is used to transit from out-dated HostIP field to NodeAddress.\n\n```go\ntype NodeCondition struct {\n\tType               NodeConditionType `json:\"type\"`\n\tStatus             ConditionStatus   `json:\"status\"`\n\tLastHeartbeatTime  util.Time         `json:\"lastHeartbeatTime,omitempty\"`\n\tLastTransitionTime util.Time         `json:\"lastTransitionTime,omitempty\"`\n\tReason             string            `json:\"reason,omitempty\"`\n\tMessage            string            `json:\"message,omitempty\"`\n}\n```\n\n```go\ntype NodeConditionType string\n```\n\n```go\nconst (\n\t// NodeReady means kubelet is healthy and ready to accept pods.\n\tNodeReady NodeConditionType = \"Ready\"\n)\n```\nThese are valid conditions of node. Currently, we don't have enough information to decide node condition. In the future, we will add more. The proposed set of conditions are: NodeReady, NodeReachable\n\n```go\ntype NodeList struct {\n\tTypeMeta `json:\",inline\"`\n\tListMeta `json:\"metadata,omitempty\"`\n\n\tItems []Node `json:\"items\"`\n}\n```\nNodeList is a list of nodes.\n\n```go\nfunc (*NodeList) IsAnAPIObject()\n```\n\n```go\ntype NodePhase string\n```\n\n```go\nconst (\n\t// NodePending means the node has been created/added by the system, but not configured.\n\tNodePending NodePhase = \"Pending\"\n\t// NodeRunning means the node has been configured and has Kubernetes components running.\n\tNodeRunning NodePhase = \"Running\"\n\t// NodeTerminated means the node has been removed from the cluster.\n\tNodeTerminated NodePhase = \"Terminated\"\n)\n```\nThese are the valid phases of node.\n\n```go\ntype NodeResources struct {\n\t// Capacity represents the available resources of a node\n\tCapacity ResourceList `json:\"capacity,omitempty\"`\n}\n```\nNodeResources is an object for conveying resource information about a node. see [http://docs.k8s.io/resources.md](http://docs.k8s.io/resources.md) for more details.\n\n```go\ntype NodeSpec struct {\n\t// PodCIDR represents the pod IP range assigned to the node\n\t// Note: assigning IP ranges to nodes might need to be revisited when we support migratable IPs.\n\tPodCIDR string `json:\"podCIDR,omitempty\"`\n\n\t// External ID of the node assigned by some machine database (e.g. a cloud provider)\n\tExternalID string `json:\"externalID,omitempty\"`\n\n\t// ID of the node assigned by the cloud provider\n\t// Note: format is \"\u003cProviderName\u003e://\u003cProviderSpecificNodeID\u003e\"\n\tProviderID string `json:\"providerID,omitempty\"`\n\n\t// Unschedulable controls node schedulability of new pods. By default node is schedulable.\n\tUnschedulable bool `json:\"unschedulable,omitempty\"`\n}\n```\nNodeSpec describes the attributes that a node is created with.\n\n```go\ntype NodeStatus struct {\n\t// Capacity represents the available resources of a node.\n\tCapacity ResourceList `json:\"capacity,omitempty\"`\n\t// NodePhase is the current lifecycle phase of the node.\n\tPhase NodePhase `json:\"phase,omitempty\"`\n\t// Conditions is an array of current node conditions.\n\tConditions []NodeCondition `json:\"conditions,omitempty\"`\n\t// Queried from cloud provider, if available.\n\tAddresses []NodeAddress `json:\"addresses,omitempty\"`\n\t// NodeSystemInfo is a set of ids/uuids to uniquely identify the node\n\tNodeInfo NodeSystemInfo `json:\"nodeInfo,omitempty\"`\n}\n```\nNodeStatus is information about the current status of a node.\n\n```go\ntype NodeSystemInfo struct {\n\t// MachineID is the machine-id reported by the node\n\tMachineID string `json:\"machineID\"`\n\t// SystemUUID is the system-uuid reported by the node\n\tSystemUUID string `json:\"systemUUID\"`\n\t// BootID is the boot-id reported by the node\n\tBootID string `json:\"bootID\"`\n\t// Kernel version reported by the node\n\tKernelVersion string `json:\"kernelVersion\"`\n\t// OS image used reported by the node\n\tOsImage string `json:\"osImage\"`\n\t// Container runtime version reported by the node\n\tContainerRuntimeVersion string `json:\"containerRuntimeVersion\"`\n\t// Kubelet version reported by the node\n\tKubeletVersion string `json:\"kubeletVersion\"`\n\t// Kube-proxy version reported by the node\n\tKubeProxyVersion string `json:\"kubeProxyVersion\"`\n}\n```\nNodeSystemInfo is a set of ids/uuids to uniquely identify the node.\n\n```go\ntype ObjectFieldSelector struct {\n\t// Required: Version of the schema the FieldPath is written in terms of.\n\t// If no value is specified, it will be defaulted to the APIVersion of the\n\t// enclosing object.\n\tAPIVersion string `json:\"apiVersion\"`\n\t// Required: Path of the field to select in the specified API version\n\tFieldPath string `json:\"fieldPath\"`\n}\n```\nObjectFieldSelector selects an APIVersioned field of an object.\n\n```go\ntype ObjectMeta struct {\n\t// Name is unique within a namespace.  Name is required when creating resources, although\n\t// some resources may allow a client to request the generation of an appropriate name\n\t// automatically. Name is primarily intended for creation idempotence and configuration\n\t// definition.\n\tName string `json:\"name,omitempty\"`\n\n\t// GenerateName indicates that the name should be made unique by the server prior to persisting\n\t// it. A non-empty value for the field indicates the name will be made unique (and the name\n\t// returned to the client will be different than the name passed). The value of this field will\n\t// be combined with a unique suffix on the server if the Name field has not been provided.\n\t// The provided value must be valid within the rules for Name, and may be truncated by the length\n\t// of the suffix required to make the value unique on the server.\n\t//\n\t// If this field is specified, and Name is not present, the server will NOT return a 409 if the\n\t// generated name exists - instead, it will either return 201 Created or 500 with Reason\n\t// ServerTimeout indicating a unique name could not be found in the time allotted, and the client\n\t// should retry (optionally after the time indicated in the Retry-After header).\n\tGenerateName string `json:\"generateName,omitempty\"`\n\n\t// Namespace defines the space within which name must be unique. An empty namespace is\n\t// equivalent to the \"default\" namespace, but \"default\" is the canonical representation.\n\t// Not all objects are required to be scoped to a namespace - the value of this field for\n\t// those objects will be empty.\n\tNamespace string `json:\"namespace,omitempty\"`\n\n\t// SelfLink is a URL representing this object.\n\tSelfLink string `json:\"selfLink,omitempty\"`\n\n\t// UID is the unique in time and space value for this object. It is typically generated by\n\t// the server on successful creation of a resource and is not allowed to change on PUT\n\t// operations.\n\tUID types.UID `json:\"uid,omitempty\"`\n\n\t// An opaque value that represents the version of this resource. May be used for optimistic\n\t// concurrency, change detection, and the watch operation on a resource or set of resources.\n\t// Clients must treat these values as opaque and values may only be valid for a particular\n\t// resource or set of resources. Only servers will generate resource versions.\n\tResourceVersion string `json:\"resourceVersion,omitempty\"`\n\n\t// A sequence number representing a specific generation of the desired state.\n\t// Currently only implemented by replication controllers.\n\tGeneration int64 `json:\"generation,omitempty\"`\n\n\t// CreationTimestamp is a timestamp representing the server time when this object was\n\t// created. It is not guaranteed to be set in happens-before order across separate operations.\n\t// Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\tCreationTimestamp util.Time `json:\"creationTimestamp,omitempty\"`\n\n\t// DeletionTimestamp is the time after which this resource will be deleted. This\n\t// field is set by the server when a graceful deletion is requested by the user, and is not\n\t// directly settable by a client. The resource will be deleted (no longer visible from\n\t// resource lists, and not reachable by name) after the time in this field. Once set, this\n\t// value may not be unset or be set further into the future, although it may be shortened\n\t// or the resource may be deleted prior to this time. For example, a user may request that\n\t// a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination\n\t// signal to the containers in the pod. Once the resource is deleted in the API, the Kubelet\n\t// will send a hard termination signal to the container.\n\tDeletionTimestamp *util.Time `json:\"deletionTimestamp,omitempty\"`\n\n\t// Labels are key value pairs that may be used to scope and select individual resources.\n\t// Label keys are of the form:\n\t//     label-key ::= prefixed-name | name\n\t//     prefixed-name ::= prefix '/' name\n\t//     prefix ::= DNS_SUBDOMAIN\n\t//     name ::= DNS_LABEL\n\t// The prefix is optional.  If the prefix is not specified, the key is assumed to be private\n\t// to the user.  Other system components that wish to use labels must specify a prefix.  The\n\t// \"kubernetes.io/\" prefix is reserved for use by kubernetes components.\n\t// TODO: replace map[string]string with labels.LabelSet type\n\tLabels map[string]string `json:\"labels,omitempty\"`\n\n\t// Annotations are unstructured key value data stored with a resource that may be set by\n\t// external tooling. They are not queryable and should be preserved when modifying\n\t// objects.  Annotation keys have the same formatting restrictions as Label keys. See the\n\t// comments on Labels for details.\n\tAnnotations map[string]string `json:\"annotations,omitempty\"`\n}\n```\nObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.\n\n```go\nfunc ObjectMetaFor(obj runtime.Object) (*ObjectMeta, error)\n```\nObjectMetaFor returns a pointer to a provided object's ObjectMeta. TODO: allow runtime.Unknown to extract this object\n\n```go\ntype ObjectReference struct {\n\tKind            string    `json:\"kind,omitempty\"`\n\tNamespace       string    `json:\"namespace,omitempty\"`\n\tName            string    `json:\"name,omitempty\"`\n\tUID             types.UID `json:\"uid,omitempty\"`\n\tAPIVersion      string    `json:\"apiVersion,omitempty\"`\n\tResourceVersion string    `json:\"resourceVersion,omitempty\"`\n\n\t// Optional. If referring to a piece of an object instead of an entire object, this string\n\t// should contain information to identify the sub-object. For example, if the object\n\t// reference is to a container within a pod, this would take on a value like:\n\t// \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered\n\t// the event) or if no container name is specified \"spec.containers[2]\" (container with\n\t// index 2 in this pod). This syntax is chosen only to have some well-defined way of\n\t// referencing a part of an object.\n\t// TODO: this design is not final and this field is subject to change in the future.\n\tFieldPath string `json:\"fieldPath,omitempty\"`\n}\n```\nObjectReference contains enough information to let you inspect or modify the referred object.\n\n```go\nfunc GetPartialReference(obj runtime.Object, fieldPath string) (*ObjectReference, error)\n```\nGetPartialReference is exactly like GetReference, but allows you to set the FieldPath.\n\n```go\nfunc GetReference(obj runtime.Object) (*ObjectReference, error)\n```\nGetReference returns an ObjectReference which refers to the given object, or an error if the object doesn't follow the conventions that would allow this. TODO: should take a meta.Interface see [https://github.com/GoogleCloudPlatform/kubernetes/issues/7127](https://github.com/GoogleCloudPlatform/kubernetes/issues/7127)\n\n```go\nfunc (*ObjectReference) IsAnAPIObject()\n```\nIsAnAPIObject allows clients to preemptively get a reference to an API object and pass it to places that intend only to get a reference to that object. This simplifies the event recording interface.\n\n```go\ntype Patch struct{}\n```\nPatch is provided to give a concrete name and type to the Kubernetes PATCH request body.\n\n```go\ntype PatchType string\n```\nSimilarly to above, these are constants to support HTTP PATCH utilized by both the client and server that didn't make sense for a whole package to be dedicated to.\n\n```go\nconst (\n\tJSONPatchType           PatchType = \"application/json-patch+json\"\n\tMergePatchType          PatchType = \"application/merge-patch+json\"\n\tStrategicMergePatchType PatchType = \"application/strategic-merge-patch+json\"\n)\n```\n\n```go\ntype PersistentVolume struct {\n\tTypeMeta   `json:\",inline\"`\n\tObjectMeta `json:\"metadata,omitempty\"`\n\n\t//Spec defines a persistent volume owned by the cluster\n\tSpec PersistentVolumeSpec `json:\"spec,omitempty\"`\n\n\t// Status represents the current information about persistent volume.\n\tStatus PersistentVolumeStatus `json:\"status,omitempty\"`\n}\n```\n\n```go\nfunc (*PersistentVolume) IsAnAPIObject()\n```\n\n```go\ntype PersistentVolumeAccessMode string\n```\n\n```go\nconst (\n\t// can be mounted read/write mode to exactly 1 host\n\tReadWriteOnce PersistentVolumeAccessMode = \"ReadWriteOnce\"\n\t// can be mounted in read-only mode to many hosts\n\tReadOnlyMany PersistentVolumeAccessMode = \"ReadOnlyMany\"\n\t// can be mounted in read/write mode to many hosts\n\tReadWriteMany PersistentVolumeAccessMode = \"ReadWriteMany\"\n)\n```\n\n```go\ntype PersistentVolumeClaim struct {\n\tTypeMeta   `json:\",inline\"`\n\tObjectMeta `json:\"metadata,omitempty\"`\n\n\t// Spec defines the volume requested by a pod author\n\tSpec PersistentVolumeClaimSpec `json:\"spec,omitempty\"`\n\n\t// Status represents the current information about a claim\n\tStatus PersistentVolumeClaimStatus `json:\"status,omitempty\"`\n}\n```\nPersistentVolumeClaim is a user's request for and claim to a persistent volume\n\n```go\nfunc (*PersistentVolumeClaim) IsAnAPIObject()\n```\n\n```go\ntype PersistentVolumeClaimList struct {\n\tTypeMeta `json:\",inline\"`\n\tListMeta `json:\"metadata,omitempty\"`\n\tItems    []PersistentVolumeClaim `json:\"items,omitempty\"`\n}\n```\n\n```go\nfunc (*PersistentVolumeClaimList) IsAnAPIObject()\n```\n\n```go\ntype PersistentVolumeClaimPhase string\n```\n\n```go\nconst (\n\t// used for PersistentVolumeClaims that are not yet bound\n\tClaimPending PersistentVolumeClaimPhase = \"Pending\"\n\t// used for PersistentVolumeClaims that are bound\n\tClaimBound PersistentVolumeClaimPhase = \"Bound\"\n)\n```\n\n```go\ntype PersistentVolumeClaimSpec struct {\n\t// Contains the types of access modes required\n\tAccessModes []PersistentVolumeAccessMode `json:\"accessModes,omitempty\"`\n\t// Resources represents the minimum resources required\n\tResources ResourceRequirements `json:\"resources,omitempty\"`\n\t// VolumeName is the binding reference to the PersistentVolume backing this claim\n\tVolumeName string `json:\"volumeName,omitempty\"`\n}\n```\nPersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes\n\n```go\ntype PersistentVolumeClaimStatus struct {\n\t// Phase represents the current phase of PersistentVolumeClaim\n\tPhase PersistentVolumeClaimPhase `json:\"phase,omitempty\"`\n\t// AccessModes contains all ways the volume backing the PVC can be mounted\n\tAccessModes []PersistentVolumeAccessMode `json:\"accessModes,omitempty\"`\n\t// Represents the actual resources of the underlying volume\n\tCapacity ResourceList `json:\"capacity,omitempty\"`\n}\n```\n\n```go\ntype PersistentVolumeClaimVolumeSource struct {\n\t// ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume\n\tClaimName string `json:\"claimName\" description:\"the name of the claim in the same namespace to be mounted as a volume\"`\n\t// Optional: Defaults to false (read/write).  ReadOnly here\n\t// will force the ReadOnly setting in VolumeMounts\n\tReadOnly bool `json:\"readOnly,omitempty\"`\n}\n```\n\n```go\ntype PersistentVolumeList struct {\n\tTypeMeta `json:\",inline\"`\n\tListMeta `json:\"metadata,omitempty\"`\n\tItems    []PersistentVolume `json:\"items,omitempty\"`\n}\n```\n\n```go\nfunc (*PersistentVolumeList) IsAnAPIObject()\n```\n\n```go\ntype PersistentVolumePhase string\n```\n\n```go\nconst (\n\t// used for PersistentVolumes that are not available\n\tVolumePending PersistentVolumePhase = \"Pending\"\n\t// used for PersistentVolumes that are not yet bound\n\t// Available volumes are held by the binder and matched to PersistentVolumeClaims\n\tVolumeAvailable PersistentVolumePhase = \"Available\"\n\t// used for PersistentVolumes that are bound\n\tVolumeBound PersistentVolumePhase = \"Bound\"\n\t// used for PersistentVolumes where the bound PersistentVolumeClaim was deleted\n\t// released volumes must be recycled before becoming available again\n\t// this phase is used by the persistent volume claim binder to signal to another process to reclaim the resource\n\tVolumeReleased PersistentVolumePhase = \"Released\"\n\t// used for PersistentVolumes that failed to be correctly recycled or deleted after being released from a claim\n\tVolumeFailed PersistentVolumePhase = \"Failed\"\n)\n```\n\n```go\ntype PersistentVolumeReclaimPolicy string\n```\nPersistentVolumeReclaimPolicy describes a policy for end-of-life maintenance of persistent volumes\n\n```go\nconst (\n\t// PersistentVolumeReclaimRecycle means the volume will be recycled back into the pool of unbound persistent volumes on release from its claim.\n\t// The volume plugin must support Recycling.\n\tPersistentVolumeReclaimRecycle PersistentVolumeReclaimPolicy = \"Recycle\"\n\t// PersistentVolumeReclaimDelete means the volume will be deleted from Kubernetes on release from its claim.\n\t// The volume plugin must support Deletion.\n\t// TODO: implement w/ DeletableVolumePlugin\n\t// PersistentVolumeReclaimDelete PersistentVolumeReclaimPolicy = \"Delete\"\n\t// PersistentVolumeReclaimRetain means the volume will left in its current phase (Released) for manual reclamation by the administrator.\n\t// The default policy is Retain.\n\tPersistentVolumeReclaimRetain PersistentVolumeReclaimPolicy = \"Retain\"\n)\n```\n\n```go\ntype PersistentVolumeSource struct {\n\t// GCEPersistentDisk represents a GCE Disk resource that is attached to a\n\t// kubelet's host machine and then exposed to the pod.\n\tGCEPersistentDisk *GCEPersistentDiskVolumeSource `json:\"gcePersistentDisk,omitempty\"`\n\t// AWSElasticBlockStore represents an AWS EBS disk that is attached to a\n\t// kubelet's host machine and then exposed to the pod.\n\tAWSElasticBlockStore *AWSElasticBlockStoreVolumeSource `json:\"awsElasticBlockStore,omitempty\"`\n\t// HostPath represents a directory on the host.\n\t// This is useful for development and testing only.\n\t// on-host storage is not supported in any way\n\tHostPath *HostPathVolumeSource `json:\"hostPath,omitempty\"`\n\t// Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod\n\tGlusterfs *GlusterfsVolumeSource `json:\"glusterfs,omitempty\"`\n\t// NFS represents an NFS mount on the host that shares a pod's lifetime\n\tNFS *NFSVolumeSource `json:\"nfs,omitempty\"`\n\t// RBD represents a Rados Block Device mount on the host that shares a pod's lifetime\n\tRBD *RBDVolumeSource `json:\"rbd,omitempty\"`\n\t// ISCSIVolumeSource represents an ISCSI resource that is attached to a\n\t// kubelet's host machine and then exposed to the pod.\n\tISCSI *ISCSIVolumeSource `json:\"iscsi,omitempty\"`\n}\n```\nSimilar to VolumeSource but meant for the administrator who creates PVs. Exactly one of its members must be set.\n\n```go\ntype PersistentVolumeSpec struct {\n\t// Resources represents the actual resources of the volume\n\tCapacity ResourceList `json:\"capacity\"`\n\t// Source represents the location and type of a volume to mount.\n\tPersistentVolumeSource `json:\",inline\"`\n\t// AccessModes contains all ways the volume can be mounted\n\tAccessModes []PersistentVolumeAccessMode `json:\"accessModes,omitempty\"`\n\t// ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.\n\t// ClaimRef is expected to be non-nil when bound.\n\t// claim.VolumeName is the authoritative bind between PV and PVC.\n\tClaimRef *ObjectReference `json:\"claimRef,omitempty\"`\n\t// Optional: what happens to a persistent volume when released from its claim.\n\tPersistentVolumeReclaimPolicy PersistentVolumeReclaimPolicy `json:\"persistentVolumeReclaimPolicy,omitempty\" description:\"what happens to a volume when released from its claim; Valid options are Retain (default) and Recycle.  Recyling must be supported by the volume plugin underlying this persistent volume.\"`\n}\n```\n\n```go\ntype PersistentVolumeStatus struct {\n\t// Phase indicates if a volume is available, bound to a claim, or released by a claim\n\tPhase PersistentVolumePhase `json:\"phase,omitempty\"`\n\t// A human-readable message indicating details about why the volume is in this state.\n\tMessage string `json:\"message,omitempty\"`\n\t// Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI\n\tReason string `json:\"reason,omitempty\"`\n}\n```\n\n```go\ntype Pod struct {\n\tTypeMeta   `json:\",inline\"`\n\tObjectMeta `json:\"metadata,omitempty\"`\n\n\t// Spec defines the behavior of a pod.\n\tSpec PodSpec `json:\"spec,omitempty\"`\n\n\t// Status represents the current information about a pod. This data may not be up\n\t// to date.\n\tStatus PodStatus `json:\"status,omitempty\"`\n}\n```\nPod is a collection of containers, used as either input (create, update) or as output (list, get).\n\n```go\nfunc (*Pod) IsAnAPIObject()\n```\n\n```go\ntype PodCondition struct {\n\tType   PodConditionType `json:\"type\"`\n\tStatus ConditionStatus  `json:\"status\"`\n}\n```\nTODO: add LastTransitionTime, Reason, Message to match NodeCondition api.\n\n```go\ntype PodConditionType string\n```\n\n```go\nconst (\n\t// PodReady means the pod is able to service requests and should be added to the\n\t// load balancing pools of all matching services.\n\tPodReady PodConditionType = \"Ready\"\n)\n```\nThese are valid conditions of pod.\n\n```go\ntype PodExecOptions struct {\n\tTypeMeta\n\n\t// Stdin if true indicates that stdin is to be redirected for the exec call\n\tStdin bool\n\n\t// Stdout if true indicates that stdout is to be redirected for the exec call\n\tStdout bool\n\n\t// Stderr if true indicates that stderr is to be redirected for the exec call\n\tStderr bool\n\n\t// TTY if true indicates that a tty will be allocated for the exec call\n\tTTY bool\n\n\t// Container in which to execute the command.\n\tContainer string\n\n\t// Command is the remote command to execute; argv array; not executed within a shell.\n\tCommand []string\n}\n```\nPodExecOptions is the query options to a Pod's remote exec call\n\n```go\nfunc (*PodExecOptions) IsAnAPIObject()\n```\n\n```go\ntype PodList struct {\n\tTypeMeta `json:\",inline\"`\n\tListMeta `json:\"metadata,omitempty\"`\n\n\tItems []Pod `json:\"items\"`\n}\n```\nPodList is a list of Pods.\n\n```go\nfunc (*PodList) IsAnAPIObject()\n```\n\n```go\ntype PodLogOptions struct {\n\tTypeMeta\n\n\t// Container for which to return logs\n\tContainer string\n\n\t// If true, follow the logs for the pod\n\tFollow bool\n\n\t// If true, return previous terminated container logs\n\tPrevious bool\n}\n```\nPodLogOptions is the query options for a Pod's logs REST call\n\n```go\nfunc (*PodLogOptions) IsAnAPIObject()\n```\n\n```go\ntype PodPhase string\n```\nPodPhase is a label for the condition of a pod at the current time.\n\n```go\nconst (\n\t// PodPending means the pod has been accepted by the system, but one or more of the containers\n\t// has not been started. This includes time before being bound to a node, as well as time spent\n\t// pulling images onto the host.\n\tPodPending PodPhase = \"Pending\"\n\t// PodRunning means the pod has been bound to a node and all of the containers have been started.\n\t// At least one container is still running or is in the process of being restarted.\n\tPodRunning PodPhase = \"Running\"\n\t// PodSucceeded means that all containers in the pod have voluntarily terminated\n\t// with a container exit code of 0, and the system is not going to restart any of these containers.\n\tPodSucceeded PodPhase = \"Succeeded\"\n\t// PodFailed means that all containers in the pod have terminated, and at least one container has\n\t// terminated in a failure (exited with a non-zero exit code or was stopped by the system).\n\tPodFailed PodPhase = \"Failed\"\n\t// PodUnknown means that for some reason the state of the pod could not be obtained, typically due\n\t// to an error in communicating with the host of the pod.\n\tPodUnknown PodPhase = \"Unknown\"\n)\n```\nThese are the valid statuses of pods.\n\n```go\ntype PodProxyOptions struct {\n\tTypeMeta\n\n\t// Path is the URL path to use for the current proxy request\n\tPath string\n}\n```\nPodProxyOptions is the query options to a Pod's proxy call\n\n```go\nfunc (*PodProxyOptions) IsAnAPIObject()\n```\n\n```go\ntype PodSpec struct {\n\tVolumes []Volume `json:\"volumes\"`\n\t// Required: there must be at least one container in a pod.\n\tContainers    []Container   `json:\"containers\"`\n\tRestartPolicy RestartPolicy `json:\"restartPolicy,omitempty\"`\n\t// Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.\n\t// Value must be non-negative integer. The value zero indicates delete immediately.\n\t// If this value is nil, the default grace period will be used instead.\n\t// The grace period is the duration in seconds after the processes running in the pod are sent\n\t// a termination signal and the time when the processes are forcibly halted with a kill signal.\n\t// Set this value longer than the expected cleanup time for your process.\n\tTerminationGracePeriodSeconds *int64 `json:\"terminationGracePeriodSeconds,omitempty\"`\n\t// Optional duration in seconds relative to the StartTime that the pod may be active on a node\n\t// before the system actively tries to terminate the pod; value must be positive integer\n\tActiveDeadlineSeconds *int64 `json:\"activeDeadlineSeconds,omitempty\"`\n\t// Required: Set DNS policy.\n\tDNSPolicy DNSPolicy `json:\"dnsPolicy,omitempty\"`\n\t// NodeSelector is a selector which must be true for the pod to fit on a node\n\tNodeSelector map[string]string `json:\"nodeSelector,omitempty\"`\n\n\t// ServiceAccountName is the name of the ServiceAccount to use to run this pod\n\t// The pod will be allowed to use secrets referenced by the ServiceAccount\n\tServiceAccountName string `json:\"serviceAccountName\"`\n\n\t// NodeName is a request to schedule this pod onto a specific node.  If it is non-empty,\n\t// the scheduler simply schedules this pod onto that node, assuming that it fits resource\n\t// requirements.\n\tNodeName string `json:\"nodeName,omitempty\"`\n\t// Uses the host's network namespace. If this option is set, the ports that will be\n\t// used must be specified.\n\t// Optional: Default to false.\n\tHostNetwork bool `json:\"hostNetwork,omitempty\"`\n\t// ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.\n\t// If specified, these secrets will be passed to individual puller implementations for them to use.  For example,\n\t// in the case of docker, only DockerConfig type secrets are honored.\n\tImagePullSecrets []LocalObjectReference `json:\"imagePullSecrets,omitempty\" description:\"list of references to secrets in the same namespace available for pulling the container images\"`\n}\n```\nPodSpec is a description of a pod\n\n```go\ntype PodStatus struct {\n\tPhase      PodPhase       `json:\"phase,omitempty\"`\n\tConditions []PodCondition `json:\"conditions,omitempty\"`\n\t// A human readable message indicating details about why the pod is in this state.\n\tMessage string `json:\"message,omitempty\"`\n\t// A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk'\n\tReason string `json:\"reason,omitempty\" description:\"(brief-CamelCase) reason indicating details about why the pod is in this condition\"`\n\n\tHostIP string `json:\"hostIP,omitempty\"`\n\tPodIP  string `json:\"podIP,omitempty\"`\n\n\t// Date and time at which the object was acknowledged by the Kubelet.\n\t// This is before the Kubelet pulled the container image(s) for the pod.\n\tStartTime *util.Time `json:\"startTime,omitempty\"`\n\n\t// The list has one entry per container in the manifest. Each entry is\n\t// currently the output of `docker inspect`. This output format is *not*\n\t// final and should not be relied upon.\n\t// TODO: Make real decisions about what our info should look like. Re-enable fuzz test\n\t// when we have done this.\n\tContainerStatuses []ContainerStatus `json:\"containerStatuses,omitempty\"`\n}\n```\nPodStatus represents information about the status of a pod. Status may trail the actual state of a system.\n\n```go\ntype PodStatusResult struct {\n\tTypeMeta   `json:\",inline\"`\n\tObjectMeta `json:\"metadata,omitempty\"`\n\t// Status represents the current information about a pod. This data may not be up\n\t// to date.\n\tStatus PodStatus `json:\"status,omitempty\"`\n}\n```\nPodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded\n\n```go\nfunc (*PodStatusResult) IsAnAPIObject()\n```\n\n```go\ntype PodTemplate struct {\n\tTypeMeta   `json:\",inline\"`\n\tObjectMeta `json:\"metadata,omitempty\"`\n\n\t// Template defines the pods that will be created from this pod template\n\tTemplate PodTemplateSpec `json:\"template,omitempty\"`\n}\n```\nPodTemplate describes a template for creating copies of a predefined pod.\n\n```go\nfunc (*PodTemplate) IsAnAPIObject()\n```\n\n```go\ntype PodTemplateList struct {\n\tTypeMeta `json:\",inline\"`\n\tListMeta `json:\"metadata,omitempty\"`\n\n\tItems []PodTemplate `json:\"items\"`\n}\n```\nPodTemplateList is a list of PodTemplates.\n\n```go\nfunc (*PodTemplateList) IsAnAPIObject()\n```\n\n```go\ntype PodTemplateSpec struct {\n\t// Metadata of the pods created from this template.\n\tObjectMeta `json:\"metadata,omitempty\"`\n\n\t// Spec defines the behavior of a pod.\n\tSpec PodSpec `json:\"spec,omitempty\"`\n}\n```\nPodTemplateSpec describes the data a pod should have when created from a template\n\n```go\ntype Probe struct {\n\t// The action taken to determine the health of a container\n\tHandler `json:\",inline\"`\n\t// Length of time before health checking is activated.  In seconds.\n\tInitialDelaySeconds int64 `json:\"initialDelaySeconds,omitempty\"`\n\t// Length of time before health checking times out.  In seconds.\n\tTimeoutSeconds int64 `json:\"timeoutSeconds,omitempty\"`\n}\n```\nProbe describes a liveness probe to be examined to the container.\n\n```go\ntype Protocol string\n```\nProtocol defines network protocols supported for things like conatiner ports.\n\n```go\nconst (\n\t// ProtocolTCP is the TCP protocol.\n\tProtocolTCP Protocol = \"TCP\"\n\t// ProtocolUDP is the UDP protocol.\n\tProtocolUDP Protocol = \"UDP\"\n)\n```\n\n```go\ntype PullPolicy string\n```\nPullPolicy describes a policy for if/when to pull a container image\n\n```go\nconst (\n\t// PullAlways means that kubelet always attempts to pull the latest image.  Container will fail If the pull fails.\n\tPullAlways PullPolicy = \"Always\"\n\t// PullNever means that kubelet never pulls an image, but only uses a local image.  Container will fail if the image isn't present\n\tPullNever PullPolicy = \"Never\"\n\t// PullIfNotPresent means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.\n\tPullIfNotPresent PullPolicy = \"IfNotPresent\"\n)\n```\n\n```go\ntype RBDVolumeSource struct {\n\t// Required: CephMonitors is a collection of Ceph monitors\n\tCephMonitors []string `json:\"monitors\"`\n\t// Required: RBDImage is the rados image name\n\tRBDImage string `json:\"image\"`\n\t// Required: Filesystem type to mount.\n\t// Must be a filesystem type supported by the host operating system.\n\t// Ex. \"ext4\", \"xfs\", \"ntfs\"\n\t// TODO: how do we prevent errors in the filesystem from compromising the machine\n\tFSType string `json:\"fsType,omitempty\"`\n\t// Optional: RadosPool is the rados pool name,default is rbd\n\tRBDPool string `json:\"pool\"`\n\t// Optional: RBDUser is the rados user name, default is admin\n\tRadosUser string `json:\"user\"`\n\t// Optional: Keyring is the path to key ring for RBDUser, default is /etc/ceph/keyring\n\tKeyring string `json:\"keyring\"`\n\t// Optional: SecretRef is name of the authentication secret for RBDUser, default is empty.\n\tSecretRef *LocalObjectReference `json:\"secretRef\"`\n\t// Optional: Defaults to false (read/write). ReadOnly here will force\n\t// the ReadOnly setting in VolumeMounts.\n\tReadOnly bool `json:\"readOnly,omitempty\"`\n}\n```\nRBDVolumeSource represents a Rados Block Device Mount that lasts the lifetime of a pod\n\n```go\ntype RangeAllocation struct {\n\tTypeMeta   `json:\",inline\"`\n\tObjectMeta `json:\"metadata,omitempty\"`\n\t// A string representing a unique label for a range of resources, such as a CIDR \"10.0.0.0/8\" or\n\t// port range \"10000-30000\". Range is not strongly schema'd here. The Range is expected to define\n\t// a start and end unless there is an implicit end.\n\tRange string `json:\"range\"`\n\t// A byte array representing the serialized state of a range allocation. Additional clarifiers on\n\t// the type or format of data should be represented with annotations. For IP allocations, this is\n\t// represented as a bit array starting at the base IP of the CIDR in Range, with each bit representing\n\t// a single allocated address (the fifth bit on CIDR 10.0.0.0/8 is 10.0.0.4).\n\tData []byte `json:\"data\"`\n}\n```\nRangeAllocation is an opaque API object (not exposed to end users) that can be persisted to record the global allocation state of the cluster. The schema of Range and Data generic, in that Range should be a string representation of the inputs to a range (for instance, for IP allocation it might be a CIDR) and Data is an opaque blob understood by an allocator which is typically a binary range.  Consumers should use annotations to record additional information (schema version, data encoding hints). A range allocation should \\*ALWAYS\\* be recreatable at any time by observation of the cluster, thus the object is less strongly typed than most.\n\n```go\nfunc (*RangeAllocation) IsAnAPIObject()\n```\n\n```go\ntype ReplicationController struct {\n\tTypeMeta   `json:\",inline\"`\n\tObjectMeta `json:\"metadata,omitempty\"`\n\n\t// Spec defines the desired behavior of this replication controller.\n\tSpec ReplicationControllerSpec `json:\"spec,omitempty\"`\n\n\t// Status is the current status of this replication controller. This data may be\n\t// out of date by some window of time.\n\tStatus ReplicationControllerStatus `json:\"status,omitempty\"`\n}\n```\nReplicationController represents the configuration of a replication controller.\n\n```go\nfunc (*ReplicationController) IsAnAPIObject()\n```\n\n```go\ntype ReplicationControllerList struct {\n\tTypeMeta `json:\",inline\"`\n\tListMeta `json:\"metadata,omitempty\"`\n\n\tItems []ReplicationController `json:\"items\"`\n}\n```\nReplicationControllerList is a collection of replication controllers.\n\n```go\nfunc (*ReplicationControllerList) IsAnAPIObject()\n```\n\n```go\ntype ReplicationControllerSpec struct {\n\t// Replicas is the number of desired replicas.\n\tReplicas int `json:\"replicas\"`\n\n\t// Selector is a label query over pods that should match the Replicas count.\n\tSelector map[string]string `json:\"selector\"`\n\n\t// Template is the object that describes the pod that will be created if\n\t// insufficient replicas are detected. Internally, this takes precedence over a\n\t// TemplateRef.\n\t// Must be set before converting to a v1beta1 or v1beta2 API object.\n\tTemplate *PodTemplateSpec `json:\"template,omitempty\"`\n}\n```\nReplicationControllerSpec is the specification of a replication controller. As the internal representation of a replication controller, it may have either a TemplateRef or a Template set.\n\n```go\ntype ReplicationControllerStatus struct {\n\t// Replicas is the number of actual replicas.\n\tReplicas int `json:\"replicas\"`\n\n\t// ObservedGeneration is the most recent generation observed by the controller.\n\tObservedGeneration int64 `json:\"observedGeneration,omitempty\"`\n}\n```\nReplicationControllerStatus represents the current status of a replication controller.\n\n```go\ntype RequestContextMapper interface {\n\t// Get returns the context associated with the given request (if any), and true if the request has an associated context, and false if it does not.\n\tGet(req *http.Request) (Context, bool)\n\t// Update maps the request to the given context. If no context was previously associated with the request, an error is returned.\n\t// Update should only be called with a descendant context of the previously associated context.\n\t// Updating to an unrelated context may return an error in the future.\n\t// The context associated with a request should only be updated by a limited set of callers.\n\t// Valid examples include the authentication layer, or an audit/tracing layer.\n\tUpdate(req *http.Request, context Context) error\n}\n```\nRequestContextMapper keeps track of the context associated with a particular request\n\n```go\nfunc NewRequestContextMapper() RequestContextMapper\n```\nNewRequestContextMapper returns a new RequestContextMapper. The returned mapper must be added as a request filter using NewRequestContextFilter.\n\n```go\ntype ResourceList map[ResourceName]resource.Quantity\n```\nResourceList is a set of (resource name, quantity) pairs.\n\n```go\nfunc (self *ResourceList) Cpu() *resource.Quantity\n```\nReturns the CPU limit if specified.\n\n```go\nfunc (self *ResourceList) Memory() *resource.Quantity\n```\nReturns the Memory limit if specified.\n\n```go\nfunc (self *ResourceList) Pods() *resource.Quantity\n```\n\n```go\ntype ResourceName string\n```\nResourceName is the name identifying various resources in a ResourceList.\n\n```go\nconst (\n\t// CPU, in cores. (500m = .5 cores)\n\tResourceCPU ResourceName = \"cpu\"\n\t// Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024)\n\tResourceMemory ResourceName = \"memory\"\n\t// Volume size, in bytes (e,g. 5Gi = 5GiB = 5 * 1024 * 1024 * 1024)\n\tResourceStorage ResourceName = \"storage\"\n)\n```\n\n```go\nconst (\n\t// Pods, number\n\tResourcePods ResourceName = \"pods\"\n\t// Services, number\n\tResourceServices ResourceName = \"services\"\n\t// ReplicationControllers, number\n\tResourceReplicationControllers ResourceName = \"replicationcontrollers\"\n\t// ResourceQuotas, number\n\tResourceQuotas ResourceName = \"resourcequotas\"\n\t// ResourceSecrets, number\n\tResourceSecrets ResourceName = \"secrets\"\n\t// ResourcePersistentVolumeClaims, number\n\tResourcePersistentVolumeClaims ResourceName = \"persistentvolumeclaims\"\n)\n```\nThe following identify resource constants for Kubernetes object types\n\n```go\nfunc (self ResourceName) String() string\n```\nReturns string version of ResourceName.\n\n```go\ntype ResourceQuota struct {\n\tTypeMeta   `json:\",inline\"`\n\tObjectMeta `json:\"metadata,omitempty\"`\n\n\t// Spec defines the desired quota\n\tSpec ResourceQuotaSpec `json:\"spec,omitempty\"`\n\n\t// Status defines the actual enforced quota and its current usage\n\tStatus ResourceQuotaStatus `json:\"status,omitempty\"`\n}\n```\nResourceQuota sets aggregate quota restrictions enforced per namespace\n\n```go\nfunc (*ResourceQuota) IsAnAPIObject()\n```\n\n```go\ntype ResourceQuotaList struct {\n\tTypeMeta `json:\",inline\"`\n\tListMeta `json:\"metadata,omitempty\"`\n\n\t// Items is a list of ResourceQuota objects\n\tItems []ResourceQuota `json:\"items\"`\n}\n```\nResourceQuotaList is a list of ResourceQuota items\n\n```go\nfunc (*ResourceQuotaList) IsAnAPIObject()\n```\n\n```go\ntype ResourceQuotaSpec struct {\n\t// Hard is the set of desired hard limits for each named resource\n\tHard ResourceList `json:\"hard,omitempty\"`\n}\n```\nResourceQuotaSpec defines the desired hard limits to enforce for Quota\n\n```go\ntype ResourceQuotaStatus struct {\n\t// Hard is the set of enforced hard limits for each named resource\n\tHard ResourceList `json:\"hard,omitempty\"`\n\t// Used is the current observed total usage of the resource in the namespace\n\tUsed ResourceList `json:\"used,omitempty\"`\n}\n```\nResourceQuotaStatus defines the enforced hard limits and observed use\n\n```go\ntype ResourceRequirements struct {\n\t// Limits describes the maximum amount of compute resources required.\n\tLimits ResourceList `json:\"limits,omitempty\"`\n\t// Requests describes the minimum amount of compute resources required.\n\t// Note: 'Requests' are honored only for Persistent Volumes as of now.\n\t// TODO: Update the scheduler to use 'Requests' in addition to 'Limits'. If Request is omitted for a container,\n\t// it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value\n\tRequests ResourceList `json:\"requests,omitempty\"`\n}\n```\nResourceRequirements describes the compute resource requirements.\n\n```go\ntype RestartPolicy string\n```\nRestartPolicy describes how the container should be restarted. Only one of the following restart policies may be specified. If none of the following policies is specified, the default one is RestartPolicyAlways.\n\n```go\nconst (\n\tRestartPolicyAlways    RestartPolicy = \"Always\"\n\tRestartPolicyOnFailure RestartPolicy = \"OnFailure\"\n\tRestartPolicyNever     RestartPolicy = \"Never\"\n)\n```\n\n```go\ntype RootPaths struct {\n\tPaths []string `json:\"paths\"`\n}\n```\nRootPaths lists the paths available at root. For example: \"/healthz\", \"/api\".\n\n```go\ntype SELinuxOptions struct {\n\t// SELinux user label\n\tUser string `json:\"user,omitempty\" description:\"the user label to apply to the container\"`\n\n\t// SELinux role label\n\tRole string `json:\"role,omitempty\" description:\"the role label to apply to the container\"`\n\n\t// SELinux type label\n\tType string `json:\"type,omitempty\" description:\"the type label to apply to the container\"`\n\n\t// SELinux level label.\n\tLevel string `json:\"level,omitempty\" description:\"the level label to apply to the container\"`\n}\n```\nSELinuxOptions are the labels to be applied to the container.\n\n```go\ntype Secret struct {\n\tTypeMeta   `json:\",inline\"`\n\tObjectMeta `json:\"metadata,omitempty\"`\n\n\t// Data contains the secret data.  Each key must be a valid DNS_SUBDOMAIN\n\t// or leading dot followed by valid DNS_SUBDOMAIN.\n\t// The serialized form of the secret data is a base64 encoded string,\n\t// representing the arbitrary (possibly non-string) data value here.\n\tData map[string][]byte `json:\"data,omitempty\"`\n\n\t// Used to facilitate programmatic handling of secret data.\n\tType SecretType `json:\"type,omitempty\"`\n}\n```\nSecret holds secret data of a certain type.  The total bytes of the values in the Data field must be less than MaxSecretSize bytes.\n\n```go\nfunc (*Secret) IsAnAPIObject()\n```\n\n```go\ntype SecretList struct {\n\tTypeMeta `json:\",inline\"`\n\tListMeta `json:\"metadata,omitempty\"`\n\n\tItems []Secret `json:\"items\"`\n}\n```\n\n```go\nfunc (*SecretList) IsAnAPIObject()\n```\n\n```go\ntype SecretType string\n```\n\n```go\ntype SecretVolumeSource struct {\n\t// Name of the secret in the pod's namespace to use\n\tSecretName string `json:\"secretName\"`\n}\n```\nSecretVolumeSource adapts a Secret into a VolumeSource.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names.\n\n```go\ntype SecurityContext struct {\n\t// Capabilities are the capabilities to add/drop when running the container\n\tCapabilities *Capabilities `json:\"capabilities,omitempty\" description:\"the linux capabilites that should be added or removed\"`\n\n\t// Run the container in privileged mode\n\tPrivileged *bool `json:\"privileged,omitempty\" description:\"run the container in privileged mode\"`\n\n\t// SELinuxOptions are the labels to be applied to the container\n\t// and volumes\n\tSELinuxOptions *SELinuxOptions `json:\"seLinuxOptions,omitempty\" description:\"options that control the SELinux labels applied\"`\n\n\t// RunAsUser is the UID to run the entrypoint of the container process.\n\tRunAsUser *int64 `json:\"runAsUser,omitempty\" description:\"the user id that runs the first process in the container\"`\n}\n```\nSecurityContext holds security configuration that will be applied to a container.  SecurityContext contains duplication of some existing fields from the Container resource.  These duplicate fields will be populated based on the Container configuration if they are not set.  Defining them on both the Container AND the SecurityContext will result in an error.\n\n```go\ntype SerializedReference struct {\n\tTypeMeta  `json:\",inline\"`\n\tReference ObjectReference `json:\"reference,omitempty\" description:\"the reference to an object in the system\"`\n}\n```\n\n```go\nfunc (*SerializedReference) IsAnAPIObject()\n```\n\n```go\ntype Service struct {\n\tTypeMeta   `json:\",inline\"`\n\tObjectMeta `json:\"metadata,omitempty\"`\n\n\t// Spec defines the behavior of a service.\n\tSpec ServiceSpec `json:\"spec,omitempty\"`\n\n\t// Status represents the current status of a service.\n\tStatus ServiceStatus `json:\"status,omitempty\"`\n}\n```\nService is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.\n\n```go\nfunc (*Service) IsAnAPIObject()\n```\n\n```go\ntype ServiceAccount struct {\n\tTypeMeta   `json:\",inline\"`\n\tObjectMeta `json:\"metadata,omitempty\"`\n\n\t// Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount\n\tSecrets []ObjectReference `json:\"secrets\"`\n\n\t// ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images\n\t// in pods that reference this ServiceAccount.  ImagePullSecrets are distinct from Secrets because Secrets\n\t// can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.\n\tImagePullSecrets []LocalObjectReference `json:\"imagePullSecrets,omitempty\" description:\"list of references to secrets in the same namespace available for pulling container images\"`\n}\n```\nServiceAccount binds together: \\* a name, understood by users, and perhaps by peripheral systems, for an identity \\* a principal that can be authenticated and authorized \\* a set of secrets\n\n```go\nfunc (*ServiceAccount) IsAnAPIObject()\n```\n\n```go\ntype ServiceAccountList struct {\n\tTypeMeta `json:\",inline\"`\n\tListMeta `json:\"metadata,omitempty\"`\n\n\tItems []ServiceAccount `json:\"items\"`\n}\n```\nServiceAccountList is a list of ServiceAccount objects\n\n```go\nfunc (*ServiceAccountList) IsAnAPIObject()\n```\n\n```go\ntype ServiceAffinity string\n```\nSession Affinity Type string\n\n```go\nconst (\n\t// ServiceAffinityClientIP is the Client IP based.\n\tServiceAffinityClientIP ServiceAffinity = \"ClientIP\"\n\n\t// ServiceAffinityNone - no session affinity.\n\tServiceAffinityNone ServiceAffinity = \"None\"\n)\n```\n\n```go\ntype ServiceList struct {\n\tTypeMeta `json:\",inline\"`\n\tListMeta `json:\"metadata,omitempty\"`\n\n\tItems []Service `json:\"items\"`\n}\n```\nServiceList holds a list of services.\n\n```go\nfunc (*ServiceList) IsAnAPIObject()\n```\n\n```go\ntype ServicePort struct {\n\t// Optional if only one ServicePort is defined on this service: The\n\t// name of this port within the service.  This must be a DNS_LABEL.\n\t// All ports within a ServiceSpec must have unique names.  This maps to\n\t// the 'Name' field in EndpointPort objects.\n\tName string `json:\"name\"`\n\n\t// The IP protocol for this port.  Supports \"TCP\" and \"UDP\".\n\tProtocol Protocol `json:\"protocol\"`\n\n\t// The port that will be exposed on the service.\n\tPort int `json:\"port\"`\n\n\t// Optional: The target port on pods selected by this service.  If this\n\t// is a string, it will be looked up as a named port in the target\n\t// Pod's container ports.  If this is not specified, the first port on\n\t// the destination pod will be used.  This behavior is deprecated.  As\n\t// of v1beta3 the default value is the sames as the Port field (an\n\t// identity map).\n\tTargetPort util.IntOrString `json:\"targetPort\"`\n\n\t// The port on each node on which this service is exposed.\n\t// Default is to auto-allocate a port if the ServiceType of this Service requires one.\n\tNodePort int `json:\"nodePort\" description:\"the port on each node on which this service is exposed\"`\n}\n```\n\n```go\ntype ServiceSpec struct {\n\t// Required: The list of ports that are exposed by this service.\n\tPorts []ServicePort `json:\"ports\"`\n\n\t// This service will route traffic to pods having labels matching this selector. If empty or not present,\n\t// the service is assumed to have endpoints set by an external process and Kubernetes will not modify\n\t// those endpoints.\n\tSelector map[string]string `json:\"selector\"`\n\n\t// ClusterIP is usually assigned by the master.  If specified by the user\n\t// we will try to respect it or else fail the request.  This field can\n\t// not be changed by updates.\n\t// Valid values are None, empty string (\"\"), or a valid IP address\n\t// None can be specified for headless services when proxying is not required\n\tClusterIP string `json:\"clusterIP,omitempty\"`\n\n\t// Type determines how the service will be exposed.  Valid options: ClusterIP, NodePort, LoadBalancer\n\tType ServiceType `json:\"type,omitempty\"`\n\n\t// DeprecatedPublicIPs are deprecated and silently ignored.\n\t// Old behaviour: PublicIPs are used by external load balancers, or can be set by\n\t// users to handle external traffic that arrives at a node.\n\tDeprecatedPublicIPs []string `json:\"deprecatedPublicIPs,omitempty\"`\n\n\t// Required: Supports \"ClientIP\" and \"None\".  Used to maintain session affinity.\n\tSessionAffinity ServiceAffinity `json:\"sessionAffinity,omitempty\"`\n}\n```\nServiceSpec describes the attributes that a user creates on a service\n\n```go\ntype ServiceStatus struct {\n\t// LoadBalancer contains the current status of the load-balancer,\n\t// if one is present.\n\tLoadBalancer LoadBalancerStatus `json:\"loadBalancer,omitempty\"`\n}\n```\nServiceStatus represents the current status of a service\n\n```go\ntype ServiceType string\n```\nService Type string describes ingress methods for a service\n\n```go\nconst (\n\t// ServiceTypeClusterIP means a service will only be accessible inside the\n\t// cluster, via the ClusterIP.\n\tServiceTypeClusterIP ServiceType = \"ClusterIP\"\n\n\t// ServiceTypeNodePort means a service will be exposed on one port of\n\t// every node, in addition to 'ClusterIP' type.\n\tServiceTypeNodePort ServiceType = \"NodePort\"\n\n\t// ServiceTypeLoadBalancer means a service will be exposed via an\n\t// external load balancer (if the cloud provider supports it), in addition\n\t// to 'NodePort' type.\n\tServiceTypeLoadBalancer ServiceType = \"LoadBalancer\"\n)\n```\n\n```go\ntype Status struct {\n\tTypeMeta `json:\",inline\"`\n\tListMeta `json:\"metadata,omitempty\"`\n\n\t// One of: \"Success\" or \"Failure\"\n\tStatus string `json:\"status,omitempty\"`\n\t// A human-readable description of the status of this operation.\n\tMessage string `json:\"message,omitempty\"`\n\t// A machine-readable description of why this operation is in the\n\t// \"Failure\" status. If this value is empty there\n\t// is no information available. A Reason clarifies an HTTP status\n\t// code but does not override it.\n\tReason StatusReason `json:\"reason,omitempty\"`\n\t// Extended data associated with the reason.  Each reason may define its\n\t// own extended details. This field is optional and the data returned\n\t// is not guaranteed to conform to any schema except that defined by\n\t// the reason type.\n\tDetails *StatusDetails `json:\"details,omitempty\"`\n\t// Suggested HTTP return code for this status, 0 if not set.\n\tCode int `json:\"code,omitempty\"`\n}\n```\nStatus is a return value for calls that don't return other objects. TODO: this could go in apiserver, but I'm including it here so clients needn't import both.\n\n```go\nfunc (*Status) IsAnAPIObject()\n```\n\n```go\ntype StatusCause struct {\n\t// A machine-readable description of the cause of the error. If this value is\n\t// empty there is no information available.\n\tType CauseType `json:\"reason,omitempty\"`\n\t// A human-readable description of the cause of the error.  This field may be\n\t// presented as-is to a reader.\n\tMessage string `json:\"message,omitempty\"`\n\t// The field of the resource that has caused this error, as named by its JSON\n\t// serialization. May include dot and postfix notation for nested attributes.\n\t// Arrays are zero-indexed.  Fields may appear more than once in an array of\n\t// causes due to fields having multiple errors.\n\t// Optional.\n\t//\n\t// Examples:\n\t//   \"name\" - the field \"name\" on the current resource\n\t//   \"items[0].name\" - the field \"name\" on the first array entry in \"items\"\n\tField string `json:\"field,omitempty\"`\n}\n```\nStatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.\n\n```go\ntype StatusDetails struct {\n\t// The name attribute of the resource associated with the status StatusReason\n\t// (when there is a single name which can be described).\n\tName string `json:\"name,omitempty\"`\n\t// The kind attribute of the resource associated with the status StatusReason.\n\t// On some operations may differ from the requested resource Kind.\n\tKind string `json:\"kind,omitempty\"`\n\t// The Causes array includes more details associated with the StatusReason\n\t// failure. Not all StatusReasons may provide detailed causes.\n\tCauses []StatusCause `json:\"causes,omitempty\"`\n\t// If specified, the time in seconds before the operation should be retried.\n\tRetryAfterSeconds int `json:\"retryAfterSeconds,omitempty\"`\n}\n```\nStatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.\n\n```go\ntype StatusReason string\n```\nStatusReason is an enumeration of possible failure causes.  Each StatusReason must map to a single HTTP status code, but multiple reasons may map to the same HTTP status code. TODO: move to apiserver\n\n```go\nconst (\n\t// StatusReasonUnknown means the server has declined to indicate a specific reason.\n\t// The details field may contain other information about this error.\n\t// Status code 500.\n\tStatusReasonUnknown StatusReason = \"\"\n\n\t// StatusReasonUnauthorized means the server can be reached and understood the request, but requires\n\t// the user to present appropriate authorization credentials (identified by the WWW-Authenticate header)\n\t// in order for the action to be completed. If the user has specified credentials on the request, the\n\t// server considers them insufficient.\n\t// Status code 401\n\tStatusReasonUnauthorized StatusReason = \"Unauthorized\"\n\n\t// StatusReasonForbidden means the server can be reached and understood the request, but refuses\n\t// to take any further action.  It is the result of the server being configured to deny access for some reason\n\t// to the requested resource by the client.\n\t// Details (optional):\n\t//   \"kind\" string - the kind attribute of the forbidden resource\n\t//                   on some operations may differ from the requested\n\t//                   resource.\n\t//   \"id\"   string - the identifier of the forbidden resource\n\t// Status code 403\n\tStatusReasonForbidden StatusReason = \"Forbidden\"\n\n\t// StatusReasonNotFound means one or more resources required for this operation\n\t// could not be found.\n\t// Details (optional):\n\t//   \"kind\" string - the kind attribute of the missing resource\n\t//                   on some operations may differ from the requested\n\t//                   resource.\n\t//   \"id\"   string - the identifier of the missing resource\n\t// Status code 404\n\tStatusReasonNotFound StatusReason = \"NotFound\"\n\n\t// StatusReasonAlreadyExists means the resource you are creating already exists.\n\t// Details (optional):\n\t//   \"kind\" string - the kind attribute of the conflicting resource\n\t//   \"id\"   string - the identifier of the conflicting resource\n\t// Status code 409\n\tStatusReasonAlreadyExists StatusReason = \"AlreadyExists\"\n\n\t// StatusReasonConflict means the requested update operation cannot be completed\n\t// due to a conflict in the operation. The client may need to alter the request.\n\t// Each resource may define custom details that indicate the nature of the\n\t// conflict.\n\t// Status code 409\n\tStatusReasonConflict StatusReason = \"Conflict\"\n\n\t// StatusReasonInvalid means the requested create or update operation cannot be\n\t// completed due to invalid data provided as part of the request. The client may\n\t// need to alter the request. When set, the client may use the StatusDetails\n\t// message field as a summary of the issues encountered.\n\t// Details (optional):\n\t//   \"kind\" string - the kind attribute of the invalid resource\n\t//   \"id\"   string - the identifier of the invalid resource\n\t//   \"causes\"      - one or more StatusCause entries indicating the data in the\n\t//                   provided resource that was invalid.  The code, message, and\n\t//                   field attributes will be set.\n\t// Status code 422\n\tStatusReasonInvalid StatusReason = \"Invalid\"\n\n\t// StatusReasonServerTimeout means the server can be reached and understood the request,\n\t// but cannot complete the action in a reasonable time. The client should retry the request.\n\t// This is may be due to temporary server load or a transient communication issue with\n\t// another server. Status code 500 is used because the HTTP spec provides no suitable\n\t// server-requested client retry and the 5xx class represents actionable errors.\n\t// Details (optional):\n\t//   \"kind\" string - the kind attribute of the resource being acted on.\n\t//   \"id\"   string - the operation that is being attempted.\n\t//   \"retryAfterSeconds\" int - the number of seconds before the operation should be retried\n\t// Status code 500\n\tStatusReasonServerTimeout StatusReason = \"ServerTimeout\"\n\n\t// StatusReasonTimeout means that the request could not be completed within the given time.\n\t// Clients can get this response only when they specified a timeout param in the request,\n\t// or if the server cannot complete the operation within a reasonable amount of time.\n\t// The request might succeed with an increased value of timeout param. The client *should*\n\t// wait at least the number of seconds specified by the retryAfterSeconds field.\n\t// Details (optional):\n\t//   \"retryAfterSeconds\" int - the number of seconds before the operation should be retried\n\t// Status code 504\n\tStatusReasonTimeout StatusReason = \"Timeout\"\n\n\t// StatusReasonBadRequest means that the request itself was invalid, because the request\n\t// doesn't make any sense, for example deleting a read-only object.  This is different than\n\t// StatusReasonInvalid above which indicates that the API call could possibly succeed, but the\n\t// data was invalid.  API calls that return BadRequest can never succeed.\n\tStatusReasonBadRequest StatusReason = \"BadRequest\"\n\n\t// StatusReasonMethodNotAllowed means that the action the client attempted to perform on the\n\t// resource was not supported by the code - for instance, attempting to delete a resource that\n\t// can only be created. API calls that return MethodNotAllowed can never succeed.\n\tStatusReasonMethodNotAllowed StatusReason = \"MethodNotAllowed\"\n\n\t// StatusReasonInternalError indicates that an internal error occurred, it is unexpected\n\t// and the outcome of the call is unknown.\n\t// Details (optional):\n\t//   \"causes\" - The original error\n\t// Status code 500\n\tStatusReasonInternalError = \"InternalError\"\n)\n```\n\n```go\ntype StorageMedium string\n```\nStorageMedium defines ways that storage can be allocated to a volume.\n\n```go\nconst (\n\tStorageMediumDefault StorageMedium = \"\"       // use whatever the default is for the node\n\tStorageMediumMemory  StorageMedium = \"Memory\" // use memory (tmpfs)\n)\n```\n\n```go\ntype TCPSocketAction struct {\n\t// Required: Port to connect to.\n\tPort util.IntOrString `json:\"port,omitempty\"`\n}\n```\nTCPSocketAction describes an action based on opening a socket\n\n```go\ntype TypeMeta struct {\n\t// Kind is a string value representing the REST resource this object represents.\n\t// Servers may infer this from the endpoint the client submits requests to.\n\tKind string `json:\"kind,omitempty\"`\n\n\t// APIVersion defines the versioned schema of this representation of an object.\n\t// Servers should convert recognized schemas to the latest internal value, and\n\t// may reject unrecognized values.\n\tAPIVersion string `json:\"apiVersion,omitempty\"`\n}\n```\nTypeMeta describes an individual object in an API response or request with strings representing the type of the object and its API schema version. Structures that are versioned or persisted should inline TypeMeta.\n\n```go\ntype URIScheme string\n```\nURIScheme identifies the scheme used for connection to a host for Get actions\n\n```go\nconst (\n\t// URISchemeHTTP means that the scheme used will be http://\n\tURISchemeHTTP URIScheme = \"HTTP\"\n\t// URISchemeHTTPS means that the scheme used will be https://\n\tURISchemeHTTPS URIScheme = \"HTTPS\"\n)\n```\n\n```go\ntype Volume struct {\n\t// Required: This must be a DNS_LABEL.  Each volume in a pod must have\n\t// a unique name.\n\tName string `json:\"name\"`\n\t// The VolumeSource represents the location and type of a volume to mount.\n\t// This is optional for now. If not specified, the Volume is implied to be an EmptyDir.\n\t// This implied behavior is deprecated and will be removed in a future version.\n\tVolumeSource `json:\",inline,omitempty\"`\n}\n```\nVolume represents a named volume in a pod that may be accessed by any containers in the pod.\n\n```go\ntype VolumeMount struct {\n\t// Required: This must match the Name of a Volume [above].\n\tName string `json:\"name\"`\n\t// Optional: Defaults to false (read-write).\n\tReadOnly bool `json:\"readOnly,omitempty\"`\n\t// Required.\n\tMountPath string `json:\"mountPath\"`\n}\n```\nVolumeMount describes a mounting of a Volume within a container.\n\n```go\ntype VolumeSource struct {\n\t// HostPath represents file or directory on the host machine that is\n\t// directly exposed to the container. This is generally used for system\n\t// agents or other privileged things that are allowed to see the host\n\t// machine. Most containers will NOT need this.\n\t// TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not\n\t// mount host directories as read/write.\n\tHostPath *HostPathVolumeSource `json:\"hostPath,omitempty\"`\n\t// EmptyDir represents a temporary directory that shares a pod's lifetime.\n\tEmptyDir *EmptyDirVolumeSource `json:\"emptyDir,omitempty\"`\n\t// GCEPersistentDisk represents a GCE Disk resource that is attached to a\n\t// kubelet's host machine and then exposed to the pod.\n\tGCEPersistentDisk *GCEPersistentDiskVolumeSource `json:\"gcePersistentDisk,omitempty\"`\n\t// AWSElasticBlockStore represents an AWS EBS disk that is attached to a\n\t// kubelet's host machine and then exposed to the pod.\n\tAWSElasticBlockStore *AWSElasticBlockStoreVolumeSource `json:\"awsElasticBlockStore,omitempty\"`\n\t// GitRepo represents a git repository at a particular revision.\n\tGitRepo *GitRepoVolumeSource `json:\"gitRepo,omitempty\"`\n\t// Secret represents a secret that should populate this volume.\n\tSecret *SecretVolumeSource `json:\"secret,omitempty\"`\n\t// NFS represents an NFS mount on the host that shares a pod's lifetime\n\tNFS *NFSVolumeSource `json:\"nfs,omitempty\"`\n\t// ISCSIVolumeSource represents an ISCSI Disk resource that is attached to a\n\t// kubelet's host machine and then exposed to the pod.\n\tISCSI *ISCSIVolumeSource `json:\"iscsi,omitempty\"`\n\t// Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime\n\tGlusterfs *GlusterfsVolumeSource `json:\"glusterfs,omitempty\"`\n\t// PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace\n\tPersistentVolumeClaim *PersistentVolumeClaimVolumeSource `json:\"persistentVolumeClaim,omitempty\"`\n\t// RBD represents a Rados Block Device mount on the host that shares a pod's lifetime\n\tRBD *RBDVolumeSource `json:\"rbd,omitempty\"`\n}\n```\nVolumeSource represents the source location of a volume to mount. Only one of its members may be specified.\n\n","path":"github.com/dockerstack/kubernetes/pkg/api","name":"api","synopsis":"Package api contains the latest (or \"internal\") version of the Kubernetes API objects.","isRedistributable":true}
