quotagroups

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ValidRoles = map[string]bool{
		"primary": true,
		"standby": true,
	}
)

Functions

func InitContext

func InitContext(c context.Context)

func InitLogger

func InitLogger(logger *zap.SugaredLogger)

Types

type Config

type Config struct {
	Labels []string `yaml:"labels"`

	CatchAllQuotaGroup string `yaml:"catch_all_quota_group"`
	PatchPath          string `yaml:"patch_path"`

	TimeOut int64 `yaml:"time_out"`
	// contains filtered or unexported fields
}

func (Config) GetProjectLabel

func (c Config) GetProjectLabel(labels map[string]string) string

func (*Config) Initialize

func (c *Config) Initialize()

func (Config) PatchProjectQuotaGroups

func (c Config) PatchProjectQuotaGroups() error

Jump to

Keyboard shortcuts

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