qos_queue_weight

package
v0.0.0-...-1d19b33 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDataSource

func NewDataSource() datasource.DataSource

NewDataSource creates a new instance of the data source for a single queue.

func NewResource

func NewResource() resource.Resource

NewResource creates a new resource instance.

func NewWeightValidator

func NewWeightValidator() validator.String

NewWeightValidator returns an instance of the WeightValidator.

Types

type WeightValidator

type WeightValidator struct{}

WeightValidator ensures that weight is either "Strict priority" or a valid number between 1 and 15.

func (WeightValidator) Description

func (v WeightValidator) Description(context.Context) string

Description explains what the validator does in documentation.

func (WeightValidator) MarkdownDescription

func (v WeightValidator) MarkdownDescription(context.Context) string

MarkdownDescription provides the description in markdown style.

func (WeightValidator) ValidateString

ValidateString checks if the provided value is either "Strict priority" or between 1 and 15.

Jump to

Keyboard shortcuts

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