Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeatureList ¶
type FeatureList struct {
// contains filtered or unexported fields
}
func NewFeatureListFromConfigMap ¶
func NewFeatureListFromConfigMap(ctx context.Context, clientset kubernetes.Interface, namespace string) (*FeatureList, error)
NewFeatureListFromConfigMap creates a new feature flag list from the 'feautre-flags' configmap in the provided namespace Feature configuration must be stored in the features key in the configmap
func (*FeatureList) FeatureIsEnabled ¶
func (l *FeatureList) FeatureIsEnabled(name string) bool
func (*FeatureList) GetFeature ¶
func (l *FeatureList) GetFeature(name string) feature.FeatureFlag
GetFeature returns a named feature flag
func (*FeatureList) NotifyChange ¶
func (l *FeatureList) NotifyChange() <-chan struct{}
func (*FeatureList) WatchConfigMap ¶
func (l *FeatureList) WatchConfigMap() context.CancelFunc
Update and notify will create a watch on the configmap and return a notfiy channel that gets written to when the configmap is updated
Click to show internal directories.
Click to hide internal directories.