Versions in this module Expand all Collapse all v1 v1.2.6 Aug 31, 2020 Changes in this version + const BinBash + const DefaultDevfileBuildCommand + const DefaultDevfileDebugCommand + const DefaultDevfileInitCommand + const DefaultDevfileRunCommand + const DefaultVolumeSize + const EnvDebugPort + const EnvOdoCommandDebug + const EnvOdoCommandDebugWorkingDir + const EnvOdoCommandRun + const EnvOdoCommandRunWorkingDir + const EnvProjectsRoot + const OdoInitImageContents + const PostStart + const PostStop + const PreStart + const PreStop + const ShellExecutable + const SupervisordBinaryPath + const SupervisordConfFile + const SupervisordControlCommand + const SupervisordCtlSubCommand + const SupervisordInitContainerName + const SupervisordMountPath + const SupervisordVolumeName + func CreateConsoleOutputWriterAndChannel() (*io.PipeWriter, chan []string) + func ExecuteCommand(client ExecClient, compInfo ComponentInfo, command []string, show bool, ...) (err error) + func GetBootstrapperImage() string + func GetBuildCommand(data data.DevfileData, devfileBuildCmd string) (buildCommand common.DevfileCommand, err error) + func GetComponentEnvVar(env string, envs []common.Env) string + func GetDebugCommand(data data.DevfileData, devfileDebugCmd string) (debugCommand common.DevfileCommand, err error) + func GetDevfileContainerComponents(data data.DevfileData) []common.DevfileComponent + func GetDevfileVolumeComponents(data data.DevfileData) map[string]common.DevfileComponent + func GetInitCommand(data data.DevfileData, devfileInitCmd string) (initCommand common.DevfileCommand, err error) + func GetRunCommand(data data.DevfileData, devfileRunCmd string) (runCommand common.DevfileCommand, err error) + func GetTestCommand(data data.DevfileData, devfileTestCmd string) (runCommand common.DevfileCommand, err error) + func GetVolumes(devfileObj devfileParser.DevfileObj) map[string][]DevfileVolume + func IsEnvPresent(envVars []common.Env, envVarName string) bool + func IsPortPresent(endpoints []common.Endpoint, port int) bool + func IsRestartRequired(hotReload bool, runModeChanged bool) bool + func New(devfile common.DevfileCommand, knowCommands map[string]common.DevfileCommand, ...) (command, error) + func ValidateAndGetDebugDevfileCommands(data data.DevfileData, devfileDebugCmd string) (pushDebugCommand common.DevfileCommand, err error) + func ValidateAndGetTestDevfileCommands(data data.DevfileData, devfileTestCmd string) (testCommand common.DevfileCommand, err error) + func ValidateCommand(data data.DevfileData, command common.DevfileCommand) (err error) + type AdapterContext struct + AppName string + ComponentName string + Context string + Devfile devfileParser.DevfileObj + type CommandNames struct + AdapterName string + DefaultName string + type ComponentAdapter interface + Delete func(labels map[string]string, show bool) error + DoesComponentExist func(cmpName string) (bool, error) + Exec func(command []string) error + Log func(follow, debug bool) (io.ReadCloser, error) + Push func(parameters PushParameters) error + Test func(testCmd string, show bool) error + type ComponentInfo struct + ContainerName string + PodName string + SourceMount string + func (ci ComponentInfo) IsEmpty() bool + type ComponentInfoFactory func(command common.DevfileCommand) (ComponentInfo, error) + type DevfileEventType string + type DevfileVolume struct + ContainerPath string + Name string + Size string + type ExecClient interface + ExecCMDInContainer func(ComponentInfo, []string, io.Writer, io.Writer, io.Reader, bool) error + type GenericAdapter struct + func NewGenericAdapter(client ExecClient, context AdapterContext) *GenericAdapter + func (a *GenericAdapter) InitWith(executor commandExecutor) + func (a GenericAdapter) ComponentInfo(command common.DevfileCommand) (ComponentInfo, error) + func (a GenericAdapter) ExecCMDInContainer(info ComponentInfo, cmd []string, stdOut io.Writer, stdErr io.Writer, ...) error + func (a GenericAdapter) ExecDevfile(commandsMap PushCommandsMap, componentExists bool, params PushParameters) (err error) + func (a GenericAdapter) ExecDevfileEvent(events []string, eventType DevfileEventType, show bool) error + func (a GenericAdapter) ExecuteCommand(compInfo ComponentInfo, command []string, show bool, ...) (err error) + func (a GenericAdapter) ExecuteDevfileCommand(command common.DevfileCommand, show bool) error + func (a GenericAdapter) Logger() machineoutput.MachineEventLoggingClient + func (a GenericAdapter) SupervisorComponentInfo(command common.DevfileCommand) (ComponentInfo, error) + type PredefinedDevfileCommands string + type PushCommandsMap map[common.DevfileCommandGroupType]common.DevfileCommand + func NewPushCommandMap() PushCommandsMap + func ValidateAndGetPushDevfileCommands(data data.DevfileData, devfileInitCmd, devfileBuildCmd, devfileRunCmd string) (commandMap PushCommandsMap, err error) + type PushParameters struct + Debug bool + DebugPort int + DevfileBuildCmd string + DevfileDebugCmd string + DevfileInitCmd string + DevfileRunCmd string + DevfileScanIndexForWatch bool + EnvSpecificInfo envinfo.EnvSpecificInfo + ForceBuild bool + IgnoredFiles []string + Path string + RunModeChanged bool + Show bool + WatchDeletedFiles []string + WatchFiles []string + type Storage struct + Name string + Volume DevfileVolume + type StorageAdapter interface + Create func([]Storage) error + type SyncParameters struct + CompInfo ComponentInfo + ComponentExists bool + PodChanged bool + PushParams PushParameters Incompatible versions in this module v2.0.0-alpha-2+incompatible Aug 13, 2020