Documentation ¶
Index ¶
- Variables
- func IsNotFound(err error) bool
- type AppConfigClientError
- type Client
- func (client *Client) DeleteFeature(label string, key string) (bool, error)
- func (client *Client) DeleteKeyValue(label string, key string) (bool, error)
- func (client *Client) GetFeature(label string, key string) (FeatureResponse, error)
- func (client *Client) GetKeyValue(label string, key string) (KeyValueResponse, error)
- func (client *Client) SetFeature(key string, label string, enabled bool, description string) (KeyValueResponse, error)
- func (client *Client) SetKeyValue(label string, key string, value string) (KeyValueResponse, error)
- func (client *Client) SetKeyValueSecret(key string, secretID string, label string) (KeyValueResponse, error)
- type FeatureResponse
- type KeyValueResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LabelNone = "%00" FeaturePrefix = ".appconfig.featureflag/" )
View Source
var ( // KVNotFoundError The given App Configuration key-value was not found KVNotFoundError = AppConfigClientError{Message: "KV not found"} // UnexpectedError An unexpected error has occurred UnexpectedError = AppConfigClientError{Message: "Unexpected error"} )
Functions ¶
func IsNotFound ¶ added in v1.1.1
Types ¶
type AppConfigClientError ¶
AppConfigClientError Main type for AppConfigClient errors
func (AppConfigClientError) Error ¶
func (err AppConfigClientError) Error() string
func (AppConfigClientError) Is ¶
func (err AppConfigClientError) Is(target error) bool
Is Wether the given error is an AppConfigClientError
func (AppConfigClientError) Unwrap ¶
func (err AppConfigClientError) Unwrap() error
type Client ¶ added in v1.0.0
func NewClient ¶ added in v1.0.0
func NewClient(endpoint string, authorizer autorest.Authorizer) (*Client, error)
func NewClientCli ¶ added in v1.0.0
func NewClientCreds ¶ added in v1.0.0
func NewClientMsi ¶ added in v1.0.0
func (*Client) DeleteFeature ¶ added in v1.1.0
func (*Client) DeleteKeyValue ¶ added in v1.0.0
func (*Client) GetFeature ¶ added in v1.1.0
func (client *Client) GetFeature(label string, key string) (FeatureResponse, error)
func (*Client) GetKeyValue ¶ added in v1.0.0
func (client *Client) GetKeyValue(label string, key string) (KeyValueResponse, error)
func (*Client) SetFeature ¶ added in v1.1.0
func (*Client) SetKeyValue ¶ added in v1.0.0
func (*Client) SetKeyValueSecret ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.