providers

package
v0.70.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package providers defines the interface for a provider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	Name CredentialsName
	Envs map[string]string
}

type CredentialsName

type CredentialsName string
const (
	AWSCredentials CredentialsName = "AWS"
)

type Provider

type Provider interface {
	// Name returns the name of the provider.
	Name() string
	// GetCredentials returns a set of credentials.
	GetCredentials(ctx context.Context) (*Credentials, error)
}

Directories

Path Synopsis
Package amazonsts provides a credentials provider that obtains credentials by making API requests to Amazon STS.
Package amazonsts provides a credentials provider that obtains credentials by making API requests to Amazon STS.
Package externalcmd provides a provider that runs an external command that returns a json string with credentials.
Package externalcmd provides a provider that runs an external command that returns a json string with credentials.

Jump to

Keyboard shortcuts

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