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) EachResource(f func(element resources.Resource))
- 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 PrometheusConfigWatcher
- 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) PrometheusConfigWatcher }
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) EachResource ¶ added in v0.3.18
func (list PrometheusConfigList) EachResource(f func(element resources.Resource))
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 PrometheusConfigWatcher ¶ added in v0.3.18
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.