component

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LocalhostIP = "127.0.0.1"

LocalhostIP is the IP address for localhost

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	Client lclient.Client
	common.AdapterContext
	// 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 instantiantes a component adapter

func (Adapter) Delete

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

Delete attempts to delete the component with the specified labels, returning an error if it fails

func (Adapter) DoesComponentExist

func (a Adapter) DoesComponentExist(cmpName string) bool

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

func (Adapter) InitRunContainerSupervisord added in v1.2.0

func (a Adapter) InitRunContainerSupervisord(component string, containers []types.Container) (err error)

InitRunContainerSupervisord initializes the supervisord in the container if the container has entrypoint that is not supervisord

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

Jump to

Keyboard shortcuts

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