Skip to content

Commit

Permalink
check in a client for the public API for test purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
ahl committed Jul 22, 2022
1 parent 8d13230 commit 11777c3
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ members = [
"sled-agent",
"sled-agent-client",
"sp-sim",
"oxide-client",
"oximeter/oximeter",
"oximeter/collector",
"oximeter/db",
Expand Down Expand Up @@ -50,6 +51,7 @@ default-members = [
"sled-agent",
"sled-agent-client",
"sp-sim",
"oxide-client",
"oximeter/oximeter",
"oximeter/collector",
"oximeter/db",
Expand Down
28 changes: 28 additions & 0 deletions oxide-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[package]
name = "oxide-client"
version = "0.1.0"
edition = "2021"
license = "MPL-2.0"

[dependencies]
futures = "0.3.21"
progenitor = { git = "https://github.com/oxidecomputer/progenitor" }
regress = "0.4.1"
serde_json = "1.0.82"

[dependencies.chrono]
version = "0.4"
features = [ "serde" ]

[dependencies.reqwest]
version = "0.11"
default-features = false
features = ["rustls-tls", "stream"]

[dependencies.serde]
version = "1.0"
features = [ "derive" ]

[dependencies.uuid]
version = "1.1.0"
features = [ "serde", "v4" ]
11 changes: 11 additions & 0 deletions oxide-client/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

//! Interface for making API requests to the Oxide control plane.
progenitor::generate_api!(
spec = "../openapi/nexus.json",
interface = Builder,
tags = Separate,
);

0 comments on commit 11777c3

Please sign in to comment.