Documentation ¶
Index ¶
- Variables
- func CreateVariables(cmd *cobra.Command, ignoreSecretVariable bool) (vars map[string]testkube.Variable, err error)
- func FindEnvID(envs []cloudclient.Environment, name string) string
- func FindOrgId(orgs []cloudclient.Organization, name string) string
- func GetClient(cmd *cobra.Command) (client.Client, string, error)
- func GetCurrentKubernetesContext() (string, error)
- func GetEnvNames(envs []cloudclient.Environment) []string
- func GetEnvironments(url, token, orgID string) ([]cloudclient.Environment, error)
- func GetOrgNames(orgs []cloudclient.Organization) []string
- func GetOrganizations(url, token string) ([]cloudclient.Organization, error)
- func HelmUpgradeOrInstalTestkube(options HelmOptions) error
- func HelmUpgradeOrInstallTestkubeCloud(options HelmOptions, cfg config.Data, isMigration bool) error
- func IsUserLoggedIn(cfg config.Data, options HelmOptions) bool
- func KubectlScaleDeployment(namespace, deployment string, replicas int) (string, error)
- func LoginUser(authUri string) (string, string, error)
- func NewDataFromFlags(cmd *cobra.Command) (data *string, err error)
- func NewMasterUris(apiPrefix, uiPrefix, agentPrefix, agentURI, rootDomain string, insecure bool) config.MasterURIs
- func NewRepositoryFromFlags(cmd *cobra.Command) (repository *testkube.Repository, err error)
- func NewRepositoryUpdateFromFlags(cmd *cobra.Command) (repository *testkube.RepositoryUpdate, err error)
- func PopulateAgentDataToContext(options HelmOptions, cfg config.Data) error
- func PopulateCloudConfig(cfg config.Data, apiKey string, opts *HelmOptions) config.Data
- func PopulateHelmFlags(cmd *cobra.Command, options *HelmOptions)
- func PopulateLoginDataToContext(orgID, envID, token, refreshToken string, options HelmOptions, cfg config.Data) error
- func PopulateMasterFlags(cmd *cobra.Command, opts *HelmOptions)
- func PopulateOrgAndEnvNames(cfg config.Data, orgId, envId, apiUrl string) (config.Data, error)
- func ProcessMasterFlags(cmd *cobra.Command, opts *HelmOptions, cfg *config.Data)
- func RunMigrations(cmd *cobra.Command) (hasMigrations bool, err error)
- func UIPrintCRD(tmpl crd.Template, object any, firstEntry *bool)
- func UiCloudContextValidationError(err error)
- func UiContextHeader(cmd *cobra.Command, cfg config.Data)
- func UiGetEnvironmentID(url, token, orgID string) (string, string, error)
- func UiGetOrganizationId(url, token string) (string, string, error)
- func UiPrintContext(cfg config.Data)
- func UpdateTokens(cfg config.Data, token, refreshToken string) error
- func ValidateUpsertOptions(cmd *cobra.Command, sourceName string) error
- type Environment
- type HelmOptions
- type Organization
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Commit string Version string BuiltBy string Date string )
Functions ¶
func CreateVariables ¶ added in v1.1.10
func FindEnvID ¶ added in v1.16.20
func FindEnvID(envs []cloudclient.Environment, name string) string
func FindOrgId ¶ added in v1.16.20
func FindOrgId(orgs []cloudclient.Organization, name string) string
func GetCurrentKubernetesContext ¶ added in v1.11.25
func GetEnvNames ¶ added in v1.16.20
func GetEnvNames(envs []cloudclient.Environment) []string
func GetEnvironments ¶ added in v1.16.20
func GetEnvironments(url, token, orgID string) ([]cloudclient.Environment, error)
func GetOrgNames ¶ added in v1.16.20
func GetOrgNames(orgs []cloudclient.Organization) []string
func GetOrganizations ¶ added in v1.16.20
func GetOrganizations(url, token string) ([]cloudclient.Organization, error)
func HelmUpgradeOrInstalTestkube ¶ added in v1.11.25
func HelmUpgradeOrInstalTestkube(options HelmOptions) error
func HelmUpgradeOrInstallTestkubeCloud ¶ added in v1.11.25
func HelmUpgradeOrInstallTestkubeCloud(options HelmOptions, cfg config.Data, isMigration bool) error
func IsUserLoggedIn ¶ added in v1.13.0
func IsUserLoggedIn(cfg config.Data, options HelmOptions) bool
func KubectlScaleDeployment ¶ added in v1.11.25
func NewDataFromFlags ¶ added in v1.7.29
NewDataFromFlags read input data from stdin or '--file' parameter
func NewMasterUris ¶ added in v1.16.17
func NewMasterUris(apiPrefix, uiPrefix, agentPrefix, agentURI, rootDomain string, insecure bool) config.MasterURIs
func NewRepositoryFromFlags ¶ added in v1.7.29
func NewRepositoryFromFlags(cmd *cobra.Command) (repository *testkube.Repository, err error)
NewRepositoryFromFlags creates repository from command flags
func NewRepositoryUpdateFromFlags ¶ added in v1.7.29
func NewRepositoryUpdateFromFlags(cmd *cobra.Command) (repository *testkube.RepositoryUpdate, err error)
NewRepositoryUpdateFromFlags creates repository update from command flags
func PopulateAgentDataToContext ¶ added in v1.11.25
func PopulateAgentDataToContext(options HelmOptions, cfg config.Data) error
func PopulateCloudConfig ¶ added in v1.12.7
func PopulateHelmFlags ¶ added in v1.11.25
func PopulateHelmFlags(cmd *cobra.Command, options *HelmOptions)
func PopulateLoginDataToContext ¶ added in v1.12.7
func PopulateLoginDataToContext(orgID, envID, token, refreshToken string, options HelmOptions, cfg config.Data) error
func PopulateMasterFlags ¶ added in v1.16.17
func PopulateMasterFlags(cmd *cobra.Command, opts *HelmOptions)
func PopulateOrgAndEnvNames ¶ added in v1.12.7
func ProcessMasterFlags ¶ added in v1.16.17
func ProcessMasterFlags(cmd *cobra.Command, opts *HelmOptions, cfg *config.Data)
func RunMigrations ¶ added in v1.11.25
func UIPrintCRD ¶ added in v1.2.39
UIPrintCRD prints crd to ui
func UiCloudContextValidationError ¶ added in v1.12.7
func UiCloudContextValidationError(err error)
func UiGetEnvironmentID ¶ added in v1.16.20
func UiGetOrganizationId ¶ added in v1.16.20
func UiPrintContext ¶ added in v1.9.23
func UpdateTokens ¶ added in v1.13.0
Types ¶
type Environment ¶ added in v1.16.20
type HelmOptions ¶ added in v1.11.25
type HelmOptions struct {
Name, Namespace, Chart, Values string
NoDashboard, NoMinio, NoMongo, NoConfirm bool
MinioReplicas, MongoReplicas, DashboardReplicas int
Master config.Master
// For debug
DryRun bool
MultiNamespace bool
NoOperator bool
}
func (HelmOptions) GetApiURI ¶ added in v1.16.17
func (o HelmOptions) GetApiURI() string
type Organization ¶ added in v1.16.20
Source Files ¶
Click to show internal directories.
Click to hide internal directories.