Documentation ¶
Index ¶
- type AbbotExecFunc
- type Client
- func (c *Client) CreateResolvConf(nameservers, searches, options []string) ([]byte, error)
- func (c *Client) Delete(ctx context.Context, pid int64, containerID string) error
- func (c *Client) Do(ctx context.Context, abbotReqData []byte, pid int64, containerID string) (abbotRespData []byte, err error)
- func (c *Client) Query(ctx context.Context, pid int64, containerID string) ([]byte, error)
- func (c *Client) Restore(ctx context.Context, pid int64, containerID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbbotExecFunc ¶
type AbbotExecFunc func( ctx context.Context, env map[string]string, stdin io.Reader, stdout, stderr io.Writer, ) error
AbbotExecFunc execute abbot command with provided environment variables and io channels
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(exec AbbotExecFunc) *Client
func (*Client) CreateResolvConf ¶
func (*Client) Do ¶
func (c *Client) Do( ctx context.Context, abbotReqData []byte, pid int64, containerID string, ) (abbotRespData []byte, err error)
Do host/container network operation by executing abbot command
Click to show internal directories.
Click to hide internal directories.