Documentation ¶
Overview ¶
Package credshelper implements functionality to authenticate using an external credentials helper.
Index ¶
Constants ¶
View Source
const ( // CredentialsHelper is using an externally provided binary to get credentials. CredentialsHelper = "CredentialsHelper" // CredshelperPathFlag is the path to the credentials helper binary. CredshelperPathFlag = "credentials_helper" // CredshelperArgsFlag is the flag used to pass in the arguments to the credentials helper binary. CredshelperArgsFlag = "credentials_helper_args" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Credentials struct {
// contains filtered or unexported fields
}
Credentials provides auth functionalities using an external credentials helper
func NewExternalCredentials ¶
func NewExternalCredentials(credshelper string, credshelperArgs []string) (*Credentials, error)
NewExternalCredentials creates credentials obtained from a credshelper.
func (*Credentials) PerRPCCreds ¶
func (c *Credentials) PerRPCCreds() credentials.PerRPCCredentials
PerRPCCreds returns a perRPCCredentials for this credentials instance.
func (*Credentials) TokenSource ¶
func (c *Credentials) TokenSource() *grpcOauth.TokenSource
TokenSource returns a token source for this credentials instance.
Click to show internal directories.
Click to hide internal directories.