Documentation ¶
Index ¶
- Constants
- 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 ¶
View Source
const (
LocalhostIP = "127.0.0.1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct { Client lclient.Client *common.GenericAdapter // contains filtered or unexported fields }
Adapter is a component adapter implementation for Kubernetes
func New ¶
func New(adapterContext common.AdapterContext, client lclient.Client) Adapter
New instantiates a component adapter
func (Adapter) ComponentInfo ¶
func (a 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, 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
func (Adapter) SupervisorComponentInfo ¶
func (a Adapter) SupervisorComponentInfo(command versionsCommon.DevfileCommand) (common.ComponentInfo, error)
Click to show internal directories.
Click to hide internal directories.