v1alpha1

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

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

View Source
const (
	// Group the group for the apiextensions
	Group = "o11y.prism.oam.dev"
	// Version the version for the v1alpha1 apiextensions
	Version = "v1alpha1"
)

Variables

View Source
var (
	// GrafanaDashboardResource resource name for GrafanaDashboard
	GrafanaDashboardResource = "grafanadashboards"
	// GrafanaDashboardKind kind name for GrafanaDashboard
	GrafanaDashboardKind = "GrafanaDashboard"
	// GrafanaDashboardGroupResource GroupResource for GrafanaDashboard
	GrafanaDashboardGroupResource = schema.GroupResource{Group: Group, Resource: GrafanaDashboardResource}
	// GrafanaDashboardGroupVersionKind GroupVersionKind for GrafanaDashboard
	GrafanaDashboardGroupVersionKind = GroupVersion.WithKind(GrafanaDashboardKind)
)
View Source
var AddToScheme = func(scheme *runtime.Scheme) error {
	metav1.AddToGroupVersion(scheme, GroupVersion)

	scheme.AddKnownTypes(GroupVersion,
		&GrafanaDashboard{},
		&GrafanaDashboardList{},
	)
	return nil
}

AddToScheme add virtual cluster scheme

GroupVersion the apiextensions v1alpha1 group version

Functions

This section is empty.

Types

type GrafanaDashboard

type GrafanaDashboard struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:pruning:PreserveUnknownFields
	Spec runtime.RawExtension `json:"spec,omitempty"`
}

GrafanaDashboard is a reflection api for Grafana Datasource +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*GrafanaDashboard) ConvertToTable

func (in *GrafanaDashboard) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)

ConvertToTable convert resource to table

func (*GrafanaDashboard) Create

func (in *GrafanaDashboard) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)

func (*GrafanaDashboard) DeepCopy

func (in *GrafanaDashboard) DeepCopy() *GrafanaDashboard

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

func (*GrafanaDashboard) DeepCopyInto

func (in *GrafanaDashboard) DeepCopyInto(out *GrafanaDashboard)

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

func (*GrafanaDashboard) DeepCopyObject

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

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

func (*GrafanaDashboard) Delete

func (in *GrafanaDashboard) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions) (obj runtime.Object, _ bool, err error)

func (*GrafanaDashboard) Destroy added in v1.7.0

func (in *GrafanaDashboard) Destroy()

Destroy .

func (*GrafanaDashboard) FromResponseBody

func (in *GrafanaDashboard) FromResponseBody(body []byte) error

FromResponseBody convert response into object

func (*GrafanaDashboard) Get

func (in *GrafanaDashboard) 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 (*GrafanaDashboard) GetGroupVersionResource

func (in *GrafanaDashboard) GetGroupVersionResource() schema.GroupVersionResource

GetGroupVersionResource returns the GroupVersionResource for this resource.

func (*GrafanaDashboard) GetObjectMeta

func (in *GrafanaDashboard) GetObjectMeta() *metav1.ObjectMeta

GetObjectMeta returns the object meta reference.

func (*GrafanaDashboard) IsStorageVersion

func (in *GrafanaDashboard) IsStorageVersion() bool

IsStorageVersion returns true if the object is also the internal version

func (*GrafanaDashboard) List

func (*GrafanaDashboard) NamespaceScoped

func (in *GrafanaDashboard) NamespaceScoped() bool

NamespaceScoped returns if the object must be in a namespace.

func (*GrafanaDashboard) New

func (in *GrafanaDashboard) New() runtime.Object

New returns a new instance of the resource

func (*GrafanaDashboard) NewList

func (in *GrafanaDashboard) NewList() runtime.Object

NewList return a new list instance of the resource

func (*GrafanaDashboard) ShortNames

func (in *GrafanaDashboard) ShortNames() []string

ShortNames delivers a list of short names for a resource.

func (*GrafanaDashboard) ToRequestBody

func (in *GrafanaDashboard) ToRequestBody() ([]byte, error)

ToRequestBody convert object into body for request

func (*GrafanaDashboard) Update

func (in *GrafanaDashboard) 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 GrafanaDashboardClient

type GrafanaDashboardClient interface {
	Get(ctx context.Context, name string) (*GrafanaDashboard, error)
	List(ctx context.Context, options ...client.ListOption) (*GrafanaDashboardList, error)
	Create(ctx context.Context, GrafanaDashboard *GrafanaDashboard) error
	Update(ctx context.Context, GrafanaDashboard *GrafanaDashboard) error
	Delete(ctx context.Context, GrafanaDashboard *GrafanaDashboard) error
}

GrafanaDashboardClient client for grafana datasource +kubebuilder:object:generate=false

func NewGrafanaDashboardClient

func NewGrafanaDashboardClient(cli client.Client) GrafanaDashboardClient

NewGrafanaDashboardClient create GrafanaDashboardClient

type GrafanaDashboardList

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

	Items []GrafanaDashboard `json:"items"`
}

GrafanaDashboardList list for GrafanaDashboard +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*GrafanaDashboardList) DeepCopy

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

func (*GrafanaDashboardList) DeepCopyInto

func (in *GrafanaDashboardList) DeepCopyInto(out *GrafanaDashboardList)

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

func (*GrafanaDashboardList) DeepCopyObject

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

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

func (*GrafanaDashboardList) FromResponseBody

func (in *GrafanaDashboardList) FromResponseBody(body []byte, parentResourceName string) error

FromResponseBody convert response into objects

Jump to

Keyboard shortcuts

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