Documentation ¶
Index ¶
- type Adapter
- func (d Adapter) ComponentInfo(command versionsCommon.DevfileCommand) (common.ComponentInfo, error)
- func (d Adapter) Delete(labels map[string]string, show bool) error
- func (d Adapter) DoesComponentExist(cmpName string) (bool, error)
- func (d Adapter) Exec(command []string) error
- func (d Adapter) ExecCMDInContainer(info common.ComponentInfo, cmd []string, stdOut io.Writer, stdErr io.Writer, ...) error
- func (d Adapter) Log(follow, debug bool) (io.ReadCloser, error)
- func (d Adapter) Logger() machineoutput.MachineEventLoggingClient
- func (d Adapter) Push(parameters common.PushParameters) error
- func (d Adapter) SupervisorComponentInfo(command versionsCommon.DevfileCommand) (common.ComponentInfo, error)
- func (d Adapter) Test(testCmd string, show bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter maps Devfiles to Docker resources and actions
func New ¶
func New(adapterContext common.AdapterContext, client lclient.Client) Adapter
New instantiates a Docker adapter
func (Adapter) ComponentInfo ¶ added in v1.2.6
func (d Adapter) ComponentInfo(command versionsCommon.DevfileCommand) (common.ComponentInfo, error)
func (Adapter) Delete ¶
Delete attempts to delete the component with the specified labels, returning an error if it fails
func (Adapter) DoesComponentExist ¶
DoesComponentExist returns true if a component with the specified name exists
func (Adapter) ExecCMDInContainer ¶ added in v1.2.6
func (Adapter) Log ¶ added in v1.2.4
func (d Adapter) Log(follow, debug bool) (io.ReadCloser, error)
Log show logs from component
func (Adapter) Logger ¶ added in v1.2.6
func (d Adapter) Logger() machineoutput.MachineEventLoggingClient
func (Adapter) Push ¶
func (d Adapter) Push(parameters common.PushParameters) error
Push creates Docker resources that correspond to the devfile if they don't already exist
func (Adapter) SupervisorComponentInfo ¶ added in v1.2.6
func (d Adapter) SupervisorComponentInfo(command versionsCommon.DevfileCommand) (common.ComponentInfo, error)
Click to show internal directories.
Click to hide internal directories.