Version: v1.2.6 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 22 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type Adapter

type Adapter struct {
	Client kclient.Client
	// 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 added in v1.2.6

func (a Adapter) ComponentInfo(command versionsCommon.DevfileCommand) (common.ComponentInfo, error)

func (Adapter) Delete added in v1.1.2

func (a Adapter) Delete(labels map[string]string, show bool) error

Delete deletes the component

func (Adapter) DoesComponentExist added in v1.1.2

func (a Adapter) DoesComponentExist(cmpName string) (bool, error)

DoesComponentExist returns true if a component with the specified name exists, false otherwise

func (Adapter) Exec added in v1.2.4

func (a Adapter) Exec(command []string) error

Exec executes a command in the component

func (Adapter) Log added in v1.2.4

func (a Adapter) Log(follow, debug bool) (io.ReadCloser, error)

Log returns log from component

func (Adapter) Push added in v1.1.2

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 added in v1.2.6

func (a Adapter) SupervisorComponentInfo(command versionsCommon.DevfileCommand) (common.ComponentInfo, error)

func (Adapter) Test added in v1.2.4

func (a Adapter) Test(testCmd string, show bool) (err error)

Test runs the devfile test command

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL