Documentation ¶
Index ¶
- func Exec(cmd []string, stdin io.Reader, stdout, stderr io.WriteCloser, tty bool, ...) error
- func ExecSync(req *kubeapi.ExecSyncRequest) (*kubeapi.ExecSyncResponse, error)
- func PortForward(podSandboxID string, port int32, stream io.ReadWriteCloser) error
- type Container
- func (c *Container) Finished()
- func (c *Container) GetId() *string
- func (c *Container) GetLabels() map[string]string
- func (c *Container) GetPodId() *string
- func (c *Container) GetState() kubeapi.ContainerState
- func (c *Container) Start()
- func (c *Container) ToKubeContainer() *kubeapi.Container
- func (c *Container) ToKubeStatus() *kubeapi.ContainerStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exec ¶
func Exec(cmd []string, stdin io.Reader, stdout, stderr io.WriteCloser, tty bool, resize <-chan remotecommand.TerminalSize) error
func ExecSync ¶
func ExecSync(req *kubeapi.ExecSyncRequest) (*kubeapi.ExecSyncResponse, error)
func PortForward ¶
func PortForward(podSandboxID string, port int32, stream io.ReadWriteCloser) error
Essentially used the same concept of version in dockertools/docker_manager.go
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func NewContainer ¶
func (*Container) GetState ¶
func (c *Container) GetState() kubeapi.ContainerState
func (*Container) ToKubeContainer ¶
func (*Container) ToKubeStatus ¶
func (c *Container) ToKubeStatus() *kubeapi.ContainerStatus
Click to show internal directories.
Click to hide internal directories.