Skip to content

Commit a915357

Browse files
committed
rename to standard
add logging test
1 parent 6dd30fc commit a915357

15 files changed

Lines changed: 815 additions & 815 deletions
Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
1-
using System.Collections.Generic;
2-
using System.Threading;
3-
using System.Threading.Tasks;
4-
using Docker.DotNet.Models;
5-
6-
namespace Docker.DotNet
7-
{
8-
public interface ISecretsOperations
9-
{
10-
/// <summary>
11-
/// List secrets
12-
/// </summary>
13-
/// <remarks>
14-
/// 200 - No error.
15-
/// 500 - Server error.
16-
/// </remarks>
17-
Task<IList<Secret>> ListAsync(CancellationToken cancellationToken = default(CancellationToken));
18-
19-
/// <summary>
20-
/// Create a secret
21-
/// </summary>
22-
/// <remarks>
23-
/// 201 - No error.
24-
/// 406 - Server error or node is not part of a swarm.
25-
/// 409 - Name conflicts with an existing object.
26-
/// 500 - Server error.
27-
/// </remarks>
28-
Task<SecretCreateResponse> CreateAsync(SecretSpec body, CancellationToken cancellationToken = default(CancellationToken));
29-
30-
/// <summary>
31-
/// Inspect a secret
32-
/// </summary>
33-
/// <remarks>
34-
/// 200 - No error.
35-
/// 404 - Secret not found.
36-
/// 406 - Node is not part of a swarm.
37-
/// 500 - Server error.
38-
/// </remarks>
39-
/// <param name="id">ID of the secret.</param>
40-
Task<Secret> InspectAsync(string id, CancellationToken cancellationToken = default(CancellationToken));
41-
42-
/// <summary>
43-
/// Delete a secret
44-
/// </summary>
45-
/// <remarks>
46-
/// 204 - No error.
47-
/// 404 - Secret not found.
48-
/// 500 - Server error.
49-
/// </remarks>
50-
/// <param name="id">ID of the secret.</param>
51-
Task DeleteAsync(string id, CancellationToken cancellationToken = default(CancellationToken));
52-
}
1+
using System.Collections.Generic;
2+
using System.Threading;
3+
using System.Threading.Tasks;
4+
using Docker.DotNet.Models;
5+
6+
namespace Docker.DotNet
7+
{
8+
public interface ISecretsOperations
9+
{
10+
/// <summary>
11+
/// List secrets
12+
/// </summary>
13+
/// <remarks>
14+
/// 200 - No error.
15+
/// 500 - Server error.
16+
/// </remarks>
17+
Task<IList<Secret>> ListAsync(CancellationToken cancellationToken = default(CancellationToken));
18+
19+
/// <summary>
20+
/// Create a secret
21+
/// </summary>
22+
/// <remarks>
23+
/// 201 - No error.
24+
/// 406 - Server error or node is not part of a swarm.
25+
/// 409 - Name conflicts with an existing object.
26+
/// 500 - Server error.
27+
/// </remarks>
28+
Task<SecretCreateResponse> CreateAsync(SecretSpec body, CancellationToken cancellationToken = default(CancellationToken));
29+
30+
/// <summary>
31+
/// Inspect a secret
32+
/// </summary>
33+
/// <remarks>
34+
/// 200 - No error.
35+
/// 404 - Secret not found.
36+
/// 406 - Node is not part of a swarm.
37+
/// 500 - Server error.
38+
/// </remarks>
39+
/// <param name="id">ID of the secret.</param>
40+
Task<Secret> InspectAsync(string id, CancellationToken cancellationToken = default(CancellationToken));
41+
42+
/// <summary>
43+
/// Delete a secret
44+
/// </summary>
45+
/// <remarks>
46+
/// 204 - No error.
47+
/// 404 - Secret not found.
48+
/// 500 - Server error.
49+
/// </remarks>
50+
/// <param name="id">ID of the secret.</param>
51+
Task DeleteAsync(string id, CancellationToken cancellationToken = default(CancellationToken));
52+
}
5353
}
Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
1-
using System.Collections.Generic;
2-
using System.Threading;
3-
using System.Threading.Tasks;
4-
using Docker.DotNet.Models;
5-
6-
namespace Docker.DotNet
7-
{
8-
/// <summary>
9-
/// A task is a container running on a swarm. It is the atomic scheduling unit of swarm. Swarm mode must be enabled for these endpoints to work.
10-
/// </summary>
11-
public interface ITasksOperations
12-
{
13-
/// <summary>
14-
/// List tasks
15-
/// </summary>
16-
/// <remarks>
17-
/// HTTP GET /tasks
18-
///
19-
/// 200 - No error.
20-
/// 500 - Server error.
21-
/// </remarks>
22-
Task<IList<TaskResponse>> ListAsync(CancellationToken cancellationToken = default(CancellationToken));
23-
24-
/// <summary>
25-
/// List tasks
26-
/// </summary>
27-
/// <remarks>
28-
/// HTTP GET /tasks
29-
///
30-
/// 200 - No error.
31-
/// 500 - Server error.
32-
/// </remarks>
33-
Task<IList<TaskResponse>> ListAsync(TasksListParameters parameters, CancellationToken cancellationToken = default(CancellationToken));
34-
35-
/// <summary>
36-
/// Inspect a task
37-
/// </summary>
38-
/// <remarks>
39-
/// HTTP GET /tasks/{id}
40-
///
41-
/// 200 - No error.
42-
/// 404 - No such task.
43-
/// 500 - Server error.
44-
/// </remarks>
45-
/// <param name="id">ID of the task.</param>
46-
Task<TaskResponse> InspectAsync(string id, CancellationToken cancellationToken = default(CancellationToken));
47-
}
1+
using System.Collections.Generic;
2+
using System.Threading;
3+
using System.Threading.Tasks;
4+
using Docker.DotNet.Models;
5+
6+
namespace Docker.DotNet
7+
{
8+
/// <summary>
9+
/// A task is a container running on a swarm. It is the atomic scheduling unit of swarm. Swarm mode must be enabled for these endpoints to work.
10+
/// </summary>
11+
public interface ITasksOperations
12+
{
13+
/// <summary>
14+
/// List tasks
15+
/// </summary>
16+
/// <remarks>
17+
/// HTTP GET /tasks
18+
///
19+
/// 200 - No error.
20+
/// 500 - Server error.
21+
/// </remarks>
22+
Task<IList<TaskResponse>> ListAsync(CancellationToken cancellationToken = default(CancellationToken));
23+
24+
/// <summary>
25+
/// List tasks
26+
/// </summary>
27+
/// <remarks>
28+
/// HTTP GET /tasks
29+
///
30+
/// 200 - No error.
31+
/// 500 - Server error.
32+
/// </remarks>
33+
Task<IList<TaskResponse>> ListAsync(TasksListParameters parameters, CancellationToken cancellationToken = default(CancellationToken));
34+
35+
/// <summary>
36+
/// Inspect a task
37+
/// </summary>
38+
/// <remarks>
39+
/// HTTP GET /tasks/{id}
40+
///
41+
/// 200 - No error.
42+
/// 404 - No such task.
43+
/// 500 - Server error.
44+
/// </remarks>
45+
/// <param name="id">ID of the task.</param>
46+
Task<TaskResponse> InspectAsync(string id, CancellationToken cancellationToken = default(CancellationToken));
47+
}
4848
}
Lines changed: 74 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,75 @@
1-
using System.Collections.Generic;
2-
using System.Threading.Tasks;
3-
using Docker.DotNet.Models;
4-
using System.Threading;
5-
6-
namespace Docker.DotNet
7-
{
8-
public interface IVolumeOperations
9-
{
10-
/// <summary>
11-
/// List volumes
12-
/// </summary>
13-
/// <remarks>
14-
/// 200 - No error.
15-
/// 500 - Server error.
16-
/// </remarks>
17-
Task<VolumesListResponse> ListAsync(CancellationToken cancellationToken = default(CancellationToken));
18-
19-
/// <summary>
20-
/// List volumes
21-
/// </summary>
22-
/// <remarks>
23-
/// 200 - No error.
24-
/// 500 - Server error.
25-
/// </remarks>
26-
Task<VolumesListResponse> ListAsync(VolumesListParameters parameters, CancellationToken cancellationToken = default(CancellationToken));
27-
28-
/// <summary>
29-
/// Create a volume.
30-
/// </summary>
31-
/// <remarks>
32-
/// 201 - The volume was created successfully.
33-
/// 500 - Server error.
34-
/// </remarks>
35-
/// <param name="parameters">Volume parameters to create.</param>
36-
Task<VolumeResponse> CreateAsync(VolumesCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken));
37-
38-
/// <summary>
39-
/// Inspect a volume.
40-
/// </summary>
41-
/// <remarks>
42-
/// 200 - No error.
43-
/// 404 - No such volume.
44-
/// 500 - Server error.
45-
/// </remarks>
46-
/// <param name="name">Volume name or ID.</param>
47-
Task<VolumeResponse> InspectAsync(string name, CancellationToken cancellationToken = default(CancellationToken));
48-
49-
/// <summary>
50-
/// Remove a volume.
51-
///
52-
/// Instruct the driver to remove the volume.
53-
/// </summary>
54-
/// <remarks>
55-
/// 204 - The volume was removed.
56-
/// 404 - No such volume or volume driver.
57-
/// 409 - Volume is in use and cannot be removed.
58-
/// 500 - Server error.
59-
/// </remarks>
60-
/// <param name="name">Volume name or ID.</param>
61-
/// <param name="force">Force the removal of the volume.</param>
62-
Task RemoveAsync(string name, bool? force = null, CancellationToken cancellationToken = default(CancellationToken));
63-
64-
/// <summary>
65-
/// Delete unused volumes.
66-
/// </summary>
67-
/// <remarks>
68-
/// HTTP POST /volumes/prune
69-
///
70-
/// 200 - No error.
71-
/// 500 - Server error.
72-
/// </remarks>
73-
Task<VolumesPruneResponse> PruneAsync(VolumesPruneParameters parameters = null, CancellationToken cancellationToken = default(CancellationToken));
74-
}
1+
using System.Collections.Generic;
2+
using System.Threading.Tasks;
3+
using Docker.DotNet.Models;
4+
using System.Threading;
5+
6+
namespace Docker.DotNet
7+
{
8+
public interface IVolumeOperations
9+
{
10+
/// <summary>
11+
/// List volumes
12+
/// </summary>
13+
/// <remarks>
14+
/// 200 - No error.
15+
/// 500 - Server error.
16+
/// </remarks>
17+
Task<VolumesListResponse> ListAsync(CancellationToken cancellationToken = default(CancellationToken));
18+
19+
/// <summary>
20+
/// List volumes
21+
/// </summary>
22+
/// <remarks>
23+
/// 200 - No error.
24+
/// 500 - Server error.
25+
/// </remarks>
26+
Task<VolumesListResponse> ListAsync(VolumesListParameters parameters, CancellationToken cancellationToken = default(CancellationToken));
27+
28+
/// <summary>
29+
/// Create a volume.
30+
/// </summary>
31+
/// <remarks>
32+
/// 201 - The volume was created successfully.
33+
/// 500 - Server error.
34+
/// </remarks>
35+
/// <param name="parameters">Volume parameters to create.</param>
36+
Task<VolumeResponse> CreateAsync(VolumesCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken));
37+
38+
/// <summary>
39+
/// Inspect a volume.
40+
/// </summary>
41+
/// <remarks>
42+
/// 200 - No error.
43+
/// 404 - No such volume.
44+
/// 500 - Server error.
45+
/// </remarks>
46+
/// <param name="name">Volume name or ID.</param>
47+
Task<VolumeResponse> InspectAsync(string name, CancellationToken cancellationToken = default(CancellationToken));
48+
49+
/// <summary>
50+
/// Remove a volume.
51+
///
52+
/// Instruct the driver to remove the volume.
53+
/// </summary>
54+
/// <remarks>
55+
/// 204 - The volume was removed.
56+
/// 404 - No such volume or volume driver.
57+
/// 409 - Volume is in use and cannot be removed.
58+
/// 500 - Server error.
59+
/// </remarks>
60+
/// <param name="name">Volume name or ID.</param>
61+
/// <param name="force">Force the removal of the volume.</param>
62+
Task RemoveAsync(string name, bool? force = null, CancellationToken cancellationToken = default(CancellationToken));
63+
64+
/// <summary>
65+
/// Delete unused volumes.
66+
/// </summary>
67+
/// <remarks>
68+
/// HTTP POST /volumes/prune
69+
///
70+
/// 200 - No error.
71+
/// 500 - Server error.
72+
/// </remarks>
73+
Task<VolumesPruneResponse> PruneAsync(VolumesPruneParameters parameters = null, CancellationToken cancellationToken = default(CancellationToken));
74+
}
7575
}

0 commit comments

Comments
 (0)