v1

package
v0.3.23 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

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 (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

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 PrometheusConfigWatcher interface {
	// watch namespace-scoped prometheusconfigs
	Watch(namespace string, opts clients.WatchOpts) (<-chan PrometheusConfigList, <-chan error, error)
}

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

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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