lekko

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientFromEnv

func NewClientFromEnv(ctx context.Context, ownerName, repoName string) (client.Client, error)

Initialize Lekko SDK from environment variables: LEKKO_SDK_MODE - possible values:

'cached' - periodically read configs from Lekko API, cache and evaluate in-memory
'git' - read configs from local git repo and watch for changes, cache and evaluate in-memory
'api' - send every evaluation to Lekko API

LEKKO_REPO_PATH - required in git mode, path where the config repo was clonned LEKKO_API_KEY - Lekko API key

If LEKKO_SDK_MODE is not set to any known value and LEKKO_API_KEY is set and LEKKO_REPO_PATH is not set then 'cached' mode will be used.

Types

type Client

type Client client.Client

Jump to

Keyboard shortcuts

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