launchdarkly

package
v0.0.0-...-c7f0c11 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_409_RETRIES = 5
	MAX_429_RETRIES = 10
)
View Source
const (
	//APIVersion = "20191212"
	APIVersion = "beta"
)
View Source
const (
	LDApiKey = "LD_API_KEY"
)

Variables

View Source
var (
	Version   string
	GitCommit string
)

Functions

func Backend

func Backend(c *logical.BackendConfig) *backend

Backend creates a new backend.

func CreateCodeRefsToken

func CreateCodeRefsToken(config *launchdarklyConfig, project string) (*ldapi.Token, error)

CreateCodeRefsToken uses launchdarkly API to create an API token

func CreateRelayToken

func CreateRelayToken(config *launchdarklyConfig, name string, policy ldapi.Policy) (*ldapi.RelayProxyConfig, error)

CreatelaunchdarklyToken uses LaunchDarkly API to create a Relay Auto Config token

func CreateRoleToken

func CreateRoleToken(config *launchdarklyConfig, role string, name string) (*ldapi.Token, error)

CreatelaunchdarklyToken uses launchdarkly API to create an API token

func DeleteAccessToken

func DeleteAccessToken(config *launchdarklyConfig, name string, tokenId string) error

DeleteRelayToken uses the LaunchDarkly API to delete a Relay Auto Congfig token

func DeleteRelayToken

func DeleteRelayToken(config *launchdarklyConfig, name string, tokenId string) error

DeleteRelayToken uses the LaunchDarkly API to delete a Relay Auto Congfig token

func Factory

Factory creates a new usable instance of this secrets engine.

func GenericLDKeyWithAtRegex

func GenericLDKeyWithAtRegex(name string) string

func ResetCodeRefsToken

func ResetCodeRefsToken(config *launchdarklyConfig, id string) (*ldapi.Token, error)

ResetCodeRefsToken uses launchdarkly API to create an API token

Types

type Client

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

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

type RoleName

type RoleName struct {
	Name string
}

type TokenKey

type TokenKey struct {
	Name string
}

Jump to

Keyboard shortcuts

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