Documentation ¶
Index ¶
- type AuthMechanism
- type Client
- func (c *Client) CreateFeatureFlag(feature Feature) error
- func (c *Client) DeleteFeatureFlag(name string) error
- func (c *Client) FeatureFlagByName(featureName string) (*Feature, error)
- func (c *Client) ListFeatureFlags() ([]Feature, error)
- func (c *Client) UpdateFeatureFlag(name string, feature Feature) error
- type Constraint
- type Feature
- type FeatureResponse
- type Operator
- type ParameterDescription
- type ParameterMap
- type Response
- type Strategy
- type StrategyDescription
- type StrategyResponse
- type UnsecureAuthentication
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthMechanism ¶
type AuthMechanism interface {
// contains filtered or unexported methods
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(baseUrl string, userAgent string, authMechanism AuthMechanism) (*Client, error)
TODO: Validate baseUrl?
func (*Client) CreateFeatureFlag ¶
func (*Client) DeleteFeatureFlag ¶
func (*Client) FeatureFlagByName ¶
func (*Client) ListFeatureFlags ¶
type Constraint ¶
type Constraint struct { ContextName string `json:"contextName"` Operator Operator `json:"operator"` Values []string `json:"values"` }
Constraint represents a constraint on a particular context value.
type FeatureResponse ¶
func (FeatureResponse) FeatureMap ¶
func (fr FeatureResponse) FeatureMap() map[string]interface{}
type ParameterDescription ¶
type ParameterMap ¶
type ParameterMap map[string]interface{}
type Strategy ¶
type Strategy struct { Id int `json:"id"` Name string `json:"name"` Constraints []Constraint `json:"constraints"` Parameters ParameterMap `json:"parameters"` }
type StrategyDescription ¶
type StrategyDescription struct { Name string `json:"name"` Description string `json:"description"` Parameters []ParameterDescription `json:"parameters"` }
type StrategyResponse ¶
type StrategyResponse struct { Response Strategies []StrategyDescription `json:"strategies"` }
type UnsecureAuthentication ¶
Click to show internal directories.
Click to hide internal directories.