Documentation ¶
Index ¶
- Constants
- Variables
- func CheckFlagshipHomeDirectory() string
- func CreateConfigurationFile(configurationName, clientId, clientSecret, accountId, accountEnvId string)
- func EditConfigurationFile(...)
- func GetConfigurationsName() ([]string, error)
- func ReadConfiguration(configurationName string)
- func ReadCredentialsFromFile(configurationFile string)
- func SelectConfiguration(configurationName string)
- func SetOptionalsDefault(grantType, scope string, expiration int)
- func SetPathForConfigName(fileName string) string
- func SetViperMock()
- func Unset(key string) error
- func WriteToken(configurationName, token string)
- type Config
Constants ¶
View Source
const ( OutputFormat = "table" GrantType = "client_credentials" Expiration = 86400 Scope = "*" ClientID = "clientID" ClientSecret = "clientSecret" Token = "token" AccountID = "accountID" AccountEnvironmentID = "accountEnvironmentID" )
Variables ¶
View Source
var DefaultUserAgent = "flagship-cli/" + version.Version
Functions ¶
func CheckFlagshipHomeDirectory ¶ added in v1.0.2
func CheckFlagshipHomeDirectory() string
func CreateConfigurationFile ¶ added in v1.0.1
func CreateConfigurationFile(configurationName, clientId, clientSecret, accountId, accountEnvId string)
func EditConfigurationFile ¶ added in v1.0.1
func EditConfigurationFile(configurationName, newName, clientId, clientSecret, accountId, accountEnvId string)
func GetConfigurationsName ¶ added in v1.0.1
func ReadConfiguration ¶ added in v1.0.2
func ReadConfiguration(configurationName string)
func ReadCredentialsFromFile ¶ added in v1.0.1
func ReadCredentialsFromFile(configurationFile string)
func SelectConfiguration ¶ added in v1.0.1
func SelectConfiguration(configurationName string)
func SetOptionalsDefault ¶
func SetPathForConfigName ¶ added in v1.0.1
func SetViperMock ¶ added in v0.7.1
func SetViperMock()
func WriteToken ¶
func WriteToken(configurationName, token string)
Types ¶
Click to show internal directories.
Click to hide internal directories.