exec

package
v0.3.76-rc-3411e77 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Authenticator

type Authenticator struct {
	// Set by the config
	Cmd  string
	Args []string
	Env  []string
	// contains filtered or unexported fields
}

Authenticator wraps an external command + environment that can be used to generate an access token.

func (*Authenticator) GetRequestMetadata

func (a *Authenticator) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)

func (*Authenticator) RequireTransportSecurity

func (a *Authenticator) RequireTransportSecurity() bool

type CommandDetails

type CommandDetails struct {
	Cmd         string
	Args        []string
	Env         []EnvVar
	Interactive bool
}

type EnvVar

type EnvVar struct {
	Name  string
	Value string
}

EnvVar is used for setting environment variables when executing an exec-based auth command

Jump to

Keyboard shortcuts

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