Skip to content

Commit

Permalink
chore(models): Bump bollard-stubs to use API 1.44
Browse files Browse the repository at this point in the history
  • Loading branch information
fussybeaver committed Jan 24, 2024
1 parent 0588417 commit 4a27ba1
Show file tree
Hide file tree
Showing 8 changed files with 229 additions and 62 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ time = ["dep:time", "bollard-stubs/time"]

[dependencies]
base64 = "0.21"
bollard-stubs = { path = "codegen/swagger", version = "=1.43.0-rc.3", default-features = false }
bollard-stubs = { path = "codegen/swagger", version = "=1.44.0-rc.1", default-features = false }
bollard-buildkit-proto = { path = "codegen/proto", version = "=0.2.1", optional = true }
bytes = "1"
chrono = { version = "0.4", default-features = false, features = ["std", "clock", "serde"], optional = true }
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ encouraged.

### Version

The [Docker API](https://docs.docker.com/engine/api/v1.43/) used by Bollard is using the latest
`1.43` documentation schema published by the [moby](https://github.com/moby/moby) project to
The [Docker API](https://docs.docker.com/engine/api/v1.44/) used by Bollard is using the latest
`1.44` documentation schema published by the [moby](https://github.com/moby/moby) project to
generate its serialization interface.

This library also supports [version
Expand Down
2 changes: 1 addition & 1 deletion codegen/swagger/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bollard-stubs"
version = "1.43.0-rc.3"
version = "1.44.0-rc.1"
authors = [ "Bollard contributors" ]
description = "Stubs used for the Bollard rust async Docker client API"
license = "Apache-2.0"
Expand Down
6 changes: 3 additions & 3 deletions codegen/swagger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ To see how to make this your own, look here:

[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)

- API version: 1.43.0-rc.3
- Code generation suffix: 1.43.0-rc.3
- Build date: 2024-01-15T11:26:03.143Z
- API version: 1.44.0-rc.1
- Code generation suffix: 1.44.0-rc.1
- Build date: 2024-01-24T09:26:30.020Z

This autogenerated project defines an API crate `bollard-stubs` which contains:
* Data types representing the underlying data model.
Expand Down
4 changes: 2 additions & 2 deletions codegen/swagger/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>https://raw.githubusercontent.com/moby/moby/v24.0.0/docs/api/v1.43.yaml</inputSpec>
<inputSpec>https://raw.githubusercontent.com/moby/moby/v25.0.0/docs/api/v1.44.yaml</inputSpec>
<language>bollard.BollardCodegen</language>
<output>${project.basedir}</output>
<generateApis>true</generateApis>
<templateDirectory>${project.basedir}/src/main/resources/bollard</templateDirectory>
<supportingFilesToGenerate>models.rs,lib.rs,Cargo.toml,config,README.md</supportingFilesToGenerate>
<configOptions>
<packageName>bollard-stubs</packageName>
<packageVersion>1.43.0-rc.3</packageVersion>
<packageVersion>1.44.0-rc.1</packageVersion>
</configOptions>
</configuration>
</execution>
Expand Down
2 changes: 1 addition & 1 deletion codegen/swagger/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use std::io::Error;
#[allow(unused_imports)]
use std::collections::HashMap;

pub const BASE_PATH: &str = "/v1.43";
pub const BASE_PATH: &str = "/v1.44";

pub mod models;

Expand Down
267 changes: 217 additions & 50 deletions codegen/swagger/src/models.rs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
//!
//! ## Version
//!
//! The [Docker API](https://docs.docker.com/engine/api/v1.43/) used by Bollard is using the latest
//! `1.43` documentation schema published by the [moby](https://github.com/moby/moby) project to
//! The [Docker API](https://docs.docker.com/engine/api/v1.44/) used by Bollard is using the latest
//! `1.44` documentation schema published by the [moby](https://github.com/moby/moby) project to
//! generate its serialization interface.
//!
//! This library also supports [version
Expand Down

0 comments on commit 4a27ba1

Please sign in to comment.