flagsets

package
v5.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sanitize

func Sanitize(flagSet string) (*string, []error)

Sanitize sanitizes flagset provided and returns the list of errors

func SanitizeMany

func SanitizeMany(sets []string) ([]string, []error)

SanitizeMany sanitizes flagsets provided and returns the list of errors

Types

type FeaturesBySet

type FeaturesBySet struct {
	// contains filtered or unexported fields
}

func Difference

func Difference(one FeaturesBySet, two FeaturesBySet) FeaturesBySet

func NewFeaturesBySet

func NewFeaturesBySet(featureFlags []dtos.SplitDTO) FeaturesBySet

func (*FeaturesBySet) Add

func (f *FeaturesBySet) Add(set string, flag string)

func (*FeaturesBySet) FlagsFromSet

func (f *FeaturesBySet) FlagsFromSet(set string) []string

func (*FeaturesBySet) IsFlagInSet

func (f *FeaturesBySet) IsFlagInSet(set string, flag string) bool

func (*FeaturesBySet) RemoveFlagFromSet

func (f *FeaturesBySet) RemoveFlagFromSet(set string, flag string)

func (*FeaturesBySet) Sets

func (f *FeaturesBySet) Sets() []string

type FlagSetFilter

type FlagSetFilter struct {
	// contains filtered or unexported fields
}

func NewFlagSetFilter

func NewFlagSetFilter(configFlagSets []string) FlagSetFilter

func (*FlagSetFilter) Instersect

func (f *FlagSetFilter) Instersect(flagSets []string) bool

func (*FlagSetFilter) IsPresent

func (f *FlagSetFilter) IsPresent(flagSet string) bool

Jump to

Keyboard shortcuts

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