cachev3

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache[T cacheT] interface {
	Set(T)
	SetList([]T)

	Delete(T)
	DeleteList([]T)
	Clean()

	// 以Get开头的方法都具有Clone特性,对外部修改不可见。
	GetData(...T) (map[string]T, error)
	GetByName(string) (T, error)
	GetList(...T) ([]T, error)
	GetResources(...T) ([]types.Resource, error)

	// 当不传递参数时等效于克隆自身
	Clone(...T) (Cache[T], error)

	PrintNames()
}

func NewCache

func NewCache[T cacheT]() Cache[T]

type Cluster

type Cluster struct{ *clusterv3.Cluster }

// Rate Limit service RateLimitConfigType = APITypePrefix + "ratelimit.config.ratelimit.v3.RateLimitConfig"

func (*Cluster) DeepCopy

func (c *Cluster) DeepCopy() any

func (*Cluster) GetResource

func (c *Cluster) GetResource() types.Resource

func (*Cluster) GetType

func (c *Cluster) GetType() resourcev3.Type

type Endpoint

type Endpoint struct {
	*endpointv3.ClusterLoadAssignment
}

// Rate Limit service RateLimitConfigType = APITypePrefix + "ratelimit.config.ratelimit.v3.RateLimitConfig"

func (*Endpoint) DeepCopy

func (e *Endpoint) DeepCopy() any

func (*Endpoint) GetResource

func (e *Endpoint) GetResource() types.Resource

func (*Endpoint) GetType

func (e *Endpoint) GetType() resourcev3.Type

type ExtensionConfig

type ExtensionConfig struct{ *corev3.TypedExtensionConfig }

// Rate Limit service RateLimitConfigType = APITypePrefix + "ratelimit.config.ratelimit.v3.RateLimitConfig"

func (*ExtensionConfig) DeepCopy

func (ec *ExtensionConfig) DeepCopy() any

func (*ExtensionConfig) GetResource

func (ec *ExtensionConfig) GetResource() types.Resource

func (*ExtensionConfig) GetType

func (ec *ExtensionConfig) GetType() resourcev3.Type

type Listener

type Listener struct{ *listenerv3.Listener }

// Rate Limit service RateLimitConfigType = APITypePrefix + "ratelimit.config.ratelimit.v3.RateLimitConfig"

func (*Listener) DeepCopy

func (l *Listener) DeepCopy() any

func (*Listener) GetResource

func (l *Listener) GetResource() types.Resource

func (*Listener) GetType

func (l *Listener) GetType() resourcev3.Type

type RateLimitConfig added in v0.0.2

type RateLimitConfig struct{ *ratelimitv3.RateLimitConfig }

// Rate Limit service RateLimitConfigType = APITypePrefix + "ratelimit.config.ratelimit.v3.RateLimitConfig"

func (*RateLimitConfig) DeepCopy added in v0.0.2

func (r *RateLimitConfig) DeepCopy() any

func (*RateLimitConfig) GetResource added in v0.0.2

func (r *RateLimitConfig) GetResource() types.Resource

func (*RateLimitConfig) GetType added in v0.0.2

func (r *RateLimitConfig) GetType() resourcev3.Type

type Route

type Route struct{ *routev3.RouteConfiguration }

// Rate Limit service RateLimitConfigType = APITypePrefix + "ratelimit.config.ratelimit.v3.RateLimitConfig"

func (*Route) DeepCopy

func (r *Route) DeepCopy() any

func (*Route) GetResource

func (r *Route) GetResource() types.Resource

func (*Route) GetType

func (r *Route) GetType() resourcev3.Type

type Runtime

type Runtime struct{ *runtimev3.Runtime }

// Rate Limit service RateLimitConfigType = APITypePrefix + "ratelimit.config.ratelimit.v3.RateLimitConfig"

func (*Runtime) DeepCopy

func (r *Runtime) DeepCopy() any

func (*Runtime) GetResource

func (r *Runtime) GetResource() types.Resource

func (*Runtime) GetType

func (r *Runtime) GetType() resourcev3.Type

type ScopedRoute

type ScopedRoute struct {
	*routev3.ScopedRouteConfiguration
}

// Rate Limit service RateLimitConfigType = APITypePrefix + "ratelimit.config.ratelimit.v3.RateLimitConfig"

func (*ScopedRoute) DeepCopy

func (sr *ScopedRoute) DeepCopy() any

func (*ScopedRoute) GetResource

func (sr *ScopedRoute) GetResource() types.Resource

func (*ScopedRoute) GetType

func (sr *ScopedRoute) GetType() resourcev3.Type

type Secret

type Secret struct{ *tlsv3.Secret }

// Rate Limit service RateLimitConfigType = APITypePrefix + "ratelimit.config.ratelimit.v3.RateLimitConfig"

func (*Secret) DeepCopy

func (s *Secret) DeepCopy() any

func (*Secret) GetResource

func (s *Secret) GetResource() types.Resource

func (*Secret) GetType

func (s *Secret) GetType() resourcev3.Type

type ThriftRoute added in v0.0.2

type ThriftRoute struct{ *tproutev3.Router }

// Rate Limit service RateLimitConfigType = APITypePrefix + "ratelimit.config.ratelimit.v3.RateLimitConfig"

func (*ThriftRoute) DeepCopy added in v0.0.2

func (r *ThriftRoute) DeepCopy() any

func (*ThriftRoute) GetResource added in v0.0.2

func (r *ThriftRoute) GetResource() types.Resource

func (*ThriftRoute) GetType added in v0.0.2

func (r *ThriftRoute) GetType() resourcev3.Type

type VirtualHost

type VirtualHost struct{ *routev3.VirtualHost }

// Rate Limit service RateLimitConfigType = APITypePrefix + "ratelimit.config.ratelimit.v3.RateLimitConfig"

func (*VirtualHost) DeepCopy

func (vh *VirtualHost) DeepCopy() any

func (*VirtualHost) GetResource

func (vh *VirtualHost) GetResource() types.Resource

func (*VirtualHost) GetType

func (vh *VirtualHost) GetType() resourcev3.Type

Jump to

Keyboard shortcuts

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