Documentation
¶
Index ¶
- type Registry
- func (r *Registry) All() []k8ssys.Kind
- func (r *Registry) Dashboard() k8ssys.Kind
- func (r *Registry) LibraryPanel() k8ssys.Kind
- func (r *Registry) Playlist() k8ssys.Kind
- func (r *Registry) Preferences() k8ssys.Kind
- func (r *Registry) PublicDashboard() k8ssys.Kind
- func (r *Registry) ServiceAccount() k8ssys.Kind
- func (r *Registry) Team() k8ssys.Kind
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 ¶
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 ¶
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 ¶
Dashboard returns the k8ssys.Kind instance for the Dashboard kind.
func (*Registry) LibraryPanel ¶
LibraryPanel returns the k8ssys.Kind instance for the LibraryPanel kind.
func (*Registry) Playlist ¶
Playlist returns the k8ssys.Kind instance for the Playlist kind.
func (*Registry) Preferences ¶
Preferences returns the k8ssys.Kind instance for the Preferences kind.
func (*Registry) PublicDashboard ¶
PublicDashboard returns the k8ssys.Kind instance for the PublicDashboard kind.
func (*Registry) ServiceAccount ¶
ServiceAccount returns the k8ssys.Kind instance for the ServiceAccount kind.