Documentation ¶
Index ¶
- type DockerBox
- type KubeBox
- func (box *KubeBox) ApplyTemplate(deploymentSpec *appsv1.Deployment, serviceSpec *corev1.Service) error
- func (box *KubeBox) BuildSpec(containerName string) (*appsv1.Deployment, *corev1.Service, error)
- func (box *KubeBox) Exec(pod *corev1.Pod, streams *model.BoxStreams) error
- func (box *KubeBox) ExecWithoutTerminal(pod *corev1.Pod, streams *model.BoxStreams) error
- func (box *KubeBox) GetPod(deployment *appsv1.Deployment) (*corev1.Pod, error)
- func (box *KubeBox) PortForward(pod *corev1.Pod)
- func (box *KubeBox) RemoveTemplate(deployment *appsv1.Deployment, service *corev1.Service)
- type Labels
- type ResourceOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerBox ¶
type DockerBox struct { Template *schema.BoxV1 // TODO look for better design than callbacks OnSetupCallback func() OnCreateCallback func(port schema.PortV1) OnExecCallback func() OnCloseCallback func() OnCloseErrorCallback func(error, string) OnStreamErrorCallback func(error, string) // TODO replace with error channel // contains filtered or unexported fields }
func NewDockerBox ¶
don't forget to invoke "defer dockerClient.Close()"
type KubeBox ¶
type KubeBox struct { Template *schema.BoxV1 ResourceOptions *ResourceOptions // TODO look for better design than callbacks OnSetupCallback func(string) OnTunnelCallback func(port schema.PortV1) OnTunnelErrorCallback func(error, string) OnExecCallback func() OnCloseCallback func(string) OnCloseErrorCallback func(error, string) // contains filtered or unexported fields }
func NewInClusterKubeBox ¶
func NewInClusterKubeBox(template *schema.BoxV1, resourceOptions *ResourceOptions) (*KubeBox, error)
func NewOutOfClusterKubeBox ¶
func (*KubeBox) ApplyTemplate ¶
func (*KubeBox) ExecWithoutTerminal ¶
func (*KubeBox) PortForward ¶
func (*KubeBox) RemoveTemplate ¶
func (box *KubeBox) RemoveTemplate(deployment *appsv1.Deployment, service *corev1.Service)
type ResourceOptions ¶
Click to show internal directories.
Click to hide internal directories.