package
0.0.0-20240401075343-3de72e395564
Repository: https://github.com/distbuild/reclient.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
LoadCredsFromDisk loads credentials helper creds from disk.
MechanismFromFlags returns an auth Mechanism based on flags currently set.
NewCredentials initializes a credentials object.
NewExternalCredentials creates credentials obtained from a credshelper.
TimeFromProto converts a valid Timestamp proto into a time.Time.
TimeToProto converts a valid time.Time into a proto Timestamp.
# Constants
ADC is GCP's application default credentials authentication mechanism.
CredentialFile is using service account credentials from a proviced file.
CredentialFileFlag indicates the user authenticate with a credential file.
CredentialsHelper is using an externally provided binary to get credentials.
CredshelperArgsFlag is the flag used to pass in the arguments to the credentials helper binary.
CredshelperPathFlag is the path to the credentials helper binary.
ExitCodeAppDefCredsAuth is the exit code when there is a failure to authenticate with ADC.
ExitCodeCredsFileAuth is the exit code when there is a failure to authenticate using a credentials file.
ExitCodeExternalTokenAuth is the exit code when there is a failure to authenticate with an external token.
ExitCodeGCECredsAuth is the exit code when there is a failure in GCE credentials.
ExitCodeNoAuth is the exit code when no auth option is specified.
ExitCodeUnknown is the exit code when there is an unknown auth issue.
GCE is authentication using GCE VM service accounts.
None implies that the user will not use authentication.
ServiceNoAuthFlag indicates the user will not use authentication.
Unknown is an unknown auth mechanism.
UseAppDefaultCredsFlag is used to authenticate with application default credentials.
UseExternalTokenFlag indicates the user will authenticate with a provided token.
UseGCECredsFlag indicates the user will authenticate with GCE VM credentials.
# Structs
Credentials provides auth functionalities with a specific auth mechanism.
CredsHelperOut is the struct to record the json output from the credshelper.
Error is an error occured during authenticating or initializing credentials.
# Type aliases
Mechanism is a mechanism of authentication to the remote execution service.