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      = "example.grafana.app"
	VERSION    = "v0alpha1"
	APIVERSION = GROUP + "/" + VERSION
)

Variables

View Source
var DummyResourceInfo = common.NewResourceInfo(GROUP, VERSION,
	"dummy", "dummy", "DummyResource",
	func() runtime.Object { return &DummyResource{} },
	func() runtime.Object { return &DummyResourceList{} },
)
View Source
var RuntimeResourceInfo = common.NewResourceInfo(GROUP, VERSION,
	"runtime", "runtime", "RuntimeInfo",
	func() runtime.Object { return &RuntimeInfo{} },
	func() runtime.Object { return &RuntimeInfo{} },
)
View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: GROUP, Version: VERSION}
)

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.

Types

type DummyResource

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

	Spec common.Unstructured `json:"spec,omitempty"`
}

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

func (*DummyResource) DeepCopy

func (in *DummyResource) DeepCopy() *DummyResource

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

func (*DummyResource) DeepCopyInto

func (in *DummyResource) DeepCopyInto(out *DummyResource)

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

func (*DummyResource) DeepCopyObject

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

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

type DummyResourceList

type DummyResourceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

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

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

func (*DummyResourceList) DeepCopy

func (in *DummyResourceList) DeepCopy() *DummyResourceList

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

func (*DummyResourceList) DeepCopyInto

func (in *DummyResourceList) DeepCopyInto(out *DummyResourceList)

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

func (*DummyResourceList) DeepCopyObject

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

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

type DummySubresource

type DummySubresource struct {
	metav1.TypeMeta `json:",inline"`

	// add subresource info here
	Info string `json:"info,omitempty"`
}

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

func (*DummySubresource) DeepCopy

func (in *DummySubresource) DeepCopy() *DummySubresource

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

func (*DummySubresource) DeepCopyInto

func (in *DummySubresource) DeepCopyInto(out *DummySubresource)

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

func (*DummySubresource) DeepCopyObject

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

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

type RuntimeInfo

type RuntimeInfo struct {
	metav1.TypeMeta `json:",inline"`

	// Unix timestamp when the process started
	StartupTime int64 `json:"startupTime,omitempty"`

	BuildVersion          string `json:"buildVersion,omitempty"`
	BuildCommit           string `json:"buildCommit,omitempty"`
	EnterpriseBuildCommit string `json:"enterpriseBuildCommit,omitempty"`
	BuildBranch           string `json:"buildBranch,omitempty"`
	BuildStamp            int64  `json:"buildStamp,omitempty"`
	IsEnterprise          bool   `json:"enterprise,omitempty"`
	Packaging             string `json:"packaging,omitempty"`
}

Mirrors the info exposed in "github.com/grafana/grafana/pkg/setting" +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*RuntimeInfo) DeepCopy

func (in *RuntimeInfo) DeepCopy() *RuntimeInfo

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

func (*RuntimeInfo) DeepCopyInto

func (in *RuntimeInfo) DeepCopyInto(out *RuntimeInfo)

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

func (*RuntimeInfo) DeepCopyObject

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

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

Jump to

Keyboard shortcuts

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