diff --git a/Cargo.lock b/Cargo.lock index be22a3a..8bb9857 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -341,7 +341,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] @@ -1072,7 +1072,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] @@ -1268,7 +1268,7 @@ dependencies = [ "getrandom 0.4.3", "once_cell", "rustix", - "windows-sys 0.61.2", + "windows-sys 0.52.0", ] [[package]] @@ -1407,9 +1407,9 @@ dependencies = [ [[package]] name = "tonic-build" -version = "0.14.6" +version = "0.14.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c68f61875ac5293cf72e6c8cf0158086428c82c37229e98c840878f1706b0322" +checksum = "ac6d916d206ed7bdda1778ddff9bda43303789c258877e7bc22fb44ee5c984b4" dependencies = [ "prettyplease", "proc-macro2", @@ -1443,9 +1443,9 @@ dependencies = [ [[package]] name = "tonic-prost-build" -version = "0.14.6" +version = "0.14.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "654e5643eff75d7f8c99197ce1440ed19a3474eada74c12bbac488b2cafdae27" +checksum = "2ea216ddc448e08e7839ab09e20e60b06b6a1c32745ccb212c0ebd161c199f1b" dependencies = [ "prettyplease", "proc-macro2", diff --git a/sdk/src/generated/fileset.bin b/sdk/src/generated/fileset.bin index eed12e7..cc704ca 100644 Binary files a/sdk/src/generated/fileset.bin and b/sdk/src/generated/fileset.bin differ diff --git a/sdk/src/generated/v1.rs b/sdk/src/generated/v1.rs index 5c3816e..ecb7fc0 100644 --- a/sdk/src/generated/v1.rs +++ b/sdk/src/generated/v1.rs @@ -1,5 +1,6 @@ // This file is @generated by prost-build. /// A RunFunctionRequest requests that the function be run. +#[allow(clippy::all)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RunFunctionRequest { /// Metadata pertaining to this request. @@ -77,6 +78,7 @@ pub struct RunFunctionRequest { >, } /// Credentials that a function may use to communicate with an external system. +#[allow(clippy::all)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Credentials { /// Source of the credentials. @@ -86,6 +88,7 @@ pub struct Credentials { /// Nested message and enum types in `Credentials`. pub mod credentials { /// Source of the credentials. + #[allow(clippy::all)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Source { /// Credential data loaded by Crossplane, for example from a Secret. @@ -94,6 +97,7 @@ pub mod credentials { } } /// CredentialData loaded by Crossplane, for example from a Secret. +#[allow(clippy::all)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CredentialData { #[prost(map = "string, bytes", tag = "1")] @@ -103,12 +107,14 @@ pub struct CredentialData { >, } /// Resources represents the state of several Crossplane resources. +#[allow(clippy::all)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Resources { #[prost(message, repeated, tag = "1")] pub items: ::prost::alloc::vec::Vec, } /// A RunFunctionResponse contains the result of a function run. +#[allow(clippy::all)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RunFunctionResponse { /// Metadata pertaining to this response. @@ -150,6 +156,7 @@ pub struct RunFunctionResponse { pub output: ::core::option::Option<::pbjson_types::Struct>, } /// RequestMeta contains metadata pertaining to a RunFunctionRequest. +#[allow(clippy::all)] #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] pub struct RequestMeta { /// An opaque string identifying a request. Requests with identical tags will @@ -163,6 +170,7 @@ pub struct RequestMeta { pub capabilities: ::prost::alloc::vec::Vec, } /// Requirements that must be satisfied for a function to run successfully. +#[allow(clippy::all)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Requirements { /// Resources that this function requires. The map key uniquely identifies the @@ -190,6 +198,7 @@ pub struct Requirements { >, } /// SchemaSelector identifies a resource kind whose OpenAPI schema is requested. +#[allow(clippy::all)] #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] pub struct SchemaSelector { /// API version of the resource kind, e.g. "example.org/v1". @@ -200,6 +209,7 @@ pub struct SchemaSelector { pub kind: ::prost::alloc::string::String, } /// Schema represents the OpenAPI schema for a resource kind. +#[allow(clippy::all)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Schema { /// The OpenAPI v3 schema of the resource kind as unstructured JSON. @@ -209,6 +219,7 @@ pub struct Schema { pub openapi_v3: ::core::option::Option<::pbjson_types::Struct>, } /// ResourceSelector selects a group of resources, either by name or by label. +#[allow(clippy::all)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ResourceSelector { /// API version of resources to select. @@ -229,6 +240,7 @@ pub struct ResourceSelector { /// Nested message and enum types in `ResourceSelector`. pub mod resource_selector { /// Resources to match. + #[allow(clippy::all)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Match { /// Match the resource with this name. @@ -240,6 +252,7 @@ pub mod resource_selector { } } /// MatchLabels defines a set of labels to match resources against. +#[allow(clippy::all)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct MatchLabels { #[prost(map = "string, string", tag = "1")] @@ -249,6 +262,7 @@ pub struct MatchLabels { >, } /// ResponseMeta contains metadata pertaining to a RunFunctionResponse. +#[allow(clippy::all)] #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] pub struct ResponseMeta { /// An opaque string identifying the content of the request. Must match the @@ -262,6 +276,7 @@ pub struct ResponseMeta { pub ttl: ::core::option::Option<::pbjson_types::Duration>, } /// State of the XR (XR) and any resources. +#[allow(clippy::all)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct State { /// The state of the XR (XR). @@ -274,6 +289,7 @@ pub struct State { pub resources: ::std::collections::HashMap<::prost::alloc::string::String, Resource>, } /// A Resource represents the state of a Kubernetes resource. +#[allow(clippy::all)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Resource { /// The JSON representation of the resource. @@ -329,6 +345,7 @@ pub struct Resource { pub ready: i32, } /// A Result of running a function. +#[allow(clippy::all)] #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] pub struct Result { /// Severity of this result. @@ -349,6 +366,7 @@ pub struct Result { /// applied to the XR's associated claim. For detailed information on proper /// usage of status conditions, please see /// +#[allow(clippy::all)] #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] pub struct Condition { /// Type of condition in PascalCase. @@ -375,6 +393,7 @@ pub struct Condition { /// Capability indicates that Crossplane supports a particular feature. /// Functions can check for capabilities to determine whether Crossplane will /// honor a particular request or response field. +#[allow(clippy::all)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] pub enum Capability { @@ -430,6 +449,7 @@ impl Capability { } } /// Ready indicates whether a resource should be considered ready. +#[allow(clippy::all)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] pub enum Ready { @@ -462,6 +482,7 @@ impl Ready { } } /// Severity of function results. +#[allow(clippy::all)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] pub enum Severity { @@ -503,6 +524,7 @@ impl Severity { } } /// Target of function results and conditions. +#[allow(clippy::all)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] pub enum Target { @@ -537,6 +559,7 @@ impl Target { } } } +#[allow(clippy::all)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] pub enum Status {