Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvFormat = "env" JSONFormat = "json" PropertiesFormat = "properties" SecretFormat = "secret" JavaPropertiesFormat = "java-kafka-properties" )
Variables ¶
This section is empty.
Functions ¶
func ChooseFileLocation ¶
ChooseFileLocation starts an interactive prompt to get the path to the credentials file a while loop will be entered as it can take multiple attempts to find a suitable location if the file already exists
func GetDefaultPath ¶
GetDefaultPath returns the default absolute path for the credentials file
Types ¶
type Credentials ¶
type Credentials struct { ClientID string `json:"client_id,omitempty"` ClientSecret string `json:"client_secret,omitempty"` TokenURL string `json:"oauth_token_url,omitempty"` }
Credentials is a type which represents the credentials for a service account
Click to show internal directories.
Click to hide internal directories.