github.com/argoproj/argo-events@v1.9.1/pkg/apis/common/generated.proto (about) 1 /* 2 Copyright 2021 BlackRock, Inc. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 // This file was autogenerated by go-to-protobuf. Do not edit it manually! 18 19 syntax = "proto2"; 20 21 package github.com.argoproj.argo_events.pkg.apis.common; 22 23 import "k8s.io/api/core/v1/generated.proto"; 24 import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; 25 26 // Package-wide variables from generator "generated". 27 option go_package = "common"; 28 29 // Amount represent a numeric amount. 30 message Amount { 31 optional bytes value = 1; 32 } 33 34 // Backoff for an operation 35 message Backoff { 36 // The initial duration in nanoseconds or strings like "1s", "3m" 37 // +optional 38 optional Int64OrString duration = 1; 39 40 // Duration is multiplied by factor each iteration 41 // +optional 42 optional Amount factor = 2; 43 44 // The amount of jitter applied each iteration 45 // +optional 46 optional Amount jitter = 3; 47 48 // Exit with error after this many steps 49 // +optional 50 optional int32 steps = 4; 51 } 52 53 // BasicAuth contains the reference to K8s secrets that holds the username and password 54 message BasicAuth { 55 // Username refers to the Kubernetes secret that holds the username required for basic auth. 56 optional k8s.io.api.core.v1.SecretKeySelector username = 1; 57 58 // Password refers to the Kubernetes secret that holds the password required for basic auth. 59 optional k8s.io.api.core.v1.SecretKeySelector password = 2; 60 } 61 62 // Condition contains details about resource state 63 message Condition { 64 // Condition type. 65 // +required 66 optional string type = 1; 67 68 // Condition status, True, False or Unknown. 69 // +required 70 optional string status = 2; 71 72 // Last time the condition transitioned from one status to another. 73 // +optional 74 optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; 75 76 // Unique, this should be a short, machine understandable string that gives the reason 77 // for condition's last transition. For example, "ImageNotFound" 78 // +optional 79 optional string reason = 4; 80 81 // Human-readable message indicating details about last transition. 82 // +optional 83 optional string message = 5; 84 } 85 86 message Int64OrString { 87 optional int64 type = 1; 88 89 optional int64 int64Val = 2; 90 91 optional string strVal = 3; 92 } 93 94 // Metadata holds the annotations and labels of an event source pod 95 message Metadata { 96 map<string, string> annotations = 1; 97 98 map<string, string> labels = 2; 99 } 100 101 // Resource represent arbitrary structured data. 102 message Resource { 103 optional bytes value = 1; 104 } 105 106 // S3Artifact contains information about an S3 connection and bucket 107 message S3Artifact { 108 optional string endpoint = 1; 109 110 optional S3Bucket bucket = 2; 111 112 optional string region = 3; 113 114 optional bool insecure = 4; 115 116 optional k8s.io.api.core.v1.SecretKeySelector accessKey = 5; 117 118 optional k8s.io.api.core.v1.SecretKeySelector secretKey = 6; 119 120 repeated string events = 7; 121 122 optional S3Filter filter = 8; 123 124 map<string, string> metadata = 9; 125 126 optional k8s.io.api.core.v1.SecretKeySelector caCertificate = 10; 127 } 128 129 // S3Bucket contains information to describe an S3 Bucket 130 message S3Bucket { 131 optional string key = 1; 132 133 optional string name = 2; 134 } 135 136 // S3Filter represents filters to apply to bucket notifications for specifying constraints on objects 137 message S3Filter { 138 optional string prefix = 1; 139 140 optional string suffix = 2; 141 } 142 143 // SASLConfig refers to SASL configuration for a client 144 message SASLConfig { 145 // SASLMechanism is the name of the enabled SASL mechanism. 146 // Possible values: OAUTHBEARER, PLAIN (defaults to PLAIN). 147 // +optional 148 optional string mechanism = 1; 149 150 // User is the authentication identity (authcid) to present for 151 // SASL/PLAIN or SASL/SCRAM authentication 152 optional k8s.io.api.core.v1.SecretKeySelector userSecret = 2; 153 154 // Password for SASL/PLAIN authentication 155 optional k8s.io.api.core.v1.SecretKeySelector passwordSecret = 3; 156 } 157 158 // SchemaRegistryConfig refers to configuration for a client 159 message SchemaRegistryConfig { 160 // Schema Registry URL. 161 optional string url = 1; 162 163 // Schema ID 164 optional int32 schemaId = 2; 165 166 // +optional 167 // SchemaRegistry - basic authentication 168 optional BasicAuth auth = 3; 169 } 170 171 // SecureHeader refers to HTTP Headers with auth tokens as values 172 message SecureHeader { 173 optional string name = 1; 174 175 // Values can be read from either secrets or configmaps 176 optional ValueFromSource valueFrom = 2; 177 } 178 179 // Status is a common structure which can be used for Status field. 180 message Status { 181 // Conditions are the latest available observations of a resource's current state. 182 // +optional 183 // +patchMergeKey=type 184 // +patchStrategy=merge 185 repeated Condition conditions = 1; 186 } 187 188 // TLSConfig refers to TLS configuration for a client. 189 message TLSConfig { 190 // CACertSecret refers to the secret that contains the CA cert 191 optional k8s.io.api.core.v1.SecretKeySelector caCertSecret = 1; 192 193 // ClientCertSecret refers to the secret that contains the client cert 194 optional k8s.io.api.core.v1.SecretKeySelector clientCertSecret = 2; 195 196 // ClientKeySecret refers to the secret that contains the client key 197 optional k8s.io.api.core.v1.SecretKeySelector clientKeySecret = 3; 198 199 // If true, skips creation of TLSConfig with certs and creates an empty TLSConfig. (Defaults to false) 200 // +optional 201 optional bool insecureSkipVerify = 4; 202 } 203 204 // ValueFromSource allows you to reference keys from either a Configmap or Secret 205 message ValueFromSource { 206 optional k8s.io.api.core.v1.SecretKeySelector secretKeyRef = 1; 207 208 optional k8s.io.api.core.v1.ConfigMapKeySelector configMapKeyRef = 2; 209 } 210