Documentation ¶
Index ¶
- func PodExecuteCommand(req ExecCommandRequest) (int, error)
- func PodUploadFile(req UploadFileRequest) (int, error)
- func WrapAsTar(fileNameOnTar string, fileContent []byte) ([]byte, error)
- type ExecCommandRequest
- type KubeRequest
- type KubernetesApiService
- type KubernetesApiServiceImpl
- func (k *KubernetesApiServiceImpl) CreatePrivilegedPod(nodeName string, containerName string, image string, socketPath string, ...) (*corev1.Pod, error)
- func (k *KubernetesApiServiceImpl) DeletePod(podName string) error
- func (k *KubernetesApiServiceImpl) ExecuteCommand(podName string, containerName string, command []string, stdOut io.Writer) (int, error)
- func (k *KubernetesApiServiceImpl) IsSupportedContainerRuntime(nodeName string) (bool, error)
- func (k *KubernetesApiServiceImpl) UploadFile(localPath string, remotePath string, podName string, containerName string) error
- type NopWriter
- type UploadFileRequest
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PodExecuteCommand ¶
func PodExecuteCommand(req ExecCommandRequest) (int, error)
func PodUploadFile ¶
func PodUploadFile(req UploadFileRequest) (int, error)
Types ¶
type ExecCommandRequest ¶
type KubeRequest ¶
type KubernetesApiService ¶
type KubernetesApiService interface { ExecuteCommand(podName string, containerName string, command []string, stdOut io.Writer) (int, error) DeletePod(podName string) error CreatePrivilegedPod(nodeName string, containerName string, image string, socketPath string, timeout time.Duration) (*corev1.Pod, error) UploadFile(localPath string, remotePath string, podName string, containerName string) error }
func NewKubernetesApiService ¶
func NewKubernetesApiService(clientset *kubernetes.Clientset, restConfig *rest.Config, targetNamespace string) KubernetesApiService
type KubernetesApiServiceImpl ¶
type KubernetesApiServiceImpl struct {
// contains filtered or unexported fields
}
func (*KubernetesApiServiceImpl) CreatePrivilegedPod ¶
func (*KubernetesApiServiceImpl) DeletePod ¶
func (k *KubernetesApiServiceImpl) DeletePod(podName string) error
func (*KubernetesApiServiceImpl) ExecuteCommand ¶
func (*KubernetesApiServiceImpl) IsSupportedContainerRuntime ¶
func (k *KubernetesApiServiceImpl) IsSupportedContainerRuntime(nodeName string) (bool, error)
func (*KubernetesApiServiceImpl) UploadFile ¶
type UploadFileRequest ¶
type UploadFileRequest struct { KubeRequest Src string Dst string }
Click to show internal directories.
Click to hide internal directories.