github.com/argoproj/argo-cd/v2@v2.10.9/server/certificate/certificate.proto (about) 1 syntax = "proto3"; 2 option go_package = "github.com/argoproj/argo-cd/v2/pkg/apiclient/certificate"; 3 4 // Certificate Service 5 // 6 // Certificate Service API performs CRUD actions against repository certificate 7 // resources. 8 package certificate; 9 10 import "google/api/annotations.proto"; 11 import "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1/generated.proto"; 12 13 // Message to query the server for configured repository certificates 14 message RepositoryCertificateQuery { 15 // A file-glob pattern (not regular expression) the host name has to match 16 string hostNamePattern = 1; 17 // The type of the certificate to match (ssh or https) 18 string certType = 2; 19 // The sub type of the certificate to match (protocol dependent, usually only used for ssh certs) 20 string certSubType = 3; 21 } 22 23 // Request to create a set of certificates 24 message RepositoryCertificateCreateRequest { 25 // List of certificates to be created 26 github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.RepositoryCertificateList certificates = 1; 27 // Whether to upsert already existing certificates 28 bool upsert = 2; 29 } 30 31 message RepositoryCertificateResponse {} 32 33 service CertificateService { 34 // List all available repository certificates 35 rpc ListCertificates(RepositoryCertificateQuery) returns (github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.RepositoryCertificateList) { 36 option (google.api.http).get = "/api/v1/certificates"; 37 } 38 39 // Creates repository certificates on the server 40 rpc CreateCertificate(RepositoryCertificateCreateRequest) returns (github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.RepositoryCertificateList) { 41 option (google.api.http) = { 42 post: "/api/v1/certificates" 43 body: "certificates" 44 }; 45 } 46 47 // Delete the certificates that match the RepositoryCertificateQuery 48 rpc DeleteCertificate(RepositoryCertificateQuery) returns (github.com.argoproj.argo_cd.v2.pkg.apis.application.v1alpha1.RepositoryCertificateList) { 49 option (google.api.http).delete = "/api/v1/certificates"; 50 } 51 }