Documentation ¶
Index ¶
- Variables
- type StrArray
- type StrBool
- type StrIntArray
- type Time
- func (t *Time) Before(u *Time) bool
- func (t *Time) DeepCopyInto(out *Time)
- func (t *Time) Equal(u *Time) bool
- func (t *Time) IsZero() bool
- func (t Time) MarshalJSON() ([]byte, error)
- func (t Time) MarshalQueryParameter() (string, error)
- func (Time) OpenAPISchemaFormat() string
- func (Time) OpenAPISchemaType() []string
- func (t Time) Rfc3339Copy() Time
- func (t Time) ToUnstructured() interface{}
- func (t *Time) UnmarshalJSON(b []byte) error
- func (t *Time) UnmarshalQueryParameter(str string) error
Constants ¶
This section is empty.
Variables ¶
var ( // ErrUnsupportedType is returned if the type is not implemented ErrUnsupportedType = errors.New("unsupported type") )
Functions ¶
This section is empty.
Types ¶
type StrArray ¶
type StrArray []string
StrArray string array to be used on JSON UnmarshalJSON
func (*StrArray) UnmarshalJSON ¶
UnmarshalJSON convert JSON object array of string or a string format strings to a golang string array
type StrBool ¶
type StrBool string
func (*StrBool) UnmarshalJSON ¶
UnmarshalJSON parses fields that may be numbers or booleans.
type StrIntArray ¶
type StrIntArray []string
StrIntArray string array to be used on JSON UnmarshalJSON
func (*StrIntArray) UnmarshalJSON ¶
func (sa *StrIntArray) UnmarshalJSON(data []byte) error
UnmarshalJSON convert JSON object array of string or a string format strings to a golang string array
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.
+protobuf.options.marshal=false +protobuf.as=Timestamp +protobuf.options.(gogoproto.goproto_stringer)=false
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) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (Time) MarshalQueryParameter ¶
MarshalQueryParameter converts to a URL query parameter value
func (Time) OpenAPISchemaFormat ¶
OpenAPISchemaFormat is used by the kube-openapi generator when constructing the OpenAPI spec of this type.
func (Time) OpenAPISchemaType ¶
OpenAPISchemaType is used by the kube-openapi generator when constructing the OpenAPI spec of this type.
See: https://github.com/kubernetes/kube-openapi/tree/master/pkg/generators
func (Time) Rfc3339Copy ¶
Rfc3339Copy returns a copy of the Time at second-level precision.
func (Time) ToUnstructured ¶
func (t Time) ToUnstructured() interface{}
ToUnstructured implements the value.UnstructuredConverter interface.
func (*Time) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface.
func (*Time) UnmarshalQueryParameter ¶
UnmarshalQueryParameter converts from a URL query parameter value to an object