Documentation ¶
Index ¶
Constants ¶
const ( GROUP = "peakq.grafana.app" VERSION = "v0alpha1" APIVERSION = GROUP + "/" + VERSION )
Variables ¶
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 )
var QueryTemplateResourceInfo = common.NewResourceInfo(GROUP, VERSION, "querytemplates", "querytemplate", "QueryTemplate", func() runtime.Object { return &QueryTemplate{} }, func() runtime.Object { return &QueryTemplateList{} }, )
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.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type QueryTemplate ¶
type QueryTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec template.QueryTemplate `json:"spec,omitempty"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*QueryTemplate) DeepCopy ¶
func (in *QueryTemplate) DeepCopy() *QueryTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryTemplate.
func (*QueryTemplate) DeepCopyInto ¶
func (in *QueryTemplate) DeepCopyInto(out *QueryTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*QueryTemplate) DeepCopyObject ¶
func (in *QueryTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type QueryTemplateList ¶
type QueryTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []QueryTemplate `json:"items,omitempty"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*QueryTemplateList) DeepCopy ¶
func (in *QueryTemplateList) DeepCopy() *QueryTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryTemplateList.
func (*QueryTemplateList) DeepCopyInto ¶
func (in *QueryTemplateList) DeepCopyInto(out *QueryTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*QueryTemplateList) DeepCopyObject ¶
func (in *QueryTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RenderedQuery ¶
type RenderedQuery struct { metav1.TypeMeta `json:",inline"` // +listType=atomic Targets []template.Target `json:"targets,omitempty"` }
Dummy object that represents a real query object +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*RenderedQuery) DeepCopy ¶
func (in *RenderedQuery) DeepCopy() *RenderedQuery
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RenderedQuery.
func (*RenderedQuery) DeepCopyInto ¶
func (in *RenderedQuery) DeepCopyInto(out *RenderedQuery)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RenderedQuery) DeepCopyObject ¶
func (in *RenderedQuery) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.