Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Cargo.lock

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

Binary file modified sdk/src/generated/fileset.bin
Binary file not shown.
23 changes: 23 additions & 0 deletions sdk/src/generated/v1.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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")]
Expand All @@ -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<Resource>,
}
/// 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.
Expand Down Expand Up @@ -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
Expand All @@ -163,6 +170,7 @@ pub struct RequestMeta {
pub capabilities: ::prost::alloc::vec::Vec<i32>,
}
/// 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
Expand Down Expand Up @@ -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".
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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")]
Expand All @@ -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
Expand All @@ -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).
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -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
/// <https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties.>
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Condition {
/// Type of condition in PascalCase.
Expand All @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
Loading