common

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Overview

Package common contains common types for other packages to use.

Index

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

func (j *JSON) DeepCopy() *JSON

DeepCopy returns a deep copy of the JSON.

func (*JSON) DeepCopyInto

func (j *JSON) DeepCopyInto(target *JSON)

DeepCopyInto copies the receiver, writing into out.

func (JSON) MarshalJSON

func (j JSON) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (JSON) OpenAPISchemaFormat

func (_ JSON) OpenAPISchemaFormat() string

OpenAPISchemaFormat is used by the kube-openapi generator when constructing the OpenAPI spec of this type.

func (JSON) OpenAPISchemaType

func (_ JSON) 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 (*JSON) String

func (j *JSON) String() string

String returns the JSON representation of the object.

func (*JSON) UnmarshalJSON

func (j *JSON) UnmarshalJSON(data []byte) error

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

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

func (*TypedLocalObjectReference) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL