github.com/darkowlzz/helm@v2.5.1-0.20171213183701-6707fe0468d4+incompatible/_proto/hapi/rudder/rudder.proto (about)

     1  // Copyright 2017 The Kubernetes Authors All rights reserved.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  syntax = "proto3";
    16  
    17  package hapi.services.rudder;
    18  
    19  import "hapi/release/info.proto";
    20  import "hapi/release/release.proto";
    21  
    22  option go_package = "rudder";
    23  
    24  service ReleaseModuleService {
    25  	rpc Version(VersionReleaseRequest) returns (VersionReleaseResponse)  {
    26  	}
    27  
    28  	// InstallRelease requests installation of a chart as a new release.
    29  	rpc InstallRelease(InstallReleaseRequest) returns (InstallReleaseResponse) {
    30  	}
    31  
    32  	// DeleteRelease requests deletion of a named release.
    33  	rpc DeleteRelease(DeleteReleaseRequest) returns (DeleteReleaseResponse) {
    34  	}
    35  
    36  	// RollbackRelease rolls back a release to a previous version.
    37  	rpc RollbackRelease(RollbackReleaseRequest) returns (RollbackReleaseResponse) {
    38  	}
    39  
    40  	// UpgradeRelease updates release content.
    41  	rpc UpgradeRelease(UpgradeReleaseRequest) returns (UpgradeReleaseResponse) {
    42  	}
    43  
    44  	// ReleaseStatus retrieves release status.
    45  	rpc ReleaseStatus(ReleaseStatusRequest) returns (ReleaseStatusResponse) {
    46  	}
    47  }
    48  
    49  message Result {
    50  	enum Status {
    51  		// No status set
    52  		UNKNOWN = 0;
    53  		// Operation was successful
    54  		SUCCESS = 1;
    55  		// Operation had no results (e.g. upgrade identical, rollback to same, delete non-existent)
    56  		UNCHANGED = 2;
    57  		// Operation failed
    58  		ERROR = 3;
    59  	}
    60  	string info = 1;
    61  	repeated string log = 2;
    62  }
    63  
    64  message VersionReleaseRequest {
    65  }
    66  
    67  message VersionReleaseResponse {
    68  	string name = 1;     // The canonical name of the release module
    69  	string version = 2;  // The version of the release module
    70  }
    71  
    72  message InstallReleaseRequest {
    73  	hapi.release.Release release = 1;
    74  }
    75  message InstallReleaseResponse {
    76  	hapi.release.Release release = 1;
    77  	Result result = 2;
    78  }
    79  
    80  message DeleteReleaseRequest {
    81  	hapi.release.Release release = 1;
    82  }
    83  message DeleteReleaseResponse {
    84  	hapi.release.Release release = 1;
    85  	Result result = 2;
    86  }
    87  
    88  message UpgradeReleaseRequest{
    89          hapi.release.Release current = 1;
    90          hapi.release.Release target = 2;
    91          int64 Timeout = 3;
    92          bool Wait = 4;
    93          bool Recreate = 5;
    94          bool Force = 6;
    95  }
    96  message UpgradeReleaseResponse{
    97  	hapi.release.Release release = 1;
    98  	Result result = 2;
    99  }
   100  
   101  message RollbackReleaseRequest{
   102          hapi.release.Release current = 1;
   103          hapi.release.Release target = 2;
   104          int64 Timeout = 3;
   105          bool Wait = 4;
   106          bool Recreate = 5;
   107          bool Force = 6;
   108  }
   109  message RollbackReleaseResponse{
   110  	hapi.release.Release release = 1;
   111  	Result result = 2;
   112  }
   113  
   114  message ReleaseStatusRequest{
   115          hapi.release.Release release = 1;
   116  }
   117  message ReleaseStatusResponse{
   118  	hapi.release.Release release = 1;
   119  	hapi.release.Info info = 2;
   120  }