Documentation ¶
Index ¶
- type Adapter
- func (a Adapter) ComponentInfo(command versionsCommon.DevfileCommand) (common.ComponentInfo, error)
- func (a Adapter) Delete(labels map[string]string, show bool) error
- func (a Adapter) DoesComponentExist(cmpName string) (bool, error)
- func (a Adapter) Exec(command []string) error
- func (a Adapter) Log(follow, debug bool) (io.ReadCloser, error)
- func (a Adapter) Push(parameters common.PushParameters) (err error)
- func (a Adapter) SupervisorComponentInfo(command versionsCommon.DevfileCommand) (common.ComponentInfo, error)
- func (a Adapter) Test(testCmd string, show bool) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct { Client kclient.Client *common.GenericAdapter // contains filtered or unexported fields }
Adapter is a component adapter implementation for Kubernetes
func New ¶
func New(adapterContext common.AdapterContext, client kclient.Client) Adapter
New instantiates a component adapter
func (Adapter) ComponentInfo ¶
func (a Adapter) ComponentInfo(command versionsCommon.DevfileCommand) (common.ComponentInfo, error)
func (Adapter) DoesComponentExist ¶
DoesComponentExist returns true if a component with the specified name exists, false otherwise
func (Adapter) Log ¶
func (a Adapter) Log(follow, debug bool) (io.ReadCloser, error)
Log returns log from component
func (Adapter) Push ¶
func (a Adapter) Push(parameters common.PushParameters) (err error)
Push updates the component if a matching component exists or creates one if it doesn't exist Once the component has started, it will sync the source code to it.
func (Adapter) SupervisorComponentInfo ¶
func (a Adapter) SupervisorComponentInfo(command versionsCommon.DevfileCommand) (common.ComponentInfo, error)
Click to show internal directories.
Click to hide internal directories.