github.com/argoproj/argo-cd@v1.8.7/server/certificate/certificate.proto (about)

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