corecrd

package
v0.0.0-cloud Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry is a list of all of Grafana's core structured kinds, wrapped in a standard k8ssys.CRD interface that makes them usable for interactions with certain Kubernetes controller and apimachinery libraries.

There are two access methods: individually via literal named methods, or as a slice returned from All() method.

Prefer the individual named methods for use cases where the particular kind(s) that are needed are known to the caller. Prefer All() when performing operations generically across all kinds.

func New

func New(rt *thema.Runtime) *Registry

New constructs a new Registry.

All calling code within grafana/grafana is expected to use Grafana's singleton thema.Runtime, returned from [cuectx.GrafanaThemaRuntime]. If nil is passed, the singleton will be used.

func (*Registry) All

func (r *Registry) All() []k8ssys.Kind

All returns a slice of all core Grafana CRDs in the registry.

The returned slice is guaranteed to be alphabetically sorted by kind name.

func (*Registry) Dashboard

func (r *Registry) Dashboard() k8ssys.Kind

Dashboard returns the k8ssys.Kind instance for the Dashboard kind.

func (*Registry) LibraryPanel

func (r *Registry) LibraryPanel() k8ssys.Kind

LibraryPanel returns the k8ssys.Kind instance for the LibraryPanel kind.

func (*Registry) Playlist

func (r *Registry) Playlist() k8ssys.Kind

Playlist returns the k8ssys.Kind instance for the Playlist kind.

func (*Registry) Preferences

func (r *Registry) Preferences() k8ssys.Kind

Preferences returns the k8ssys.Kind instance for the Preferences kind.

func (*Registry) PublicDashboard

func (r *Registry) PublicDashboard() k8ssys.Kind

PublicDashboard returns the k8ssys.Kind instance for the PublicDashboard kind.

func (*Registry) ServiceAccount

func (r *Registry) ServiceAccount() k8ssys.Kind

ServiceAccount returns the k8ssys.Kind instance for the ServiceAccount kind.

func (*Registry) Team

func (r *Registry) Team() k8ssys.Kind

Team returns the k8ssys.Kind instance for the Team kind.

Jump to

Keyboard shortcuts

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