exec

package
v0.3.79-rc-f128481 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 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