Documentation ¶
Index ¶
- type CloneablePrometheusConfig
- type PrometheusConfig
- type PrometheusConfigClient
- func NewPrometheusConfigClient(rcFactory factory.ResourceClientFactory) (PrometheusConfigClient, error)
- func NewPrometheusConfigClientWithBase(rc clients.ResourceClient) PrometheusConfigClient
- func NewPrometheusConfigClientWithToken(rcFactory factory.ResourceClientFactory, token string) (PrometheusConfigClient, error)
- type PrometheusConfigList
- func (list PrometheusConfigList) AsInterfaces() []interface{}
- func (list PrometheusConfigList) AsResources() resources.ResourceList
- func (list PrometheusConfigList) Clone() PrometheusConfigList
- func (list PrometheusConfigList) Each(f func(element *PrometheusConfig))
- func (list PrometheusConfigList) Find(namespace, name string) (*PrometheusConfig, error)
- func (list PrometheusConfigList) Names() []string
- func (list PrometheusConfigList) NamespacesDotNames() []string
- func (list PrometheusConfigList) Sort() PrometheusConfigList
- type PrometheusConfigReconciler
- type PrometheusconfigsByNamespace
- func (byNamespace PrometheusconfigsByNamespace) Add(prometheusConfig ...*PrometheusConfig)
- func (byNamespace PrometheusconfigsByNamespace) Clear(namespace string)
- func (byNamespace PrometheusconfigsByNamespace) Clone() PrometheusconfigsByNamespace
- func (byNamespace PrometheusconfigsByNamespace) List() PrometheusConfigList
- type TransitionPrometheusConfigFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloneablePrometheusConfig ¶ added in v0.3.16
type CloneablePrometheusConfig interface { resources.Resource Clone() *github_com_solo_io_supergloo_api_external_prometheus.PrometheusConfig }
type PrometheusConfig ¶
type PrometheusConfig struct {
github_com_solo_io_supergloo_api_external_prometheus.PrometheusConfig
}
func NewPrometheusConfig ¶
func NewPrometheusConfig(namespace, name string) *PrometheusConfig
func (*PrometheusConfig) Clone ¶ added in v0.3.16
func (r *PrometheusConfig) Clone() resources.Resource
func (*PrometheusConfig) Hash ¶
func (r *PrometheusConfig) Hash() uint64
type PrometheusConfigClient ¶
type PrometheusConfigClient interface { BaseClient() clients.ResourceClient Register() error Read(namespace, name string, opts clients.ReadOpts) (*PrometheusConfig, error) Write(resource *PrometheusConfig, opts clients.WriteOpts) (*PrometheusConfig, error) Delete(namespace, name string, opts clients.DeleteOpts) error List(namespace string, opts clients.ListOpts) (PrometheusConfigList, error) Watch(namespace string, opts clients.WatchOpts) (<-chan PrometheusConfigList, <-chan error, error) }
func NewPrometheusConfigClient ¶
func NewPrometheusConfigClient(rcFactory factory.ResourceClientFactory) (PrometheusConfigClient, error)
func NewPrometheusConfigClientWithBase ¶
func NewPrometheusConfigClientWithBase(rc clients.ResourceClient) PrometheusConfigClient
func NewPrometheusConfigClientWithToken ¶
func NewPrometheusConfigClientWithToken(rcFactory factory.ResourceClientFactory, token string) (PrometheusConfigClient, error)
type PrometheusConfigList ¶
type PrometheusConfigList []*PrometheusConfig
func (PrometheusConfigList) AsInterfaces ¶
func (list PrometheusConfigList) AsInterfaces() []interface{}
func (PrometheusConfigList) AsResources ¶
func (list PrometheusConfigList) AsResources() resources.ResourceList
func (PrometheusConfigList) Clone ¶
func (list PrometheusConfigList) Clone() PrometheusConfigList
func (PrometheusConfigList) Each ¶
func (list PrometheusConfigList) Each(f func(element *PrometheusConfig))
func (PrometheusConfigList) Find ¶
func (list PrometheusConfigList) Find(namespace, name string) (*PrometheusConfig, error)
namespace is optional, if left empty, names can collide if the list contains more than one with the same name
func (PrometheusConfigList) Names ¶
func (list PrometheusConfigList) Names() []string
func (PrometheusConfigList) NamespacesDotNames ¶
func (list PrometheusConfigList) NamespacesDotNames() []string
func (PrometheusConfigList) Sort ¶
func (list PrometheusConfigList) Sort() PrometheusConfigList
type PrometheusConfigReconciler ¶
type PrometheusConfigReconciler interface {
Reconcile(namespace string, desiredResources PrometheusConfigList, transition TransitionPrometheusConfigFunc, opts clients.ListOpts) error
}
func NewPrometheusConfigReconciler ¶
func NewPrometheusConfigReconciler(client PrometheusConfigClient) PrometheusConfigReconciler
type PrometheusconfigsByNamespace ¶
type PrometheusconfigsByNamespace map[string]PrometheusConfigList
func (PrometheusconfigsByNamespace) Add ¶
func (byNamespace PrometheusconfigsByNamespace) Add(prometheusConfig ...*PrometheusConfig)
func (PrometheusconfigsByNamespace) Clear ¶
func (byNamespace PrometheusconfigsByNamespace) Clear(namespace string)
func (PrometheusconfigsByNamespace) Clone ¶
func (byNamespace PrometheusconfigsByNamespace) Clone() PrometheusconfigsByNamespace
func (PrometheusconfigsByNamespace) List ¶
func (byNamespace PrometheusconfigsByNamespace) List() PrometheusConfigList
type TransitionPrometheusConfigFunc ¶
type TransitionPrometheusConfigFunc func(original, desired *PrometheusConfig) (bool, error)
Option to copy anything from the original to the desired before writing. Return value of false means don't update
Click to show internal directories.
Click to hide internal directories.