-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ first working basic
cdevents
implementation
- Loading branch information
Showing
42 changed files
with
745 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[package] | ||
name = "cdevents" | ||
edition.workspace = true | ||
version.workspace = true | ||
authors.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
rust-version.workspace = true | ||
publish = true | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
http = "1" | ||
http-serde = "2" | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = "1.0" | ||
time = { version = "0.3", features = ["serde-human-readable"] } | ||
|
||
[dev-dependencies] | ||
rstest = "0.18" | ||
assert-json-diff = "2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// code generated by cdevents/sdk-rust/generator (subject.hbs) | ||
use serde::{Serialize, Deserialize}; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
pub struct ArtifactPackagedSubject { | ||
|
||
#[serde(rename = "content")] | ||
pub content: serde_json::Map<String, serde_json::Value>, | ||
#[serde(rename = "id")] | ||
pub id: String, | ||
#[serde(rename = "source")] | ||
pub source: String, | ||
#[serde(rename = "type")] | ||
pub tpe: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// code generated by cdevents/sdk-rust/generator (subject.hbs) | ||
use serde::{Serialize, Deserialize}; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
pub struct ArtifactPublishedSubject { | ||
|
||
#[serde(rename = "content")] | ||
pub content: serde_json::Map<String, serde_json::Value>, | ||
#[serde(rename = "id")] | ||
pub id: String, | ||
#[serde(rename = "source")] | ||
pub source: String, | ||
#[serde(rename = "type")] | ||
pub tpe: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// code generated by cdevents/sdk-rust/generator (subject.hbs) | ||
use serde::{Serialize, Deserialize}; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
pub struct ArtifactSignedSubject { | ||
|
||
#[serde(rename = "content")] | ||
pub content: serde_json::Map<String, serde_json::Value>, | ||
#[serde(rename = "id")] | ||
pub id: String, | ||
#[serde(rename = "source")] | ||
pub source: String, | ||
#[serde(rename = "type")] | ||
pub tpe: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// code generated by cdevents/sdk-rust/generator (subject.hbs) | ||
use serde::{Serialize, Deserialize}; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
pub struct BranchCreatedSubject { | ||
|
||
#[serde(rename = "content")] | ||
pub content: serde_json::Map<String, serde_json::Value>, | ||
#[serde(rename = "id")] | ||
pub id: String, | ||
#[serde(rename = "source")] | ||
pub source: String, | ||
#[serde(rename = "type")] | ||
pub tpe: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// code generated by cdevents/sdk-rust/generator (subject.hbs) | ||
use serde::{Serialize, Deserialize}; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
pub struct BranchDeletedSubject { | ||
|
||
#[serde(rename = "content")] | ||
pub content: serde_json::Map<String, serde_json::Value>, | ||
#[serde(rename = "id")] | ||
pub id: String, | ||
#[serde(rename = "source")] | ||
pub source: String, | ||
#[serde(rename = "type")] | ||
pub tpe: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// code generated by cdevents/sdk-rust/generator (subject.hbs) | ||
use serde::{Serialize, Deserialize}; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
pub struct BuildFinishedSubject { | ||
|
||
#[serde(rename = "content")] | ||
pub content: serde_json::Map<String, serde_json::Value>, | ||
#[serde(rename = "id")] | ||
pub id: String, | ||
#[serde(rename = "source")] | ||
pub source: String, | ||
#[serde(rename = "type")] | ||
pub tpe: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// code generated by cdevents/sdk-rust/generator (subject.hbs) | ||
use serde::{Serialize, Deserialize}; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
pub struct BuildQueuedSubject { | ||
|
||
#[serde(rename = "content")] | ||
pub content: serde_json::Map<String, serde_json::Value>, | ||
#[serde(rename = "id")] | ||
pub id: String, | ||
#[serde(rename = "source")] | ||
pub source: String, | ||
#[serde(rename = "type")] | ||
pub tpe: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// code generated by cdevents/sdk-rust/generator (subject.hbs) | ||
use serde::{Serialize, Deserialize}; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
pub struct BuildStartedSubject { | ||
|
||
#[serde(rename = "content")] | ||
pub content: serde_json::Map<String, serde_json::Value>, | ||
#[serde(rename = "id")] | ||
pub id: String, | ||
#[serde(rename = "source")] | ||
pub source: String, | ||
#[serde(rename = "type")] | ||
pub tpe: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// code generated by cdevents/sdk-rust/generator (subject.hbs) | ||
use serde::{Serialize, Deserialize}; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
pub struct ChangeAbandonedSubject { | ||
|
||
#[serde(rename = "content")] | ||
pub content: serde_json::Map<String, serde_json::Value>, | ||
#[serde(rename = "id")] | ||
pub id: String, | ||
#[serde(rename = "source")] | ||
pub source: String, | ||
#[serde(rename = "type")] | ||
pub tpe: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// code generated by cdevents/sdk-rust/generator (subject.hbs) | ||
use serde::{Serialize, Deserialize}; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
pub struct ChangeCreatedSubject { | ||
|
||
#[serde(rename = "content")] | ||
pub content: serde_json::Map<String, serde_json::Value>, | ||
#[serde(rename = "id")] | ||
pub id: String, | ||
#[serde(rename = "source")] | ||
pub source: String, | ||
#[serde(rename = "type")] | ||
pub tpe: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// code generated by cdevents/sdk-rust/generator (subject.hbs) | ||
use serde::{Serialize, Deserialize}; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
pub struct ChangeMergedSubject { | ||
|
||
#[serde(rename = "content")] | ||
pub content: serde_json::Map<String, serde_json::Value>, | ||
#[serde(rename = "id")] | ||
pub id: String, | ||
#[serde(rename = "source")] | ||
pub source: String, | ||
#[serde(rename = "type")] | ||
pub tpe: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// code generated by cdevents/sdk-rust/generator (subject.hbs) | ||
use serde::{Serialize, Deserialize}; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
pub struct ChangeReviewedSubject { | ||
|
||
#[serde(rename = "content")] | ||
pub content: serde_json::Map<String, serde_json::Value>, | ||
#[serde(rename = "id")] | ||
pub id: String, | ||
#[serde(rename = "source")] | ||
pub source: String, | ||
#[serde(rename = "type")] | ||
pub tpe: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// code generated by cdevents/sdk-rust/generator (subject.hbs) | ||
use serde::{Serialize, Deserialize}; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
pub struct ChangeUpdatedSubject { | ||
|
||
#[serde(rename = "content")] | ||
pub content: serde_json::Map<String, serde_json::Value>, | ||
#[serde(rename = "id")] | ||
pub id: String, | ||
#[serde(rename = "source")] | ||
pub source: String, | ||
#[serde(rename = "type")] | ||
pub tpe: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// code generated by cdevents/sdk-rust/generator (subject.hbs) | ||
use serde::{Serialize, Deserialize}; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
pub struct EnvironmentCreatedSubject { | ||
|
||
#[serde(rename = "content")] | ||
pub content: serde_json::Map<String, serde_json::Value>, | ||
#[serde(rename = "id")] | ||
pub id: String, | ||
#[serde(rename = "source")] | ||
pub source: String, | ||
#[serde(rename = "type")] | ||
pub tpe: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// code generated by cdevents/sdk-rust/generator (subject.hbs) | ||
use serde::{Serialize, Deserialize}; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
pub struct EnvironmentDeletedSubject { | ||
|
||
#[serde(rename = "content")] | ||
pub content: serde_json::Map<String, serde_json::Value>, | ||
#[serde(rename = "id")] | ||
pub id: String, | ||
#[serde(rename = "source")] | ||
pub source: String, | ||
#[serde(rename = "type")] | ||
pub tpe: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// code generated by cdevents/sdk-rust/generator (subject.hbs) | ||
use serde::{Serialize, Deserialize}; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
pub struct EnvironmentModifiedSubject { | ||
|
||
#[serde(rename = "content")] | ||
pub content: serde_json::Map<String, serde_json::Value>, | ||
#[serde(rename = "id")] | ||
pub id: String, | ||
#[serde(rename = "source")] | ||
pub source: String, | ||
#[serde(rename = "type")] | ||
pub tpe: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// code generated by cdevents/sdk-rust/generator (subject.hbs) | ||
use serde::{Serialize, Deserialize}; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
pub struct IncidentDetectedSubject { | ||
|
||
#[serde(rename = "content")] | ||
pub content: serde_json::Map<String, serde_json::Value>, | ||
#[serde(rename = "id")] | ||
pub id: String, | ||
#[serde(rename = "source")] | ||
pub source: String, | ||
#[serde(rename = "type")] | ||
pub tpe: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// code generated by cdevents/sdk-rust/generator (subject.hbs) | ||
use serde::{Serialize, Deserialize}; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
pub struct IncidentReportedSubject { | ||
|
||
#[serde(rename = "content")] | ||
pub content: serde_json::Map<String, serde_json::Value>, | ||
#[serde(rename = "id")] | ||
pub id: String, | ||
#[serde(rename = "source")] | ||
pub source: String, | ||
#[serde(rename = "type")] | ||
pub tpe: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// code generated by cdevents/sdk-rust/generator (subject.hbs) | ||
use serde::{Serialize, Deserialize}; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
pub struct IncidentResolvedSubject { | ||
|
||
#[serde(rename = "content")] | ||
pub content: serde_json::Map<String, serde_json::Value>, | ||
#[serde(rename = "id")] | ||
pub id: String, | ||
#[serde(rename = "source")] | ||
pub source: String, | ||
#[serde(rename = "type")] | ||
pub tpe: String, | ||
} |
Oops, something went wrong.