v0alpha1

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GROUP      = "service.grafana.app"
	VERSION    = "v0alpha1"
	APIVERSION = GROUP + "/" + VERSION
)

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: GROUP, Version: VERSION}

	// SchemaBuilder is used by standard codegen
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var ExternalNameResourceInfo = common.NewResourceInfo(GROUP, VERSION,
	"externalnames", "externalname", "ExternalName",
	func() runtime.Object { return &ExternalName{} },
	func() runtime.Object { return &ExternalNameList{} },
)

Functions

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ExternalName

type ExternalName struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ExternalNameSpec `json:"spec,omitempty"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ExternalName) DeepCopy

func (in *ExternalName) DeepCopy() *ExternalName

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

func (*ExternalName) DeepCopyInto

func (in *ExternalName) DeepCopyInto(out *ExternalName)

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

func (*ExternalName) DeepCopyObject

func (in *ExternalName) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ExternalNameList

type ExternalNameList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []ExternalName `json:"items,omitempty"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ExternalNameList) DeepCopy

func (in *ExternalNameList) DeepCopy() *ExternalNameList

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

func (*ExternalNameList) DeepCopyInto

func (in *ExternalNameList) DeepCopyInto(out *ExternalNameList)

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

func (*ExternalNameList) DeepCopyObject

func (in *ExternalNameList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ExternalNameSpec

type ExternalNameSpec struct {
	Host string `json:"host,omitempty"`
}

func (*ExternalNameSpec) DeepCopy

func (in *ExternalNameSpec) DeepCopy() *ExternalNameSpec

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

func (*ExternalNameSpec) DeepCopyInto

func (in *ExternalNameSpec) DeepCopyInto(out *ExternalNameSpec)

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