config

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package config provides a client for the Doppler API's configs endpoints.

API-Docs: https://docs.doppler.com/reference/config-object

Example:

// Fetch a list of configs for a project.
configs, _, err := config.List(context.Background(), &doppler.ConfigListOptions{
	Project: "my-project",
})
if err != nil {
	log.Fatal(err)
}

// Print the configs
for _, config := range configs {
	fmt.Printf("Config: %s", config.Name)
}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

Clone clones a config using the default client.

func Create

Create creates a new config using the default client.

func Delete

Delete deletes an existing config using the default client.

func Get

Get returns a config and its respective info using the default client.

func List

List returns a list of configs using the default client.

func Lock

Lock locks a config using the default client.

func Unlock

Unlock unlocks a config using the default client.

func Update

Update updates an existing config using the default client.

Types

type Client

type Client struct {
	Backend doppler.Backend
	Key     string
}

Client is the client used to invoke /v3/configs APIs.

func Default

func Default() *Client

Default returns a new client based on the SDK's default backend and API key.

func (Client) Clone

Clone clones a config.

func (Client) Create

Create creates a new config.

func (Client) Delete

Delete deletes an existing config.

func (Client) Get

Get returns a config and its respective info.

func (Client) List

List returns a list of configs.

func (Client) Lock

Lock locks a config.

func (Client) Unlock

Unlock unlocks a config.

func (Client) Update

Update updates an existing config.

Jump to

Keyboard shortcuts

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