Documentation ¶
Overview ¶
Package v1alpha1 contains types required for v1alpha1 +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:defaulter-gen=TypeMeta +groupName=o11y.prism.oam.dev
Index ¶
- Constants
- Variables
- type GrafanaDatasource
- func (in *GrafanaDatasource) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
- func (in *GrafanaDatasource) Create(ctx context.Context, obj runtime.Object, ...) (runtime.Object, error)
- func (in *GrafanaDatasource) DeepCopy() *GrafanaDatasource
- func (in *GrafanaDatasource) DeepCopyInto(out *GrafanaDatasource)
- func (in *GrafanaDatasource) DeepCopyObject() runtime.Object
- func (in *GrafanaDatasource) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, ...) (obj runtime.Object, _ bool, err error)
- func (in *GrafanaDatasource) Destroy()
- func (in *GrafanaDatasource) FromResponseBody(respBody []byte) error
- func (in *GrafanaDatasource) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (in *GrafanaDatasource) GetGroupVersionResource() schema.GroupVersionResource
- func (in *GrafanaDatasource) GetID() (int, error)
- func (in *GrafanaDatasource) GetObjectMeta() *metav1.ObjectMeta
- func (in *GrafanaDatasource) IsStorageVersion() bool
- func (in *GrafanaDatasource) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
- func (in *GrafanaDatasource) NamespaceScoped() bool
- func (in *GrafanaDatasource) New() runtime.Object
- func (in *GrafanaDatasource) NewList() runtime.Object
- func (in *GrafanaDatasource) ShortNames() []string
- func (in *GrafanaDatasource) ToRequestBody() ([]byte, error)
- func (in *GrafanaDatasource) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (obj runtime.Object, _ bool, err error)
- type GrafanaDatasourceClient
- type GrafanaDatasourceList
- func (in *GrafanaDatasourceList) DeepCopy() *GrafanaDatasourceList
- func (in *GrafanaDatasourceList) DeepCopyInto(out *GrafanaDatasourceList)
- func (in *GrafanaDatasourceList) DeepCopyObject() runtime.Object
- func (in *GrafanaDatasourceList) FromResponseBody(respBody []byte, parentResourceName string) error
Constants ¶
const ( // Group the group for the apiextensions Group = "o11y.prism.oam.dev" // Version the version for the v1alpha1 apiextensions Version = "v1alpha1" )
Variables ¶
var ( // GrafanaDatasourceResource resource name for GrafanaDatasource GrafanaDatasourceResource = "grafanadatasources" // GrafanaDatasourceKind kind name for GrafanaDatasource GrafanaDatasourceKind = "GrafanaDatasource" // GrafanaDatasourceGroupResource GroupResource for GrafanaDatasource GrafanaDatasourceGroupResource = schema.GroupResource{Group: Group, Resource: GrafanaDatasourceResource} // GrafanaDatasourceGroupVersionKind GroupVersionKind for GrafanaDatasource GrafanaDatasourceGroupVersionKind = GroupVersion.WithKind(GrafanaDatasourceKind) )
var AddToScheme = func(scheme *runtime.Scheme) error { metav1.AddToGroupVersion(scheme, GroupVersion) scheme.AddKnownTypes(GroupVersion, &GrafanaDatasource{}, &GrafanaDatasourceList{}, ) return nil }
AddToScheme add virtual cluster scheme
var GroupVersion = schema.GroupVersion{Group: Group, Version: Version}
GroupVersion the apiextensions v1alpha1 group version
Functions ¶
This section is empty.
Types ¶
type GrafanaDatasource ¶
type GrafanaDatasource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:pruning:PreserveUnknownFields Spec runtime.RawExtension `json:"spec,omitempty"` }
GrafanaDatasource is a reflection api for Grafana Datasource +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*GrafanaDatasource) ConvertToTable ¶
func (in *GrafanaDatasource) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
ConvertToTable convert resource to table
func (*GrafanaDatasource) Create ¶
func (in *GrafanaDatasource) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)
func (*GrafanaDatasource) DeepCopy ¶
func (in *GrafanaDatasource) DeepCopy() *GrafanaDatasource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaDatasource.
func (*GrafanaDatasource) DeepCopyInto ¶
func (in *GrafanaDatasource) DeepCopyInto(out *GrafanaDatasource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GrafanaDatasource) DeepCopyObject ¶
func (in *GrafanaDatasource) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*GrafanaDatasource) Delete ¶
func (in *GrafanaDatasource) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions) (obj runtime.Object, _ bool, err error)
func (*GrafanaDatasource) FromResponseBody ¶
func (in *GrafanaDatasource) FromResponseBody(respBody []byte) error
FromResponseBody load datasource from grafana api create/update response
func (*GrafanaDatasource) Get ¶
func (in *GrafanaDatasource) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
Get finds a resource in the storage by name and returns it.
func (*GrafanaDatasource) GetGroupVersionResource ¶
func (in *GrafanaDatasource) GetGroupVersionResource() schema.GroupVersionResource
GetGroupVersionResource returns the GroupVersionResource for this resource.
func (*GrafanaDatasource) GetID ¶
func (in *GrafanaDatasource) GetID() (int, error)
GetID get id from GrafanaDatasource
func (*GrafanaDatasource) GetObjectMeta ¶
func (in *GrafanaDatasource) GetObjectMeta() *metav1.ObjectMeta
GetObjectMeta returns the object meta reference.
func (*GrafanaDatasource) IsStorageVersion ¶
func (in *GrafanaDatasource) IsStorageVersion() bool
IsStorageVersion returns true if the object is also the internal version
func (*GrafanaDatasource) List ¶
func (in *GrafanaDatasource) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
func (*GrafanaDatasource) NamespaceScoped ¶
func (in *GrafanaDatasource) NamespaceScoped() bool
NamespaceScoped returns if the object must be in a namespace.
func (*GrafanaDatasource) New ¶
func (in *GrafanaDatasource) New() runtime.Object
New returns a new instance of the resource
func (*GrafanaDatasource) NewList ¶
func (in *GrafanaDatasource) NewList() runtime.Object
NewList return a new list instance of the resource
func (*GrafanaDatasource) ShortNames ¶
func (in *GrafanaDatasource) ShortNames() []string
ShortNames delivers a list of short names for a resource.
func (*GrafanaDatasource) ToRequestBody ¶
func (in *GrafanaDatasource) ToRequestBody() ([]byte, error)
ToRequestBody convert object into body for request
func (*GrafanaDatasource) Update ¶
func (in *GrafanaDatasource) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (obj runtime.Object, _ bool, err error)
type GrafanaDatasourceClient ¶
type GrafanaDatasourceClient interface { Get(ctx context.Context, name string) (*GrafanaDatasource, error) List(ctx context.Context, options ...client.ListOption) (*GrafanaDatasourceList, error) Create(ctx context.Context, grafanaDatasource *GrafanaDatasource) error Update(ctx context.Context, grafanaDatasource *GrafanaDatasource) error Delete(ctx context.Context, grafanaDatasource *GrafanaDatasource) error }
GrafanaDatasourceClient client for grafana datasource +kubebuilder:object:generate=false
func NewGrafanaDatasourceClient ¶
func NewGrafanaDatasourceClient(cli client.Client) GrafanaDatasourceClient
NewGrafanaDatasourceClient create GrafanaDatasourceClient
type GrafanaDatasourceList ¶
type GrafanaDatasourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []GrafanaDatasource `json:"items"` }
GrafanaDatasourceList list for GrafanaDatasource +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*GrafanaDatasourceList) DeepCopy ¶
func (in *GrafanaDatasourceList) DeepCopy() *GrafanaDatasourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaDatasourceList.
func (*GrafanaDatasourceList) DeepCopyInto ¶
func (in *GrafanaDatasourceList) DeepCopyInto(out *GrafanaDatasourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GrafanaDatasourceList) DeepCopyObject ¶
func (in *GrafanaDatasourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*GrafanaDatasourceList) FromResponseBody ¶
func (in *GrafanaDatasourceList) FromResponseBody(respBody []byte, parentResourceName string) error
FromResponseBody load datasources from grafana api