doppler

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package doppler provides a Doppler provider for loading and writing secrets through the Doppler REST API.

Index

Constants

View Source
const Name = "doppler"

Name of the provider.

Variables

This section is empty.

Functions

func New

func New(override, rawValue bool, config *Config) (provider.IProvider, error)

New creates a Doppler provider.

Project and Config are optional for Doppler service tokens, which carry their own project and config scope. Other token types require both fields.

Types

type Config

type Config struct {
	Token   string `json:"-"       validate:"required"`
	Project string `json:"project" validate:"omitempty,gte=1"`
	Config  string `json:"config"  validate:"omitempty,gte=1"`
}

Config contains Doppler authentication and configuration settings.

type Doppler

type Doppler struct {
	*provider.Provider `json:"-" validate:"required"`

	Configuration *Config `json:"-" validate:"required"`
	// contains filtered or unexported fields
}

Doppler provider definition.

func (*Doppler) Load

func (d *Doppler) Load(ctx context.Context, opts ...option.LoadKeyFunc) (map[string]string, error)

Load retrieves secrets from Doppler and exports them to the environment.

func (*Doppler) Write

func (d *Doppler) Write(ctx context.Context, values map[string]interface{}, opts ...option.WriteFunc) error

Write stores secrets in Doppler.

Jump to

Keyboard shortcuts

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