features

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package features provides TKG related feature enablement functionalities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetFeatureFlags() (map[string]string, error)
	IsFeatureFlagEnabled(string) (bool, error)
	WriteFeatureFlags(map[string]string) error
	GetFeatureFlag(string) (string, error)
}

Client defines methods to access feature flags

func New

func New(featureFlagsConfigFolder, featureFlagsConfigFile string) (Client, error)

New creates new features client, defaults config file path to ~/.tkg/features.yaml

Jump to

Keyboard shortcuts

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