Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -82,8 +82,7 @@ type ExecStartOptions struct {
|
| 82 | 82 |
} |
| 83 | 83 |
|
| 84 | 84 |
// ExecStartResult holds the result of starting a container exec. |
| 85 |
-type ExecStartResult struct {
|
|
| 86 |
-} |
|
| 85 |
+type ExecStartResult struct{}
|
|
| 87 | 86 |
|
| 88 | 87 |
// ExecStart starts an exec process already created in the docker host. |
| 89 | 88 |
func (cli *Client) ExecStart(ctx context.Context, execID string, options ExecStartOptions) (ExecStartResult, error) {
|
| ... | ... |
@@ -160,8 +159,7 @@ func getConsoleSize(hasTTY bool, consoleSize ConsoleSize) (*[2]uint, error) {
|
| 160 | 160 |
} |
| 161 | 161 |
|
| 162 | 162 |
// ExecInspectOptions holds options for inspecting a container exec. |
| 163 |
-type ExecInspectOptions struct {
|
|
| 164 |
-} |
|
| 163 |
+type ExecInspectOptions struct{}
|
|
| 165 | 164 |
|
| 166 | 165 |
// ExecInspectResult holds the result of inspecting a container exec. |
| 167 | 166 |
// |
| ... | ... |
@@ -42,8 +42,7 @@ func (cli *Client) ContainerResize(ctx context.Context, containerID string, opti |
| 42 | 42 |
type ExecResizeOptions ContainerResizeOptions |
| 43 | 43 |
|
| 44 | 44 |
// ExecResizeResult holds the result of resizing a container exec TTY. |
| 45 |
-type ExecResizeResult struct {
|
|
| 46 |
-} |
|
| 45 |
+type ExecResizeResult struct{}
|
|
| 47 | 46 |
|
| 48 | 47 |
// ExecResize changes the size of the tty for an exec process running inside a container. |
| 49 | 48 |
func (cli *Client) ExecResize(ctx context.Context, execID string, options ExecResizeOptions) (ExecResizeResult, error) {
|
| ... | ... |
@@ -62,5 +61,4 @@ func (cli *Client) ExecResize(ctx context.Context, execID string, options ExecRe |
| 62 | 62 |
return ExecResizeResult{}, err
|
| 63 | 63 |
} |
| 64 | 64 |
return ExecResizeResult{}, nil
|
| 65 |
- |
|
| 66 | 65 |
} |
| ... | ... |
@@ -82,8 +82,7 @@ type ExecStartOptions struct {
|
| 82 | 82 |
} |
| 83 | 83 |
|
| 84 | 84 |
// ExecStartResult holds the result of starting a container exec. |
| 85 |
-type ExecStartResult struct {
|
|
| 86 |
-} |
|
| 85 |
+type ExecStartResult struct{}
|
|
| 87 | 86 |
|
| 88 | 87 |
// ExecStart starts an exec process already created in the docker host. |
| 89 | 88 |
func (cli *Client) ExecStart(ctx context.Context, execID string, options ExecStartOptions) (ExecStartResult, error) {
|
| ... | ... |
@@ -160,8 +159,7 @@ func getConsoleSize(hasTTY bool, consoleSize ConsoleSize) (*[2]uint, error) {
|
| 160 | 160 |
} |
| 161 | 161 |
|
| 162 | 162 |
// ExecInspectOptions holds options for inspecting a container exec. |
| 163 |
-type ExecInspectOptions struct {
|
|
| 164 |
-} |
|
| 163 |
+type ExecInspectOptions struct{}
|
|
| 165 | 164 |
|
| 166 | 165 |
// ExecInspectResult holds the result of inspecting a container exec. |
| 167 | 166 |
// |
| ... | ... |
@@ -42,8 +42,7 @@ func (cli *Client) ContainerResize(ctx context.Context, containerID string, opti |
| 42 | 42 |
type ExecResizeOptions ContainerResizeOptions |
| 43 | 43 |
|
| 44 | 44 |
// ExecResizeResult holds the result of resizing a container exec TTY. |
| 45 |
-type ExecResizeResult struct {
|
|
| 46 |
-} |
|
| 45 |
+type ExecResizeResult struct{}
|
|
| 47 | 46 |
|
| 48 | 47 |
// ExecResize changes the size of the tty for an exec process running inside a container. |
| 49 | 48 |
func (cli *Client) ExecResize(ctx context.Context, execID string, options ExecResizeOptions) (ExecResizeResult, error) {
|
| ... | ... |
@@ -62,5 +61,4 @@ func (cli *Client) ExecResize(ctx context.Context, execID string, options ExecRe |
| 62 | 62 |
return ExecResizeResult{}, err
|
| 63 | 63 |
} |
| 64 | 64 |
return ExecResizeResult{}, nil
|
| 65 |
- |
|
| 66 | 65 |
} |