package unversioned
import "k8s.io/kubernetes/pkg/api/unversioned"
Package unversioned is deprecated and has been replaced with pkg/apis/meta/v1
DEPRECATED - Do not reference or add types to this package, it will be removed once Heapster is updated to use pkg/apis/meta/v1.
Index ¶
- type Duration
- type ListMeta
- type Time
- func Date(year int, month time.Month, day, hour, min, sec, nsec int, loc *time.Location) Time
- func NewTime(time time.Time) Time
- func Now() Time
- func Unix(sec int64, nsec int64) Time
- func (t Time) Before(u Time) bool
- func (t *Time) DeepCopyInto(out *Time)
- func (t Time) Equal(u Time) bool
- func (t *Time) Fuzz(c fuzz.Continue)
- func (t *Time) IsZero() bool
- func (t Time) MarshalJSON() ([]byte, error)
- func (t Time) MarshalQueryParameter() (string, error)
- func (_ Time) OpenAPIDefinition() openapi.OpenAPIDefinition
- func (t Time) Rfc3339Copy() Time
- func (t Time) String() string
- func (t *Time) UnmarshalJSON(b []byte) error
- func (t *Time) UnmarshalQueryParameter(str string) error
- type TypeMeta
Types ¶
type Duration ¶
Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json.
func (Duration) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Duration) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface.
type ListMeta ¶
type ListMeta struct { // SelfLink is a URL representing this object. // Populated by the system. // Read-only. // +optional SelfLink string `json:"selfLink,omitempty" protobuf:"bytes,1,opt,name=selfLink"` // String that identifies the server's internal version of this object that // can be used by clients to determine when objects have changed. // Value must be treated as opaque by clients and passed unmodified back to the server. // Populated by the system. // Read-only. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency // +optional ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,2,opt,name=resourceVersion"` }
ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.
type Time ¶
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
func Date ¶
Date returns the Time corresponding to the supplied parameters by wrapping time.Date.
func NewTime ¶
NewTime returns a wrapped instance of the provided time
func Now ¶
func Now() Time
Now returns the current local time.
func Unix ¶
Unix returns the local time corresponding to the given Unix time by wrapping time.Unix.
func (Time) Before ¶
Before reports whether the time instant t is before u.
func (*Time) DeepCopyInto ¶
DeepCopyInto creates a deep-copy of the Time value. The underlying time.Time type is effectively immutable in the time API, so it is safe to copy-by-assign, despite the presence of (unexported) Pointer fields.
func (Time) Equal ¶
Equal reports whether the time instant t is equal to u.
func (*Time) Fuzz ¶
func (t *Time) Fuzz(c fuzz.Continue)
Fuzz satisfies fuzz.Interface.
func (*Time) IsZero ¶
IsZero returns true if the value is nil or time is zero.
func (Time) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (Time) MarshalQueryParameter ¶
MarshalQueryParameter converts to a URL query parameter value
func (Time) OpenAPIDefinition ¶
func (_ Time) OpenAPIDefinition() openapi.OpenAPIDefinition
func (Time) Rfc3339Copy ¶
Rfc3339Copy returns a copy of the Time at second-level precision.
func (Time) String ¶
String returns the representation of the time.
func (*Time) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface.
func (*Time) UnmarshalQueryParameter ¶
UnmarshalQueryParameter converts from a URL query parameter value to an object
type TypeMeta ¶
type TypeMeta struct { // Kind is a string value representing the REST resource this object represents. // Servers may infer this from the endpoint the client submits requests to. // Cannot be updated. // In CamelCase. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds // +optional Kind string `json:"kind,omitempty" protobuf:"bytes,1,opt,name=kind"` // APIVersion defines the versioned schema of this representation of an object. // Servers should convert recognized schemas to the latest internal value, and // may reject unrecognized values. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources // +optional APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,2,opt,name=apiVersion"` }
TypeMeta 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.
Source Files ¶
duration.go time.go types.go
- Version
- v1.8.5-beta.0
- Published
- Nov 20, 2017
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 3 minutes ago –
Tools for package owners.