k8s

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JarPathInContainer             = "/deployments/"
	SourcePathInContainer          = "/usr/src/component.tar"
	ExtractedSourcePathInContainer = "/usr/src"
)

Variables

This section is empty.

Functions

func Apply

func Apply(path, namespace string) error

func Copy

func Copy(path, namespace, destination string, source bool) error

func GetK8SClientFlavor added in v0.1.3

func GetK8SClientFlavor() string

func IsJarPresent added in v0.1.2

func IsJarPresent(podName string) bool

Types

type Client

type Client struct {
	KubeClient                  kubernetes.Interface
	HalkyonComponentClient      *component.HalkyonV1beta1Client
	HalkyonCapabilityClient     *capability.HalkyonV1beta1Client
	HalkyonCapabilityInfoClient *capInfo.HalkyonV1beta1Client
	HalkyonRuntimeClient        *hruntime.HalkyonV1beta1Client
	KubeConfig                  clientcmd.ClientConfig
	Namespace                   string
}

func GetClient

func GetClient() *Client

GetClient retrieves a client

func (*Client) ExecCMDInContainer

func (c *Client) ExecCMDInContainer(podName string, cmd []string, stdout io.Writer, stderr io.Writer, stdin io.Reader, tty bool) error

ExecCMDInContainer execute command in first container of a pod

func (*Client) ExecCommand added in v0.1.10

func (c *Client) ExecCommand(podName string, cmd []string, statusMsg string) error

func (*Client) WaitForComponent

func (c *Client) WaitForComponent(name string, desiredPhase string, waitMessage string) (*v1beta1.Component, error)

Jump to

Keyboard shortcuts

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