Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthenticator ¶
func NewAuthenticator(config CommandDetails) grpc_credentials.PerRPCCredentials
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
}
Click to show internal directories.
Click to hide internal directories.