Documentation ¶
Overview ¶
Package common contains common types for other packages to use.
Index ¶
- type JSON
- type JSONObject
- func (j *JSONObject) DeepCopy() *JSONObject
- func (j *JSONObject) DeepCopyInto(target *JSONObject)
- func (j *JSONObject) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (j JSONObject) MarshalJSON() ([]byte, error)
- func (j JSONObject) OpenAPISchemaFormat() string
- func (j JSONObject) OpenAPISchemaType() []string
- func (j *JSONObject) SetConditions(c ...xpv1.Condition)
- func (j *JSONObject) String() string
- func (j *JSONObject) UnmarshalJSON(data []byte) error
- type TypedLocalObjectReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSON ¶
type JSON struct {
Object interface{} `json:"-"`
}
JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.
+protobuf=true +protobuf.options.marshal=false +protobuf.as=ProtoJSON +protobuf.options.(gogoproto.goproto_stringer)=false +k8s:conversion-gen=false
func (*JSON) DeepCopyInto ¶
DeepCopyInto copies the receiver, writing into out.
func (JSON) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (JSON) OpenAPISchemaFormat ¶
OpenAPISchemaFormat is used by the kube-openapi generator when constructing the OpenAPI spec of this type.
func (JSON) 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 (*JSON) UnmarshalJSON ¶
UnmarshalJSON implements json.Marshaler.
type JSONObject ¶
type JSONObject struct {
Object map[string]interface{} `json:"-"`
}
JSONObject represents any valid JSON value of an object. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.
+protobuf=true +protobuf.options.marshal=false +protobuf.as=ProtoJSON +protobuf.options.(gogoproto.goproto_stringer)=false +k8s:conversion-gen=false
func (*JSONObject) DeepCopy ¶
func (j *JSONObject) DeepCopy() *JSONObject
DeepCopy returns a deep copy of the JSONObject.
func (*JSONObject) DeepCopyInto ¶
func (j *JSONObject) DeepCopyInto(target *JSONObject)
DeepCopyInto copies the receiver, writing into out.
func (*JSONObject) GetCondition ¶
func (j *JSONObject) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition implements the Conditioned interface.
func (JSONObject) MarshalJSON ¶
func (j JSONObject) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (JSONObject) OpenAPISchemaFormat ¶
func (j JSONObject) OpenAPISchemaFormat() string
OpenAPISchemaFormat is used by the kube-openapi generator when constructing the OpenAPI spec of this type.
func (JSONObject) OpenAPISchemaType ¶
func (j JSONObject) OpenAPISchemaType() []string
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 (*JSONObject) SetConditions ¶
func (j *JSONObject) SetConditions(c ...xpv1.Condition)
SetConditions implements the Conditioned interface.
func (*JSONObject) String ¶
func (j *JSONObject) String() string
String returns the JSON representation of the object.
func (*JSONObject) UnmarshalJSON ¶
func (j *JSONObject) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Marshaler.
type TypedLocalObjectReference ¶
type TypedLocalObjectReference struct { // APIGroup is the group for the resource being referenced. // +optional APIGroup *string `json:"apiGroup,omitempty"` // Kind is the type of resource being referenced. // +kubebuilder:validation:MinLength=1 Kind string `json:"kind,omitempty"` // Name is the name of resource being referenced. // +kubebuilder:validation:MinLength=1 Name string `json:"name,omitempty"` }
TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.
+structType=atomic +kubebuilder:object:root=false +kubebuilder:object:generate=true
func (*TypedLocalObjectReference) DeepCopy ¶
func (in *TypedLocalObjectReference) DeepCopy() *TypedLocalObjectReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TypedLocalObjectReference.
func (*TypedLocalObjectReference) DeepCopyInto ¶
func (in *TypedLocalObjectReference) DeepCopyInto(out *TypedLocalObjectReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.