launchdarkly

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_VARIATIONS_KIND = VARIATIONS_BOOLEAN_KIND
View Source
const NUMBER_OF_RETRY = 3
View Source
const VARIATIONS_BOOLEAN_KIND = "boolean"
View Source
const VARIATIONS_NUMBER_KIND = "number"
View Source
const VARIATIONS_STRING_KIND = "string"
View Source
const VARIATION_DESCRIPTION_KEY = "description"
View Source
const VARIATION_NAME_KEY = "name"
View Source
const VARIATION_VALUE_KEY = "value"

Variables

This section is empty.

Functions

func Provider

func Provider() *schema.Provider

Types

type Client

type Client struct {
	AccessToken string
}

func (*Client) Delete

func (c *Client) Delete(url string, expectedStatus []int) error

func (*Client) Get

func (c *Client) Get(url string, expectedStatus []int) (interface{}, error)

func (*Client) GetInto

func (c *Client) GetInto(url string, expectedStatus []int, target interface{}) error

func (*Client) GetStatus

func (c *Client) GetStatus(url string) (int, error)

func (*Client) Patch

func (c *Client) Patch(url string, body interface{}, expectedStatus []int, numberOfRetry int) ([]byte, error)

func (*Client) Post

func (c *Client) Post(url string, body interface{}, expectedStatus []int, target interface{}) error

type DefaultVariations added in v1.1.3

type DefaultVariations struct {
	Value       string `json:"value"`
	Environment string `json:"environment"`
}

type JsonCustomProperty

type JsonCustomProperty struct {
	Name  string   `json:"name"`
	Value []string `json:"value"`
}

type JsonEnvironment

type JsonEnvironment struct {
	Name      string `json:"name"`
	Key       string `json:"key"`
	Color     string `json:"color"`
	ApiKey    string `json:"apiKey"`
	MobileKey string `json:"mobileKey"`
}

type JsonFeatureFlag

type JsonFeatureFlag struct {
	Name             string                        `json:"name"`
	Key              string                        `json:"key"`
	Description      string                        `json:"description"`
	Temporary        bool                          `json:"temporary"`
	IncludeInSnippet bool                          `json:"includeInSnippet"`
	VariationsKind   string                        `json:"kind"`
	Variations       []JsonVariations              `json:"variations"`
	Tags             []string                      `json:"tags"`
	CustomProperties map[string]JsonCustomProperty `json:"customProperties"`
}

type JsonProject

type JsonProject struct {
	Name         string            `json:"name"`
	Key          string            `json:"key"`
	Environments []JsonEnvironment `json:"environments"`
}

type JsonVariations added in v1.1.0

type JsonVariations struct {
	Value       interface{} `json:"value"`
	Name        string      `json:"name"`
	Description string      `json:"description"`
}

Jump to

Keyboard shortcuts

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