Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNilGoogleCredentials = errors.New("google credentials cannot be nil") ErrNilTokenSource = errors.New("token source cannot be nil") ErrFailedToLoadGoogleCredentials = errors.New("failed to load google credentials") ErrFailedToCreateTokenSource = errors.New("failed to create token source") )
Functions ¶
func LoadGoogleCredentials ¶
func LoadGoogleCredentials(ctx context.Context) (*google.Credentials, error)
LoadGoogleCredentials loads the Google credentials
func LoadServiceAccountCredentials ¶
func LoadServiceAccountCredentials( ctx context.Context, url string, credentials *google.Credentials, ) (*oauth.TokenSource, error)
LoadServiceAccountCredentials loads the service account credentials
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is the logger for Google Cloud
func NewLogger ¶
func NewLogger(header string, modeLogger gologgermode.Logger) (*Logger, error)
NewLogger is the logger for Google Cloud
func (*Logger) FailedToLoadTokenSource ¶ added in v0.2.8
FailedToLoadTokenSource logs the failed to load token source
func (*Logger) LoadedTokenSource ¶
func (l *Logger) LoadedTokenSource(tokenSource *oauth.TokenSource)
LoadedTokenSource logs the loaded token source
Click to show internal directories.
Click to hide internal directories.