Documentation ¶
Index ¶
- Constants
- func Apply(path, namespace string) error
- func Copy(path, namespace, destination string, source bool) error
- func GetK8SClientFlavor() string
- func IsJarPresent(podName string) bool
- type Client
- func (c *Client) ExecCMDInContainer(podName string, cmd []string, stdout io.Writer, stderr io.Writer, ...) error
- func (c *Client) ExecCommand(podName string, cmd []string, statusMsg string) error
- func (c *Client) WaitForComponent(name string, desiredPhase string, waitMessage string) (*v1beta1.Component, error)
Constants ¶
View Source
const ( JarPathInContainer = "/deployments/" SourcePathInContainer = "/usr/src/component.tar" ExtractedSourcePathInContainer = "/usr/src" )
Variables ¶
This section is empty.
Functions ¶
func GetK8SClientFlavor ¶ added in v0.1.3
func GetK8SClientFlavor() string
func IsJarPresent ¶ added in v0.1.2
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 (*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
Click to show internal directories.
Click to hide internal directories.