Documentation ¶
Index ¶
- type Adapter
- func (k Adapter) ComponentInfo(command versionsCommon.DevfileCommand) (common.ComponentInfo, error)
- func (k Adapter) Delete(labels map[string]string, show bool) error
- func (k Adapter) DoesComponentExist(cmpName string) (bool, error)
- func (k Adapter) Exec(command []string) error
- func (k Adapter) ExecCMDInContainer(info common.ComponentInfo, cmd []string, stdOut io.Writer, stdErr io.Writer, ...) error
- func (k Adapter) Log(follow, debug bool) (io.ReadCloser, error)
- func (k Adapter) Logger() machineoutput.MachineEventLoggingClient
- func (k Adapter) Push(parameters common.PushParameters) error
- func (k Adapter) SupervisorComponentInfo(command versionsCommon.DevfileCommand) (common.ComponentInfo, error)
- func (k Adapter) Test(testCmd string, show bool) error
- type KubernetesContext
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 Kubernetes resources and actions
func New ¶
func New(adapterContext common.AdapterContext, client kclient.Client) Adapter
New instantiates a kubernetes adapter
func (Adapter) ComponentInfo ¶ added in v1.2.6
func (k Adapter) ComponentInfo(command versionsCommon.DevfileCommand) (common.ComponentInfo, error)
func (Adapter) Delete ¶ added in v1.1.2
Delete deletes the Kubernetes resources that correspond to the devfile
func (Adapter) DoesComponentExist ¶ added in v1.1.2
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 (k Adapter) Log(follow, debug bool) (io.ReadCloser, error)
Log shows log from component
func (Adapter) Logger ¶ added in v1.2.6
func (k Adapter) Logger() machineoutput.MachineEventLoggingClient
func (Adapter) Push ¶ added in v1.1.2
func (k Adapter) Push(parameters common.PushParameters) error
Push creates Kubernetes resources that correspond to the devfile if they don't already exist
func (Adapter) SupervisorComponentInfo ¶ added in v1.2.6
func (k Adapter) SupervisorComponentInfo(command versionsCommon.DevfileCommand) (common.ComponentInfo, error)
type KubernetesContext ¶ added in v1.1.2
type KubernetesContext struct {
Namespace string
}
Click to show internal directories.
Click to hide internal directories.