credentialhelper

package
v0.0.0-...-92a1719 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialHelper

type CredentialHelper func(component string, uri string) (string, error)

CredentialHelper is a function type that can be used to fetch credential values The function takes 2 parameters:

* component (string) - The Credentials struct field name, either `username` or `password`

* uri (string) - The Credentials struct URI value which uniquely identifies the requested component

These parameters are passed into custom credential helpers as CLI arguments in the same order.

type Credentials

type Credentials struct {
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	URI      string `yaml:"uri"`
}

Credentials struct represents each individual entry in a valid credentials file. URI should be unique for every entry

type CredentialsFile

type CredentialsFile struct {
	Credentials []Credentials `yaml:"credentials"`
}

CredentialsFile struct represents credentials YAML files with a top level field called `credentials` which contains a list of Credentials struct values

Jump to

Keyboard shortcuts

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