Documentation
¶
Index ¶
- Constants
- Variables
- func AddEnvironmentVariable(application Id, key string, value string) error
- func AddSecret(application Id, key string, value string) error
- func Capture(command *cobra.Command)
- func CheckAdminUrl()
- func CreateAlias(client *qovery.APIClient, projectId string, environmentId string, ...) error
- func CreateEnvironmentVariable(client *qovery.APIClient, projectId string, environmentId string, ...) error
- func CreateEnvironmentVariableAlias(client *qovery.APIClient, projectId string, environmentId string, ...) error
- func CreateEnvironmentVariableOverride(client *qovery.APIClient, projectId string, environmentId string, ...) error
- func CreateOverride(client *qovery.APIClient, projectId string, environmentId string, ...) error
- func CreateSecret(client *qovery.APIClient, projectId string, environmentId string, ...) error
- func CreateSecretAlias(client *qovery.APIClient, projectId string, environmentId string, ...) error
- func CreateSecretOverride(client *qovery.APIClient, projectId string, environmentId string, ...) error
- func CurrentEnvironment() (Id, Name, error)
- func CurrentOrganization() (Id, Name, error)
- func CurrentProject() (Id, Name, error)
- func DeleteByKey(client *qovery.APIClient, projectId string, environmentId string, ...) error
- func DeleteEnvironmentVariable(application Id, key string) error
- func DeleteEnvironmentVariableByKey(client *qovery.APIClient, projectId string, environmentId string, ...) error
- func DeleteFile(path string)
- func DeleteFolder(path string)
- func DeleteSecret(application Id, key string) error
- func DeleteSecretByKey(client *qovery.APIClient, projectId string, environmentId string, ...) error
- func DryRunPrint(dryRunDisabled bool)
- func FindByApplicationName(applications []qovery.Application, name string) *qovery.Application
- func FindByContainerName(containers []qovery.ContainerResponse, name string) *qovery.ContainerResponse
- func FindByDatabaseName(databases []qovery.Database, name string) *qovery.Database
- func FindByEnvironmentName(environments []qovery.Environment, name string) *qovery.Environment
- func FindByJobName(jobs []qovery.JobResponse, name string) *qovery.JobResponse
- func FindByOrganizationName(organizations []qovery.Organization, name string) *qovery.Organization
- func FindByProjectName(projects []qovery.Project, name string) *qovery.Project
- func FindEnvironmentVariableByKey(key string, envVars []qovery.EnvironmentVariable) *qovery.EnvironmentVariable
- func FindSecretByKey(key string, secrets []qovery.Secret) *qovery.Secret
- func GenerateExportEnvVarsScript(vars []Var, clusterId string)
- func GetAccessToken() (AccessTokenType, AccessToken, error)
- func GetAccessTokenExpiration() (time.Time, error)
- func GetAuthorizationHeaderValue(tokenType AccessTokenType, token AccessToken) string
- func GetDeploymentStageId(client *qovery.APIClient, serviceId string) string
- func GetFullPath(clusterId string) string
- func GetQoveryClient(tokenType AccessTokenType, token AccessToken) *qovery.APIClient
- func GetServiceNameByIdAndType(client *qovery.APIClient, serviceId string, serviceType string) string
- func GetStatus(statuses []qovery.Status, serviceId string) string
- func GetStatusTextWithColor(s qovery.Status) string
- func InitializeQoveryContext() error
- func IsEnvironmentInATerminalState(envId string, client *qovery.APIClient) bool
- func ListEnvironmentVariables(client *qovery.APIClient, serviceId string, serviceType ServiceType) ([]qovery.EnvironmentVariable, error)
- func ListSecrets(client *qovery.APIClient, serviceId string, serviceType ServiceType) ([]qovery.Secret, error)
- func PrintTable(headers []string, data [][]string) error
- func Println(text string)
- 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 SetAccessToken(token AccessToken, expiration time.Time) error
- func SetEnvironment(env *Environment) error
- func SetOrganization(orga *Organization) error
- func SetProject(project *Project) error
- func SetRefreshToken(token RefreshToken) error
- func SetService(service *Service) error
- func StoreContext(context QoveryContext) error
- func Validate(actionType string) bool
- func WatchApplication(applicationId string, envId string, client *qovery.APIClient)
- func WatchContainer(containerId string, envId string, client *qovery.APIClient)
- func WatchDatabase(databaseId string, envId string, client *qovery.APIClient)
- func WatchEnvironment(envId string, finalServiceState qovery.StateEnum, client *qovery.APIClient)
- func WatchEnvironmentWithOptions(envId string, finalServiceState qovery.StateEnum, client *qovery.APIClient, ...)
- func WatchJob(jobId string, envId string, client *qovery.APIClient)
- func WriteInFile(clusterId string, fileName string, content []byte) string
- type AccessToken
- type AccessTokenType
- type Application
- type Container
- type EnvVarLineOutput
- type EnvVarLines
- type Environment
- type EnvironmentService
- type Id
- type Job
- type Name
- type Organization
- type Project
- type QoveryContext
- type RefreshToken
- type Service
- type ServiceType
- type Status
- type TokenInformation
- type TokensResponse
- type Var
Constants ¶
View Source
const AdminUrl = "https://api-admin.qovery.com"
View Source
const ContextFileName = "context"
Variables ¶
View Source
var Alias string
View Source
var ApplicationScope string
View Source
var ContainerScope string
View Source
var IsSecret bool
View Source
var JobScope string
View Source
var Key string
View Source
var PrettyPrint bool
View Source
var ShowValues bool
View Source
var Value string
Functions ¶
func AddEnvironmentVariable ¶ added in v0.40.0
func CheckAdminUrl ¶ added in v0.40.0
func CheckAdminUrl()
func CreateAlias ¶ added in v0.51.0
func CreateEnvironmentVariable ¶ added in v0.51.0
func CreateEnvironmentVariableAlias ¶ added in v0.51.0
func CreateEnvironmentVariableOverride ¶ added in v0.51.0
func CreateOverride ¶ added in v0.51.0
func CreateSecret ¶ added in v0.51.0
func CreateSecretAlias ¶ added in v0.51.0
func CreateSecretOverride ¶ added in v0.51.0
func CurrentEnvironment ¶
func CurrentOrganization ¶
func CurrentProject ¶
func DeleteByKey ¶ added in v0.51.0
func DeleteEnvironmentVariable ¶ added in v0.40.0
func DeleteEnvironmentVariableByKey ¶ added in v0.51.0
func DeleteFile ¶
func DeleteFile(path string)
func DeleteFolder ¶
func DeleteFolder(path string)
func DeleteSecret ¶ added in v0.40.0
func DeleteSecretByKey ¶ added in v0.51.0
func DryRunPrint ¶ added in v0.40.0
func DryRunPrint(dryRunDisabled bool)
func FindByApplicationName ¶ added in v0.47.0
func FindByApplicationName(applications []qovery.Application, name string) *qovery.Application
func FindByContainerName ¶ added in v0.47.0
func FindByContainerName(containers []qovery.ContainerResponse, name string) *qovery.ContainerResponse
func FindByDatabaseName ¶ added in v0.47.0
func FindByEnvironmentName ¶ added in v0.47.0
func FindByEnvironmentName(environments []qovery.Environment, name string) *qovery.Environment
func FindByJobName ¶ added in v0.47.0
func FindByJobName(jobs []qovery.JobResponse, name string) *qovery.JobResponse
func FindByOrganizationName ¶ added in v0.47.0
func FindByOrganizationName(organizations []qovery.Organization, name string) *qovery.Organization
func FindByProjectName ¶ added in v0.47.0
func FindEnvironmentVariableByKey ¶ added in v0.51.0
func FindEnvironmentVariableByKey(key string, envVars []qovery.EnvironmentVariable) *qovery.EnvironmentVariable
func FindSecretByKey ¶ added in v0.51.0
func GetAccessToken ¶
func GetAccessToken() (AccessTokenType, AccessToken, error)
func GetAuthorizationHeaderValue ¶ added in v0.47.0
func GetAuthorizationHeaderValue(tokenType AccessTokenType, token AccessToken) string
func GetDeploymentStageId ¶ added in v0.50.2
func GetFullPath ¶
func GetQoveryClient ¶ added in v0.47.0
func GetQoveryClient(tokenType AccessTokenType, token AccessToken) *qovery.APIClient
func GetServiceNameByIdAndType ¶ added in v0.49.0
func GetStatusTextWithColor ¶ added in v0.47.0
func InitializeQoveryContext ¶
func InitializeQoveryContext() error
func IsEnvironmentInATerminalState ¶ added in v0.47.1
func ListEnvironmentVariables ¶ added in v0.51.0
func ListEnvironmentVariables( client *qovery.APIClient, serviceId string, serviceType ServiceType, ) ([]qovery.EnvironmentVariable, error)
func ListSecrets ¶ added in v0.51.0
func PrintTable ¶ added in v0.47.0
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 SetAccessToken ¶
func SetAccessToken(token AccessToken, expiration time.Time) error
func SetEnvironment ¶
func SetEnvironment(env *Environment) error
func SetOrganization ¶
func SetOrganization(orga *Organization) error
func SetProject ¶
func SetRefreshToken ¶
func SetRefreshToken(token RefreshToken) error
func SetService ¶ added in v0.45.0
func StoreContext ¶
func StoreContext(context QoveryContext) error
func WatchApplication ¶ added in v0.47.0
func WatchContainer ¶ added in v0.47.0
func WatchDatabase ¶ added in v0.47.0
func WatchEnvironment ¶ added in v0.47.0
func WatchEnvironmentWithOptions ¶ added in v0.47.1
Types ¶
type AccessToken ¶
type AccessToken string
type AccessTokenType ¶ added in v0.47.0
type AccessTokenType string
type Application ¶ added in v0.40.0
func GetApplicationById ¶ added in v0.41.6
func GetApplicationById(id string) (*Application, error)
type Container ¶ added in v0.45.0
func GetContainerById ¶ added in v0.45.0
type EnvVarLineOutput ¶ added in v0.51.0
type EnvVarLineOutput struct {
Key string
Value *string
UpdatedAt *time.Time
Service *string
Scope string
IsSecret bool
AliasParentKey *string
OverrideParentKey *string
}
func FromEnvironmentVariableToEnvVarLineOutput ¶ added in v0.51.0
func FromEnvironmentVariableToEnvVarLineOutput(envVar qovery.EnvironmentVariable) EnvVarLineOutput
func FromSecretToEnvVarLineOutput ¶ added in v0.51.0
func FromSecretToEnvVarLineOutput(secret qovery.Secret) EnvVarLineOutput
func (EnvVarLineOutput) Data ¶ added in v0.51.0
func (e EnvVarLineOutput) Data(showValues bool) []string
type EnvVarLines ¶ added in v0.51.0
type EnvVarLines struct {
// contains filtered or unexported fields
}
func NewEnvVarLines ¶ added in v0.51.0
func NewEnvVarLines() EnvVarLines
func (EnvVarLines) Add ¶ added in v0.51.0
func (e EnvVarLines) Add(env EnvVarLineOutput)
func (EnvVarLines) Header ¶ added in v0.51.0
func (e EnvVarLines) Header(prettyPrint bool) []string
type Environment ¶ added in v0.40.0
func GetEnvironmentById ¶ added in v0.41.6
func GetEnvironmentById(id string) (*Environment, error)
func SelectAndSetEnvironment ¶ added in v0.40.0
func SelectAndSetEnvironment(projectID Id) (*Environment, error)
func SelectEnvironment ¶
func SelectEnvironment(projectID Id) (*Environment, error)
type EnvironmentService ¶ added in v0.48.5
type EnvironmentService struct {
ID string
Type ServiceType
}
func GetEnvironmentServicesById ¶ added in v0.48.5
func GetEnvironmentServicesById(id string) ([]EnvironmentService, error)
type Job ¶ added in v0.48.5
func GetJobById ¶ added in v0.48.5
type Organization ¶ added in v0.40.0
func GetOrganizationById ¶ added in v0.41.6
func GetOrganizationById(id string) (*Organization, error)
func SelectAndSetOrganization ¶ added in v0.40.0
func SelectAndSetOrganization() (*Organization, error)
func SelectOrganization ¶
func SelectOrganization() (*Organization, error)
type Project ¶ added in v0.40.0
func GetProjectById ¶ added in v0.41.6
func SelectAndSetProject ¶ added in v0.40.0
func SelectProject ¶
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"`
ServiceId Id `json:"service_id"`
ServiceName Name `json:"service_name"`
ServiceType ServiceType `json:"service_type"`
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 Service ¶ added in v0.45.0
type Service struct {
ID Id
Name Name
Type ServiceType
}
func CurrentService ¶ added in v0.45.0
func SelectAndSetService ¶ added in v0.45.0
func SelectService ¶ added in v0.45.0
type ServiceType ¶ added in v0.45.0
type ServiceType string
const ( ApplicationType ServiceType = "application" ContainerType ServiceType = "container" DatabaseType ServiceType = "database" JobType ServiceType = "job" )
type TokenInformation ¶ added in v0.41.1
type TokenInformation struct {
Organization *Organization
Name string
Description string
}
func SelectTokenInformation ¶ added in v0.41.1
func SelectTokenInformation() (*TokenInformation, error)
type TokensResponse ¶
Click to show internal directories.
Click to hide internal directories.