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" // CredsFileFlag is the flag used to pass in the path of the file where credentials should be cached. CredsFileFlag = "creds_file" )
Variables ¶
This section is empty.
Functions ¶
func TimeFromProto ¶
TimeFromProto converts a valid Timestamp proto into a time.Time.
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, credsFile string) (*Credentials, error)
NewExternalCredentials creates credentials obtained from a credshelper.
func (*Credentials) RemoveFromDisk ¶
func (c *Credentials) RemoveFromDisk()
RemoveFromDisk deletes the credentials cache on disk.
func (*Credentials) SaveToDisk ¶
func (c *Credentials) SaveToDisk()
SaveToDisk saves credentials to disk.
Click to show internal directories.
Click to hide internal directories.