Versions in this module Expand all Collapse all v0 v0.46.3 Aug 30, 2022 Changes in this version + const AdminUrl + const ContextFileName + 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 CurrentEnvironment() (Id, Name, error) + func CurrentOrganization() (Id, Name, error) + func CurrentProject() (Id, Name, error) + func DeleteEnvironmentVariable(application Id, key string) error + func DeleteFile(path string) + func DeleteFolder(path string) + func DeleteSecret(application Id, key string) error + func DryRunPrint(dryRunDisbled bool) + func GenerateExportEnvVarsScript(vars []Var, clusterId string) + func GetAccessTokenExpiration() (time.Time, error) + func GetFullPath(clusterId string) string + func InitializeKubeworkzContext() error + func KubeworkzContextExists() bool + func KubeworkzContextPath() (string, error) + func KubeworkzDirExists() bool + func KubeworkzDirPath() (string, error) + func Println(text string) + func PrintlnContext() error + func PrintlnError(err error) + func PrintlnInfo(info string) + 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 KubeworkzContext) error + func Validate(actionType string) bool + func WriteInFile(clusterId string, fileName string, content []byte) string + type AccessToken string + func GetAccessToken() (AccessToken, error) + type Application struct + ID Id + Name Name + func GetApplicationById(id string) (*Application, error) + type Container struct + ID Id + Name Name + func GetContainerById(id string) (*Container, error) + type Environment struct + ClusterID Id + ID Id + Name Name + func GetEnvironmentById(id string) (*Environment, error) + func SelectAndSetEnvironment(projectID Id) (*Environment, error) + func SelectEnvironment(projectID Id) (*Environment, error) + type Id string + type KubeworkzContext struct + AccessToken AccessToken + AccessTokenExpiration time.Time + EnvironmentId Id + EnvironmentName Name + OrganizationId Id + OrganizationName Name + ProjectId Id + ProjectName Name + RefreshToken RefreshToken + ServiceId Id + ServiceName Name + ServiceType ServiceType + User Name + func CurrentContext() (KubeworkzContext, error) + func (c KubeworkzContext) ToPosthogProperties() map[string]interface{} + type Name string + type Organization struct + ID Id + Name Name + func GetOrganizationById(id string) (*Organization, error) + func SelectAndSetOrganization() (*Organization, error) + func SelectOrganization() (*Organization, error) + type Project struct + ID Id + Name Name + func GetProjectById(id string) (*Project, error) + func SelectAndSetProject(organizationID Id) (*Project, error) + func SelectProject(organizationID Id) (*Project, error) + type RefreshToken string + func GetRefreshToken() (RefreshToken, error) + type Service struct + ID Id + Name Name + Type ServiceType + func CurrentService() (*Service, error) + func SelectAndSetService(environment Id) (*Service, error) + func SelectService(environment Id) (*Service, error) + type ServiceType string + const ApplicationType + const ContainerType + type TokenInformation struct + Description string + Name string + Organization *Organization + func SelectTokenInformation() (*TokenInformation, error) + type TokensResponse struct + AccessToken string + RefreshToken string + type Var struct + Key string + Value string