launchdarkly

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: MPL-2.0 Imports: 20 Imported by: 3

Documentation

Index

Constants

View Source
const (
	BOOL_CLAUSE_VALUE   = "boolean"
	STRING_CLAUSE_VALUE = "string"
	NUMBER_CLAUSE_VALUE = "number"
)
View Source
const (
	MAX_409_RETRIES = 5
	MAX_429_RETRIES = 20
)
View Source
const (
	// keys used in terraform files referencing keys in launchdarkly resource objects.
	// The name of each constant is the same as its value.
	PROJECT_KEY              = "project_key"
	ENV_KEY                  = "env_key"
	KEY                      = "key"
	FLAG_ID                  = "flag_id"
	NAME                     = "name"
	TAGS                     = "tags"
	ENVIRONMENTS             = "environments"
	API_KEY                  = "api_key"
	MOBILE_KEY               = "mobile_key"
	CLIENT_SIDE_ID           = "client_side_id"
	COLOR                    = "color"
	DEFAULT_TTL              = "default_ttl"
	SECURE_MODE              = "secure_mode"
	DEFAULT_TRACK_EVENTS     = "default_track_events"
	REQUIRE_COMMENTS         = "require_comments"
	CONFIRM_CHANGES          = "confirm_changes"
	DESCRIPTION              = "description"
	MAINTAINER_ID            = "maintainer_id"
	VARIATION_TYPE           = "variation_type"
	VARIATIONS               = "variations"
	TEMPORARY                = "temporary"
	INCLUDE_IN_SNIPPET       = "include_in_snippet"
	VALUE                    = "value"
	URL                      = "url"
	SECRET                   = "secret"
	ENABLED                  = "enabled"
	ON                       = "on"
	RESOURCES                = "resources"
	NOT_RESOURCES            = "not_resources"
	ACTIONS                  = "actions"
	NOT_ACTIONS              = "not_actions"
	EFFECT                   = "effect"
	POLICY                   = "policy"
	STATEMENTS               = "statements"
	POLICY_STATEMENTS        = "policy_statements"
	INLINE_ROLES             = "inline_roles"
	EXCLUDED                 = "excluded"
	INCLUDED                 = "included"
	CREATION_DATE            = "creation_date"
	CUSTOM_PROPERTIES        = "custom_properties"
	EMAIL                    = "email"
	FIRST_NAME               = "first_name"
	LAST_NAME                = "last_name"
	ROLE                     = "role"
	CUSTOM_ROLES             = "custom_roles"
	RULES                    = "rules"
	ATTRIBUTE                = "attribute"
	OP                       = "op"
	VALUES                   = "values"
	VALUE_TYPE               = "value_type"
	NEGATE                   = "negate"
	CLAUSES                  = "clauses"
	WEIGHT                   = "weight"
	BUCKET_BY                = "bucket_by"
	ROLLOUT_WEIGHTS          = "rollout_weights"
	VARIATION                = "variation"
	USER_TARGETS             = "user_targets" // deprecated
	TARGETS                  = "targets"
	PREREQUISITES            = "prerequisites"
	FLAG_KEY                 = "flag_key"
	TARGETING_ENABLED        = "targeting_enabled"
	TRACK_EVENTS             = "track_events"
	OFF_VARIATION            = "off_variation"
	FLAG_FALLTHROUGH         = "flag_fallthrough" // deprecated
	FALLTHROUGH              = "fallthrough"
	KIND                     = "kind"
	CONFIG                   = "config"
	DEFAULT_ON_VARIATION     = "default_on_variation"
	DEFAULT_OFF_VARIATION    = "default_off_variation"
	SERVICE_TOKEN            = "service_token"
	DEFAULT_API_VERSION      = "default_api_version"
	TOKEN                    = "token"
	EXPIRE                   = "expire"
	ID                       = "id"
	CLIENT_SIDE_AVAILABILITY = "client_side_availability"
)
View Source
const (
	LAUNCHDARKLY_ACCESS_TOKEN = "LAUNCHDARKLY_ACCESS_TOKEN"
	LAUNCHDARKLY_API_HOST     = "LAUNCHDARKLY_API_HOST"
	LAUNCHDARKLY_OAUTH_TOKEN  = "LAUNCHDARKLY_OAUTH_TOKEN"
)

Environment Variables

View Source
const (
	BOOL_VARIATION   = "boolean"
	STRING_VARIATION = "string"
	NUMBER_VARIATION = "number"
	JSON_VARIATION   = "json"
)
View Source
const (
	APIVersion = "20191212"
)
View Source
const CUSTOM_PROPERTY_CHAR_LIMIT = 64

https://docs.launchdarkly.com/docs/custom-properties

View Source
const CUSTOM_PROPERTY_ITEM_LIMIT = 64

Variables

View Source
var (
	KINESIS_CONVERSION = map[string]interface{}{
		"region":      "region",
		"role_arn":    "roleArn",
		"stream_name": "streamName",
	}
	MPARTICLE_CONVERSION = map[string]interface{}{
		"api_key":       "apiKey",
		"secret":        "secret",
		"user_identity": "userIdentity",
		"environment":   "environment",
	}
	SEGMENT_CONVERSION = map[string]interface{}{
		"write_key": "writeKey",
	}
	GOOGLE_PUBSUB_CONVERSION = map[string]interface{}{
		"project": "project",
		"topic":   "topic",
	}
	AZURE_EVENT_HUBS_CONVERSION = map[string]interface{}{
		"namespace":   "namespace",
		"name":        "name",
		"policy_name": "policyName",
		"policy_key":  "policyKey",
	}
	CONFIG_CONVERSIONS = map[string]map[string]interface{}{
		"kinesis":          KINESIS_CONVERSION,
		"mparticle":        MPARTICLE_CONVERSION,
		"segment":          SEGMENT_CONVERSION,
		"google-pubsub":    GOOGLE_PUBSUB_CONVERSION,
		"azure-event-hubs": AZURE_EVENT_HUBS_CONVERSION,
	}
)

Functions

func Provider

func Provider() terraform.ResourceProvider

Provider returns a terraform.ResourceProvider.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is used by the provider to access the ld API.

Jump to

Keyboard shortcuts

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