Documentation
¶
Index ¶
- Constants
- func Capture(command *cobra.Command)
- func CurrentApplication() (Id, Name, error)
- func CurrentEnvironment() (Id, Name, error)
- func CurrentOrganization() (Id, Name, error)
- func CurrentProject() (Id, Name, error)
- func DeleteFile(path string)
- func DeleteFolder(path string)
- func GenerateExportEnvVarsScript(vars []Var, clusterId string)
- func GetAccessTokenExpiration() (time.Time, error)
- func GetFullPath(clusterId string) string
- func InitializeQoveryContext() error
- func PrintlnContext() error
- func PrintlnError(err error)
- func PrintlnInfo(info string)
- func QoveryContextExists() bool
- func QoveryContextPath() (string, error)
- func QoveryDirExists() bool
- func QoveryDirPath() (string, error)
- func RefreshAccessToken() error
- func RefreshExpiredTokenSilently()
- func ResetApplicationContext() error
- func SelectApplication(environment Id) error
- func SelectEnvironment(project Id) error
- func SelectOrganization() error
- func SelectProject(organization Id) error
- func SetAccessToken(token AccessToken, expiration time.Time) error
- func SetApplication(name Name, id Id) error
- func SetEnvironment(name Name, id Id) error
- func SetOrganization(name Name, id Id) error
- func SetProject(name Name, id Id) error
- func SetRefreshToken(token RefreshToken) error
- func StoreContext(context QoveryContext) error
- func WriteInFile(clusterId string, fileName string, content []byte) string
- type AccessToken
- type Id
- type Name
- type QoveryContext
- type RefreshToken
- type TokensResponse
- type Var
Constants ¶
View Source
const ContextFileName = "context"
Variables ¶
This section is empty.
Functions ¶
func CurrentApplication ¶
func CurrentEnvironment ¶
func CurrentOrganization ¶
func CurrentProject ¶
func DeleteFile ¶
func DeleteFile(path string)
func DeleteFolder ¶
func DeleteFolder(path string)
func GetFullPath ¶
func InitializeQoveryContext ¶
func InitializeQoveryContext() error
func PrintlnContext ¶
func PrintlnContext() error
func PrintlnError ¶
func PrintlnError(err error)
func PrintlnInfo ¶
func PrintlnInfo(info string)
func QoveryContextExists ¶
func QoveryContextExists() bool
func QoveryContextPath ¶
func QoveryDirExists ¶
func QoveryDirExists() bool
func QoveryDirPath ¶
func RefreshAccessToken ¶
func RefreshAccessToken() error
func RefreshExpiredTokenSilently ¶
func RefreshExpiredTokenSilently()
func ResetApplicationContext ¶
func ResetApplicationContext() error
func SelectApplication ¶
func SelectEnvironment ¶
func SelectOrganization ¶
func SelectOrganization() error
func SelectProject ¶
func SetAccessToken ¶
func SetAccessToken(token AccessToken, expiration time.Time) error
func SetApplication ¶
func SetEnvironment ¶
func SetOrganization ¶
func SetProject ¶
func SetRefreshToken ¶
func SetRefreshToken(token RefreshToken) error
func StoreContext ¶
func StoreContext(context QoveryContext) error
Types ¶
type AccessToken ¶
type AccessToken string
func GetAccessToken ¶
func GetAccessToken() (AccessToken, error)
type QoveryContext ¶
type QoveryContext struct {
AccessToken AccessToken `json:"access_token"`
AccessTokenExpiration time.Time `json:"access_token_expiration"`
RefreshToken RefreshToken `json:"refresh_token"`
OrganizationId Id `json:"organization_id"`
OrganizationName Name `json:"organization_name"`
ProjectId Id `json:"project_id"`
ProjectName Name `json:"project_name"`
EnvironmentId Id `json:"environment_id"`
EnvironmentName Name `json:"environment_name"`
ApplicationId Id `json:"application_id"`
ApplicationName Name `json:"application_name"`
User Name `json:"user"`
}
func CurrentContext ¶
func CurrentContext() (QoveryContext, error)
func (QoveryContext) ToPosthogProperties ¶
func (c QoveryContext) ToPosthogProperties() map[string]interface{}
type RefreshToken ¶
type RefreshToken string
func GetRefreshToken ¶
func GetRefreshToken() (RefreshToken, error)
type TokensResponse ¶
Click to show internal directories.
Click to hide internal directories.