Documentation ¶
Index ¶
- func NewRateLimitManager(store core_store.ResourceStore, validator RateLimitValidator) core_manager.ResourceManager
- type RateLimitValidator
- func (r *RateLimitValidator) ValidateCreate(ctx context.Context, mesh string, resource *core_mesh.RateLimitResource) error
- func (r *RateLimitValidator) ValidateDelete(ctx context.Context, name string) error
- func (r *RateLimitValidator) ValidateUpdate(ctx context.Context, previousRateLimit *core_mesh.RateLimitResource, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRateLimitManager ¶
func NewRateLimitManager( store core_store.ResourceStore, validator RateLimitValidator, ) core_manager.ResourceManager
Types ¶
type RateLimitValidator ¶
type RateLimitValidator struct {
Store store.ResourceStore
}
func (*RateLimitValidator) ValidateCreate ¶
func (r *RateLimitValidator) ValidateCreate(ctx context.Context, mesh string, resource *core_mesh.RateLimitResource) error
func (*RateLimitValidator) ValidateDelete ¶
func (r *RateLimitValidator) ValidateDelete(ctx context.Context, name string) error
func (*RateLimitValidator) ValidateUpdate ¶
func (r *RateLimitValidator) ValidateUpdate(ctx context.Context, previousRateLimit *core_mesh.RateLimitResource, newRateLimit *core_mesh.RateLimitResource) error
Click to show internal directories.
Click to hide internal directories.