launchdarkly

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: Apache-2.0 Imports: 19 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 DeleteRelayToken

func DeleteRelayToken(config *launchdarklyConfig, tokenId string) error

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

func DeleteRoleToken added in v0.2.0

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

func Factory

Factory creates a new usable instance of this secrets engine.

func GenericLDKeyWithAtRegex

func GenericLDKeyWithAtRegex(name string) string

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