package
Version:
v1.17.1
Opens a new window with list of versions in this module.
Published: Jan 13, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Constraint struct {
Type string `yaml:"type,omitempty"`
Property string `yaml:"property,omitempty"`
Operator string `yaml:"operator,omitempty"`
Value string `yaml:"value,omitempty"`
}
type Distribution struct {
VariantKey string `yaml:"variant,omitempty"`
Rollout float32 `yaml:"rollout,omitempty"`
}
type Document struct {
Flags []*Flag `yaml:"flags,omitempty"`
Segments []*Segment `yaml:"segments,omitempty"`
}
func NewExporter(store lister) *Exporter
type Flag struct {
Key string `yaml:"key,omitempty"`
Name string `yaml:"name,omitempty"`
Description string `yaml:"description,omitempty"`
Enabled bool `yaml:"enabled"`
Variants []*Variant `yaml:"variants,omitempty"`
Rules []*Rule `yaml:"rules,omitempty"`
}
func NewImporter(store creator) *Importer
type Rule struct {
SegmentKey string `yaml:"segment,omitempty"`
Rank uint `yaml:"rank,omitempty"`
Distributions []*Distribution `yaml:"distributions,omitempty"`
}
type Segment struct {
Key string `yaml:"key,omitempty"`
Name string `yaml:"name,omitempty"`
Description string `yaml:"description,omitempty"`
Constraints []*Constraint `yaml:"constraints,omitempty"`
MatchType string `yaml:"match_type,omitempty"`
}
type Variant struct {
Key string `yaml:"key,omitempty"`
Name string `yaml:"name,omitempty"`
Description string `yaml:"description,omitempty"`
Attachment interface{} `yaml:"attachment,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.