Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nadim-az committed Jan 17, 2025
1 parent 2693b99 commit dc0b2dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions core/provider/digitalocean/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ type Provider struct {

logger *zap.Logger
doClient DoClient
petriTag string
userIPs []string
sshKeyPair *SSHKeyPair
firewallID string
dockerClients map[string]provider.DockerClient // map of droplet ip address to docker clients
}

Expand Down
8 changes: 4 additions & 4 deletions core/provider/docker_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,15 @@ func (d *defaultDockerClient) ContainerInspect(ctx context.Context, containerID
return d.client.ContainerInspect(ctx, containerID)
}

func (d *defaultDockerClient) ContainerExecCreate(ctx context.Context, container string, config types.ExecConfig) (types.IDResponse, error) {
func (d *defaultDockerClient) ContainerExecCreate(ctx context.Context, container string, config container.ExecOptions) (types.IDResponse, error) {
return d.client.ContainerExecCreate(ctx, container, config)
}

func (d *defaultDockerClient) ContainerExecAttach(ctx context.Context, execID string, config types.ExecStartCheck) (types.HijackedResponse, error) {
func (d *defaultDockerClient) ContainerExecAttach(ctx context.Context, execID string, config container.ExecStartOptions) (types.HijackedResponse, error) {
return d.client.ContainerExecAttach(ctx, execID, config)
}

func (d *defaultDockerClient) ContainerExecInspect(ctx context.Context, execID string) (types.ContainerExecInspect, error) {
func (d *defaultDockerClient) ContainerExecInspect(ctx context.Context, execID string) (container.ExecInspect, error) {
return d.client.ContainerExecInspect(ctx, execID)
}

Expand All @@ -141,7 +141,7 @@ func (d *defaultDockerClient) CopyToContainer(ctx context.Context, container, pa
return d.client.CopyToContainer(ctx, container, path, content, options)
}

func (d *defaultDockerClient) CopyFromContainer(ctx context.Context, container, srcPath string) (io.ReadCloser, types.ContainerPathStat, error) {
func (d *defaultDockerClient) CopyFromContainer(ctx context.Context, container, srcPath string) (io.ReadCloser, container.PathStat, error) {
return d.client.CopyFromContainer(ctx, container, srcPath)
}

Expand Down

0 comments on commit dc0b2dc

Please sign in to comment.