secrets

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCredentialsIncomplete = errors.New("E#1013: couldn't create a valid credential")

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	AccessKey   string
	SecretToken string
}

func ReadCredentialsFromDir

func ReadCredentialsFromDir(path string, c *buildConfig.Credentials) (*Credentials, error)

type KeyValue

type KeyValue struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

Argument represent a key/value pair that was passed in as an environment variable. In a linux system, it would be represented as a `KEY=Value` environment variable. The argument list is stored as a JSON payload, and those values needs to be extracted from it before it can be passed to buildkit.

func ReadKeyValueFromDir

func ReadKeyValueFromDir(ctx context.Context, path string) (collection []KeyValue, err error)

Jump to

Keyboard shortcuts

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