Documentation
¶
Index ¶
- func CustomUIDOrUID(cr v1beta1.GrafanaContentResource, contentUID string) string
- func HasChanged(cr v1beta1.GrafanaContentResource, hash string) bool
- func IsUpdatedUID(cr v1beta1.GrafanaContentResource, uid string) bool
- func Unchanged(cr v1beta1.GrafanaContentResource, hash string) bool
- type ContentResolver
- type ContentSourceType
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomUIDOrUID ¶
func CustomUIDOrUID(cr v1beta1.GrafanaContentResource, contentUID string) string
Wrapper around CustomUID, contentModelUID or default metadata.uid
func HasChanged ¶ added in v5.19.0
func HasChanged(cr v1beta1.GrafanaContentResource, hash string) bool
func IsUpdatedUID ¶
func IsUpdatedUID(cr v1beta1.GrafanaContentResource, uid string) bool
Types ¶
type ContentResolver ¶
func NewContentResolver ¶
func NewContentResolver(cr v1beta1.GrafanaContentResource, client client.Client, opts ...Option) *ContentResolver
type ContentSourceType ¶
type ContentSourceType string
const ( ContentSourceTypeRawJSON ContentSourceType = "json" ContentSourceTypeGzipJSON ContentSourceType = "gzipJson" ContentSourceJsonnetProject ContentSourceType = "jsonnetProjectWithRuntimeRaw" ContentSourceTypeURL ContentSourceType = "url" ContentSourceTypeJsonnet ContentSourceType = "jsonnet" ContentSourceTypeGrafanaCom ContentSourceType = "grafana" ContentSourceConfigMap ContentSourceType = "configmap" )
func GetSourceTypes ¶
func GetSourceTypes(cr v1beta1.GrafanaContentResource) []ContentSourceType
type Option ¶
type Option func(r *ContentResolver)
func WithDisabledSources ¶
func WithDisabledSources(disabledSources []ContentSourceType) Option
Click to show internal directories.
Click to hide internal directories.