resourcegroup

package
v1.1.0-beta.0...-56c07d0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MaxGroupNameLength = 32

MaxGroupNameLength is max length of the name of a resource group

Variables

View Source
var (
	// ErrInvalidGroupSettings is from group.go.
	ErrInvalidGroupSettings = errors.New("invalid group settings")
	// ErrTooLongResourceGroupName is from group.go.
	ErrTooLongResourceGroupName = errors.New("resource group name too long")
	// ErrInvalidResourceGroupFormat is from group.go.
	ErrInvalidResourceGroupFormat = errors.New("group settings with invalid format")
	// ErrInvalidResourceGroupDuplicatedMode is from group.go.
	ErrInvalidResourceGroupDuplicatedMode = errors.New("cannot set RU mode and Raw mode options at the same time")
	// ErrUnknownResourceGroupMode is from group.go.
	ErrUnknownResourceGroupMode = errors.New("unknown resource group mode")
	// ErrDroppingInternalResourceGroup is from group.go
	ErrDroppingInternalResourceGroup = errors.New("can't drop reserved resource group")
	// ErrResourceGroupRunawayRuleIsEmpty is from group.go.
	ErrResourceGroupRunawayRuleIsEmpty = errors.New("please set at least one field(exec_elapsed_time_ms, processed_keys, ru)")
	// ErrUnknownResourceGroupRunawayAction is from group.go.
	ErrUnknownResourceGroupRunawayAction = errors.New("unknown resource group runaway action")
	// ErrUnknownResourceGroupRunawaySwitchGroupName is from group.go.
	ErrUnknownResourceGroupRunawaySwitchGroupName = errors.New("unknown resource group runaway switch group name")
)

Functions

func NewGroupFromOptions

func NewGroupFromOptions(groupName string, options *model.ResourceGroupSettings) (*rmpb.ResourceGroup, error)

NewGroupFromOptions creates a new resource group from the given options.

Types

This section is empty.

Jump to

Keyboard shortcuts

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