Documentation ¶
Index ¶
Constants ¶
const ( GROUP = "example.grafana.app" VERSION = "v0alpha1" APIVERSION = GROUP + "/" + VERSION )
Variables ¶
var DummyResourceInfo = common.NewResourceInfo(GROUP, VERSION, "dummy", "dummy", "DummyResource", func() runtime.Object { return &DummyResource{} }, func() runtime.Object { return &DummyResourceList{} }, )
var RuntimeResourceInfo = common.NewResourceInfo(GROUP, VERSION, "runtime", "runtime", "RuntimeInfo", func() runtime.Object { return &RuntimeInfo{} }, func() runtime.Object { return &RuntimeInfo{} }, )
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: GROUP, Version: VERSION} )
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func RegisterDefaults ¶
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.