Documentation
¶
Index ¶
- Constants
- func ConvertResourceName(name string) string
- func NewEmptyOperatorErr(op []string) error
- func NewInconvertibleOperatorCombinationErr(op1, op2 string) error
- func NewInconvertibleValueErr(msg string) error
- func NewInvalidOperatorErr(msg string) error
- func NewUnsupportedIntervalCombinationErr(op []string) error
- func NewUnsupportedResourceNameErr(name string) error
- func ValidateResourceName(name string) error
- type Criteria
- type Interval
- type Objective
- type Operator
- type SLI
- type SLIConverter
- type SLO
- type SLOConverter
- type Score
Constants ¶
View Source
const K8sResourceNameRegexp = "^[a-z0-9]([-a-z0-9.]*[a-z0-9])?$"
View Source
const MaxInt = math.MaxInt
View Source
const MaxResourceNameLength = 253
View Source
const MinInt = -MaxInt - 1
Variables ¶
This section is empty.
Functions ¶
func ConvertResourceName ¶
func NewEmptyOperatorErr ¶
func NewInvalidOperatorErr ¶
func ValidateResourceName ¶
Types ¶
type Criteria ¶
type Criteria struct {
Operators []string `yaml:"criteria,omitempty" json:"criteria,omitempty"`
}
type Objective ¶
type Objective struct { Name string `yaml:"sli" json:"sli"` KeySLI bool `yaml:"key_sli,omitempty" json:"key_sli,omitempty"` Weight int `yaml:"weight,omitempty" json:"weight,omitempty"` Warning []Criteria `yaml:"warning,omitempty" json:"warning,omitempty"` Pass []Criteria `yaml:"pass,omitempty" json:"pass,omitempty"` }
type SLIConverter ¶
type SLIConverter struct { }
func NewSLIConverter ¶
func NewSLIConverter() *SLIConverter
type SLOConverter ¶
type SLOConverter struct { }
func NewSLOConverter ¶
func NewSLOConverter() *SLOConverter
Click to show internal directories.
Click to hide internal directories.