Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) Attach(ctx context.Context, args *daemon.AttachReq, opts ...grpc.CallOption) error
- func (c *Client) AttachIO(ctx context.Context, args *daemon.AttachReq, opts ...grpc.CallOption) (io.Writer, io.Reader, io.Reader, chan int, chan error, error)
- func (c *Client) Delete(ctx context.Context, args *daemon.DeleteReq, opts ...grpc.CallOption) (*daemon.DeleteResp, error)
- func (c *Client) DeleteCheckpoint(ctx context.Context, args *daemon.DeleteCheckpointReq, opts ...grpc.CallOption) (*daemon.DeleteCheckpointResp, error)
- func (c *Client) Dump(ctx context.Context, args *daemon.DumpReq, opts ...grpc.CallOption) (*daemon.DumpResp, *profiling.Data, error)
- func (c *Client) DumpVM(ctx context.Context, args *daemon.DumpVMReq, opts ...grpc.CallOption) (*daemon.DumpVMResp, *profiling.Data, error)
- func (c *Client) Freeze(ctx context.Context, args *daemon.DumpReq, opts ...grpc.CallOption) (*daemon.DumpResp, *profiling.Data, error)
- func (c *Client) Get(ctx context.Context, args *daemon.GetReq, opts ...grpc.CallOption) (*daemon.GetResp, error)
- func (c *Client) GetCheckpoint(ctx context.Context, args *daemon.GetCheckpointReq, opts ...grpc.CallOption) (*daemon.GetCheckpointResp, error)
- func (c *Client) HealthCheck(ctx context.Context, args *daemon.HealthCheckReq, opts ...grpc.CallOption) (*daemon.HealthCheckResp, error)
- func (c *Client) HealthCheckConnection(ctx context.Context, opts ...grpc.CallOption) (bool, error)
- func (c *Client) Kill(ctx context.Context, args *daemon.KillReq, opts ...grpc.CallOption) (*daemon.KillResp, error)
- func (c *Client) List(ctx context.Context, args *daemon.ListReq, opts ...grpc.CallOption) (*daemon.ListResp, error)
- func (c *Client) ListCheckpoints(ctx context.Context, args *daemon.ListCheckpointsReq, opts ...grpc.CallOption) (*daemon.ListCheckpointsResp, error)
- func (c *Client) Manage(ctx context.Context, args *daemon.RunReq, opts ...grpc.CallOption) (*daemon.RunResp, *profiling.Data, error)
- func (c *Client) Query(ctx context.Context, args *daemon.QueryReq, opts ...grpc.CallOption) (*daemon.QueryResp, error)
- func (c *Client) ReloadPlugins(ctx context.Context, args *daemon.Empty, opts ...grpc.CallOption) (*daemon.Empty, error)
- func (c *Client) Restore(ctx context.Context, args *daemon.RestoreReq, opts ...grpc.CallOption) (*daemon.RestoreResp, *profiling.Data, error)
- func (c *Client) Run(ctx context.Context, args *daemon.RunReq, opts ...grpc.CallOption) (*daemon.RunResp, *profiling.Data, error)
- func (c *Client) Unfreeze(ctx context.Context, args *daemon.DumpReq, opts ...grpc.CallOption) (*daemon.DumpResp, *profiling.Data, error)
Constants ¶
View Source
const ( DEFAULT_DUMP_TIMEOUT = 5 * time.Minute DEFAULT_FREEZE_TIMEOUT = 1 * time.Minute DEFAULT_UNFREEZE_TIMEOUT = 1 * time.Minute DEFAULT_RESTORE_TIMEOUT = 5 * time.Minute DEFAULT_RUN_TIMEOUT = 1 * time.Minute DEFAULT_MANAGE_TIMEOUT = 1 * time.Minute DEFAULT_DB_TIMEOUT = 20 * time.Second DEFAULT_HEALTH_TIMEOUT = 1 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*grpc.ClientConn
// contains filtered or unexported fields
}
func (*Client) Attach ¶
Attach attaches to a managed process/container. Exits the program with the exit code of the process.
func (*Client) AttachIO ¶
func (c *Client) AttachIO(ctx context.Context, args *daemon.AttachReq, opts ...grpc.CallOption) (io.Writer, io.Reader, io.Reader, chan int, chan error, error)
Just like attach but returns the streams instead of attaching to stdin/stdout/stderr
func (*Client) Delete ¶
func (c *Client) Delete(ctx context.Context, args *daemon.DeleteReq, opts ...grpc.CallOption) (*daemon.DeleteResp, error)
func (*Client) DeleteCheckpoint ¶
func (c *Client) DeleteCheckpoint(ctx context.Context, args *daemon.DeleteCheckpointReq, opts ...grpc.CallOption) (*daemon.DeleteCheckpointResp, error)
func (*Client) GetCheckpoint ¶
func (c *Client) GetCheckpoint(ctx context.Context, args *daemon.GetCheckpointReq, opts ...grpc.CallOption) (*daemon.GetCheckpointResp, error)
func (*Client) HealthCheck ¶
func (c *Client) HealthCheck(ctx context.Context, args *daemon.HealthCheckReq, opts ...grpc.CallOption) (*daemon.HealthCheckResp, error)
func (*Client) HealthCheckConnection ¶
func (*Client) ListCheckpoints ¶
func (c *Client) ListCheckpoints(ctx context.Context, args *daemon.ListCheckpointsReq, opts ...grpc.CallOption) (*daemon.ListCheckpointsResp, error)
func (*Client) ReloadPlugins ¶
func (*Client) Restore ¶
func (c *Client) Restore( ctx context.Context, args *daemon.RestoreReq, opts ...grpc.CallOption, ) (*daemon.RestoreResp, *profiling.Data, error)
Click to show internal directories.
Click to hide internal directories.