Versions in this module Expand all Collapse all v1 v1.2.6 Aug 31, 2020 Changes in this version + const Application + const ApplicationDescription + const CPU + const CPUDescription + const DebugPort + const DebugPortDescription + const DefaultDebugPort + const Ignore + const IgnoreDescription + const MaxCPU + const MaxCPUDescription + const MaxMemory + const MaxMemoryDescription + const Memory + const MemoryDescription + const MinCPU + const MinCPUDescription + const MinMemory + const MinMemoryDescription + const Name + const NameDescription + const Ports + const PortsDescription + const Project + const ProjectDescription + const Ref + const RefDescription + const SourceLocation + const SourceLocationDescription + const SourceType + const SourceTypeDescription + const Storage + const StorageDescription + const Type + const TypeDescription + const URL + const URLDescription + func AsLocallySupportedParameter(param string) (string, bool) + func FormatLocallySupportedParameters() (result string) + func GetLocallySupportedParameters() []string + type ComponentSettings struct + Application *string + DebugPort *int + Envs EnvVarList + Ignore *bool + MaxCPU *string + MaxMemory *string + MinCPU *string + MinMemory *string + Name *string + Ports *[]string + Project *string + Ref *string + SourceLocation *string + SourceType *SrcType + Storage *[]ComponentStorageSettings + Type *string + URL *[]ConfigURL + type ComponentStorageSettings struct + Name string + Path string + Size string + type ConfigURL struct + Name string + Port int + Secure bool + type EnvVar struct + Name string + Value string + func NewEnvVarFromString(envStr string) (EnvVar, error) + type EnvVarList []EnvVar + func NewEnvVarListFromDevfileEnv(envList []common.Env) EnvVarList + func NewEnvVarListFromSlice(envList []string) (EnvVarList, error) + func RemoveEnvVarsFromList(envVarList EnvVarList, keys []string) (EnvVarList, error) + func (evl EnvVarList) Merge(other EnvVarList) EnvVarList + func (evl EnvVarList) ToDevfileEnv() []common.Env + func (evl EnvVarList) ToStringSlice() []string + type LocalConfig struct + func NewLocalConfig() LocalConfig + func (lc *LocalConfig) GetApplication() string + func (lc *LocalConfig) GetDebugPort() int + func (lc *LocalConfig) GetEnvs() EnvVarList + func (lc *LocalConfig) GetIgnore() bool + func (lc *LocalConfig) GetMaxCPU() string + func (lc *LocalConfig) GetMaxMemory() string + func (lc *LocalConfig) GetMinCPU() string + func (lc *LocalConfig) GetMinMemory() string + func (lc *LocalConfig) GetName() string + func (lc *LocalConfig) GetPorts() []string + func (lc *LocalConfig) GetProject() string + func (lc *LocalConfig) GetRef() string + func (lc *LocalConfig) GetSourceLocation() string + func (lc *LocalConfig) GetSourceType() SrcType + func (lc *LocalConfig) GetStorage() []ComponentStorageSettings + func (lc *LocalConfig) GetType() string + func (lc *LocalConfig) GetURL() []ConfigURL + type LocalConfigInfo struct + Filename string + func GetOneExistingConfigInfo(componentName, applicationName, projectName string) LocalConfigInfo + func GetOneExistingConfigInfoStorage(...) LocalConfigInfo + func GetOneGitExistingConfigInfo(componentName, applicationName, projectName string) LocalConfigInfo + func GetOneNonExistingConfigInfo() LocalConfigInfo + func New() (*LocalConfigInfo, error) + func NewLocalConfigInfo(cfgDir string) (*LocalConfigInfo, error) + func (lci *LocalConfigInfo) ConfigFileExists() bool + func (lci *LocalConfigInfo) DeleteConfigDirIfEmpty() error + func (lci *LocalConfigInfo) DeleteConfigFile() error + func (lci *LocalConfigInfo) DeleteConfiguration(parameter string) error + func (lci *LocalConfigInfo) DeleteFromConfigurationList(parameter string, value string) error + func (lci *LocalConfigInfo) DeleteURL(parameter string) error + func (lci *LocalConfigInfo) GetComponentSettings() ComponentSettings + func (lci *LocalConfigInfo) GetEnvVars() EnvVarList + func (lci *LocalConfigInfo) GetMountPath(storageName string) string + func (lci *LocalConfigInfo) GetOSSourcePath() (path string, err error) + func (lci *LocalConfigInfo) IsSet(parameter string) bool + func (lci *LocalConfigInfo) SetComponentSettings(cs ComponentSettings) error + func (lci *LocalConfigInfo) SetConfiguration(parameter string, value interface{}) (err error) + func (lci *LocalConfigInfo) SetEnvVars(envVars EnvVarList) error + func (lci *LocalConfigInfo) StorageCreate(name, size, path string) (ComponentStorageSettings, error) + func (lci *LocalConfigInfo) StorageDelete(name string) error + func (lci *LocalConfigInfo) StorageExists(storageName string) bool + func (lci *LocalConfigInfo) StorageList() ([]ComponentStorageSettings, error) + func (lci *LocalConfigInfo) ValidateStorage(storageName, storagePath string) error + type SrcType string + const BINARY + const GIT + const LOCAL + const NONE + func GetSrcType(ctStr string) (SrcType, error)