v1alpha1

package
v1.7.0-beta32 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RateLimitConfigCrd = crd.NewCrd(
		"ratelimitconfigs",
		RateLimitConfigGVK.Group,
		RateLimitConfigGVK.Version,
		RateLimitConfigGVK.Kind,
		"rlc",
		false,
		&rlv1alpha1.RateLimitConfig{})
)
View Source
var (
	RateLimitConfigGVK = schema.GroupVersionKind{
		Version: "v1alpha1",
		Group:   "ratelimit.solo.io",
		Kind:    "RateLimitConfig",
	}
)

Functions

This section is empty.

Types

type RateLimitConfig

func NewRateLimitConfig

func NewRateLimitConfig(namespace, name string) *RateLimitConfig

func (*RateLimitConfig) Clone

func (r *RateLimitConfig) Clone() resources.Resource

func (*RateLimitConfig) GroupVersionKind

func (r *RateLimitConfig) GroupVersionKind() schema.GroupVersionKind

func (*RateLimitConfig) Hash

func (r *RateLimitConfig) Hash(hasher hash.Hash64) (uint64, error)

func (*RateLimitConfig) MustHash

func (r *RateLimitConfig) MustHash() uint64

type RateLimitConfigClient

type RateLimitConfigClient interface {
	BaseClient() clients.ResourceClient
	Register() error
	Read(namespace, name string, opts clients.ReadOpts) (*RateLimitConfig, error)
	Write(resource *RateLimitConfig, opts clients.WriteOpts) (*RateLimitConfig, error)
	Delete(namespace, name string, opts clients.DeleteOpts) error
	List(namespace string, opts clients.ListOpts) (RateLimitConfigList, error)
	RateLimitConfigWatcher
}

func NewRateLimitConfigClient

func NewRateLimitConfigClient(ctx context.Context, rcFactory factory.ResourceClientFactory) (RateLimitConfigClient, error)

func NewRateLimitConfigClientWithBase

func NewRateLimitConfigClientWithBase(rc clients.ResourceClient) RateLimitConfigClient

func NewRateLimitConfigClientWithToken

func NewRateLimitConfigClientWithToken(ctx context.Context, rcFactory factory.ResourceClientFactory, token string) (RateLimitConfigClient, error)

type RateLimitConfigList

type RateLimitConfigList []*RateLimitConfig

func (RateLimitConfigList) AsInputResources

func (list RateLimitConfigList) AsInputResources() resources.InputResourceList

func (RateLimitConfigList) AsInterfaces

func (list RateLimitConfigList) AsInterfaces() []interface{}

func (RateLimitConfigList) AsResources

func (list RateLimitConfigList) AsResources() resources.ResourceList

func (RateLimitConfigList) Clone

func (RateLimitConfigList) Each

func (list RateLimitConfigList) Each(f func(element *RateLimitConfig))

func (RateLimitConfigList) EachResource

func (list RateLimitConfigList) EachResource(f func(element resources.Resource))

func (RateLimitConfigList) Find

func (list RateLimitConfigList) Find(namespace, name string) (*RateLimitConfig, error)

func (RateLimitConfigList) Names

func (list RateLimitConfigList) Names() []string

func (RateLimitConfigList) NamespacesDotNames

func (list RateLimitConfigList) NamespacesDotNames() []string

func (RateLimitConfigList) Sort

type RateLimitConfigReconciler

type RateLimitConfigReconciler interface {
	Reconcile(namespace string, desiredResources RateLimitConfigList, transition TransitionRateLimitConfigFunc, opts clients.ListOpts) error
}

func NewRateLimitConfigReconciler

func NewRateLimitConfigReconciler(client RateLimitConfigClient) RateLimitConfigReconciler

type RateLimitConfigWatcher

type RateLimitConfigWatcher interface {
	// watch namespace-scoped ratelimitconfigs
	Watch(namespace string, opts clients.WatchOpts) (<-chan RateLimitConfigList, <-chan error, error)
}

type TransitionRateLimitConfigFunc

type TransitionRateLimitConfigFunc func(original, desired *RateLimitConfig) (bool, error)

Option to copy anything from the original to the desired before writing. Return value of false means don't update

Jump to

Keyboard shortcuts

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