fix(proto): fix style issues and documentation

This fixes indentation, documentation, and removes unused protobuf
files.
pull/688/head
Matt Butcher 9 years ago
parent 9546b27d23
commit 3ddacb6b4b

@ -8,11 +8,8 @@ import "hapi/chart/template.proto";
option go_package = "chart"; option go_package = "chart";
// // Chart is a helm package that contains metadata, a default config, zero or more
// Chart:
// A chart is a helm package that contains metadata, a default config, zero or more
// optionally parameterizable templates, and zero or more charts (dependencies). // optionally parameterizable templates, and zero or more charts (dependencies).
//
message Chart { message Chart {
// Contents of the Chartfile. // Contents of the Chartfile.
hapi.chart.Metadata metadata = 1; hapi.chart.Metadata metadata = 1;

@ -4,22 +4,14 @@ package hapi.chart;
option go_package = "chart"; option go_package = "chart";
// // Config supplies values to the parametrizable templates of a chart.
// Config:
//
// A config supplies values to the parametrizable templates of a chart.
//
message Config { message Config {
string raw = 1; string raw = 1;
map<string,Value> values = 2; map<string,Value> values = 2;
} }
// // Value describes a configuration value as a string.
// Value:
//
// TODO
//
message Value { message Value {
string value = 1; string value = 1;
} }

@ -4,11 +4,7 @@ package hapi.chart;
option go_package = "chart"; option go_package = "chart";
// // Maintainer describes a Chart maintainer.
// Maintainer:
//
// A descriptor of the Chart maintainer(s).
//
message Maintainer { message Maintainer {
// Name is a user name or organization name // Name is a user name or organization name
string name = 1; string name = 1;
@ -17,19 +13,14 @@ message Maintainer {
string email = 2; string email = 2;
} }
// // Metadata for a Chart file. This models the structure of a Chart.yaml file.
// Metadata:
//
// Metadata for a Chart file. This models the structure
// of a Chart.yaml file.
// //
// Spec: https://github.com/kubernetes/helm/blob/master/docs/design/chart_format.md#the-chart-file // Spec: https://github.com/kubernetes/helm/blob/master/docs/design/chart_format.md#the-chart-file
//
message Metadata { message Metadata {
// The name of the chart // The name of the chart
string name = 1; string name = 1;
// The URL to a relecant project page, git repo, or contact person // The URL to a relevant project page, git repo, or contact person
string home = 2; string home = 2;
// Source is the URL to the source code of this chart // Source is the URL to the source code of this chart

@ -7,10 +7,7 @@ import "hapi/release/status.proto";
option go_package = "release"; option go_package = "release";
// // Info describes release information.
// Info:
//
//
message Info { message Info {
Status status = 1; Status status = 1;

@ -8,12 +8,8 @@ import "hapi/chart/chart.proto";
option go_package = "release"; option go_package = "release";
// // Release describes a deployment of a chart, together with the chart
// Release:
//
// A release describes a deployment of a chart, together with the chart
// and the variables used to deploy that chart. // and the variables used to deploy that chart.
//
message Release { message Release {
// Name is the name of the release // Name is the name of the release
string name = 1; string name = 1;

@ -6,10 +6,7 @@ import "google/protobuf/any.proto";
option go_package = "release"; option go_package = "release";
// // Status defines the status of a release.
// Status:
//
//
message Status { message Status {
enum Code { enum Code {
// Status_UNKNOWN indicates that a release is in an uncertain state. // Status_UNKNOWN indicates that a release is in an uncertain state.

@ -1,16 +0,0 @@
syntax = "proto3";
package hapi.services.probe;
option go_package = "services";
service ProbeService {
rpc Ready(ReadyRequest) returns (ReadyResponse) {
}
}
message ReadyRequest {
}
message ReadyResponse {
}

@ -9,10 +9,7 @@ import "hapi/release/info.proto";
option go_package = "services"; option go_package = "services";
// // ReleaseService is the service that a helm application uses to mutate,
// ReleaseService:
//
// The service that a helm application uses to mutate,
// query, and manage releases. // query, and manage releases.
// //
// Release: A named installation composed of a chart and // Release: A named installation composed of a chart and
@ -26,53 +23,36 @@ option go_package = "services";
// metadata, a default config, zero or more // metadata, a default config, zero or more
// optionally parameterizable templates, and // optionally parameterizable templates, and
// zero or more charts (dependencies). // zero or more charts (dependencies).
//
//
service ReleaseService { service ReleaseService {
// // ListReleases retrieves release history.
// Retrieve release history. TODO: Allow filtering the set of releases by // TODO: Allow filtering the set of releases by
// release status. By default, ListAllReleases returns the releases who // release status. By default, ListAllReleases returns the releases who
// current status is "Active". // current status is "Active".
//
rpc ListReleases(ListReleasesRequest) returns (stream ListReleasesResponse) { rpc ListReleases(ListReleasesRequest) returns (stream ListReleasesResponse) {
} }
// // GetReleasesStatus retrieves status information for the specified release.
// Retrieve status information for the specified release.
//
rpc GetReleaseStatus(GetReleaseStatusRequest) returns (GetReleaseStatusResponse) { rpc GetReleaseStatus(GetReleaseStatusRequest) returns (GetReleaseStatusResponse) {
} }
// // GetReleaseContent retrieves the release content (chart + value) for the specifed release.
// Retrieve the release content (chart + value) for the specifed release.
//
rpc GetReleaseContent(GetReleaseContentRequest) returns (GetReleaseContentResponse) { rpc GetReleaseContent(GetReleaseContentRequest) returns (GetReleaseContentResponse) {
} }
// // UpdateRelease updates release content.
// Update release content.
//
rpc UpdateRelease(UpdateReleaseRequest) returns (UpdateReleaseResponse) { rpc UpdateRelease(UpdateReleaseRequest) returns (UpdateReleaseResponse) {
} }
// // InstallRelease requests installation of a chart as a new release.
// Request release install.
//
rpc InstallRelease(InstallReleaseRequest) returns (InstallReleaseResponse) { rpc InstallRelease(InstallReleaseRequest) returns (InstallReleaseResponse) {
} }
// // UninstallRelease requests deletion of a named release.
// Request release deletion.
//
rpc UninstallRelease(UninstallReleaseRequest) returns (UninstallReleaseResponse) { rpc UninstallRelease(UninstallReleaseRequest) returns (UninstallReleaseResponse) {
} }
} }
// // ListReleasesRequest requests a list of releases.
// ListReleasesRequest:
//
// TODO
//
message ListReleasesRequest { message ListReleasesRequest {
// The maximum number of releases to be returned // The maximum number of releases to be returned
int64 limit = 1; int64 limit = 1;
@ -81,11 +61,7 @@ message ListReleasesRequest {
int64 offset = 2; int64 offset = 2;
} }
// // ListReleasesResponse is a list of releases.
// ListReleasesResponse:
//
// TODO
//
message ListReleasesResponse { message ListReleasesResponse {
// The expected total number of releases to be returned // The expected total number of releases to be returned
int64 count = 1; int64 count = 1;
@ -127,27 +103,15 @@ message GetReleaseContentResponse {
hapi.release.Release release = 1; hapi.release.Release release = 1;
} }
// // UpdateReleaseRequest updates a release.
// UpdateReleaseRequest:
//
// TODO
//
message UpdateReleaseRequest { message UpdateReleaseRequest {
} }
// // UpdateReleaseResponse is the response to an update request.
// UpdateReleaseResponse:
//
// TODO
//
message UpdateReleaseResponse { message UpdateReleaseResponse {
} }
// // InstallReleaseRequest is the request for an installation of a chart.
// InstallReleaseRequest:
//
// TODO
//
message InstallReleaseRequest { message InstallReleaseRequest {
// Chart is the protobuf representation of a chart. // Chart is the protobuf representation of a chart.
hapi.chart.Chart chart = 1; hapi.chart.Chart chart = 1;
@ -159,11 +123,7 @@ message InstallReleaseRequest {
bool dry_run = 3; bool dry_run = 3;
} }
// // InstallReleaseResponse is the response from a release installation.
// InstallReleaseResponse:
//
// TODO
//
message InstallReleaseResponse { message InstallReleaseResponse {
hapi.release.Release release = 1; hapi.release.Release release = 1;
} }

@ -41,6 +41,11 @@ Helm and Tiller communicate using gRPC. To get started with gRPC, you will need
Note that you need to be on protobuf 3.x (`protoc --version`) and use the latest Go plugin. Note that you need to be on protobuf 3.x (`protoc --version`) and use the latest Go plugin.
While the gRPC and ProtoBuf specs remain silent on indentation, we
require that the indentation style matches the Go format specification.
Namely, protocol buffers should use tab-based indentation and rpc
declarations should follow the style of Go function declarations.
### The Helm API (HAPI) ### The Helm API (HAPI)
We use gRPC as an API layer. See `pkg/proto/hapi` for the generated Go code, We use gRPC as an API layer. See `pkg/proto/hapi` for the generated Go code,

@ -34,11 +34,8 @@ var _ = math.Inf
// is compatible with the proto package it is being compiled against. // is compatible with the proto package it is being compiled against.
const _ = proto.ProtoPackageIsVersion1 const _ = proto.ProtoPackageIsVersion1
// // Chart is a helm package that contains metadata, a default config, zero or more
// Chart:
// A chart is a helm package that contains metadata, a default config, zero or more
// optionally parameterizable templates, and zero or more charts (dependencies). // optionally parameterizable templates, and zero or more charts (dependencies).
//
type Chart struct { type Chart struct {
// Contents of the Chartfile. // Contents of the Chartfile.
Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`

@ -13,11 +13,7 @@ var _ = proto.Marshal
var _ = fmt.Errorf var _ = fmt.Errorf
var _ = math.Inf var _ = math.Inf
// // Config supplies values to the parametrizable templates of a chart.
// Config:
//
// A config supplies values to the parametrizable templates of a chart.
//
type Config struct { type Config struct {
Raw string `protobuf:"bytes,1,opt,name=raw" json:"raw,omitempty"` Raw string `protobuf:"bytes,1,opt,name=raw" json:"raw,omitempty"`
Values map[string]*Value `protobuf:"bytes,2,rep,name=values" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` Values map[string]*Value `protobuf:"bytes,2,rep,name=values" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
@ -35,11 +31,7 @@ func (m *Config) GetValues() map[string]*Value {
return nil return nil
} }
// // Value describes a configuration value as a string.
// Value:
//
// TODO
//
type Value struct { type Value struct {
Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"` Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
} }

@ -13,11 +13,7 @@ var _ = proto.Marshal
var _ = fmt.Errorf var _ = fmt.Errorf
var _ = math.Inf var _ = math.Inf
// // Maintainer describes a Chart maintainer.
// Maintainer:
//
// A descriptor of the Chart maintainer(s).
//
type Maintainer struct { type Maintainer struct {
// Name is a user name or organization name // Name is a user name or organization name
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
@ -30,18 +26,13 @@ func (m *Maintainer) String() string { return proto.CompactTextString
func (*Maintainer) ProtoMessage() {} func (*Maintainer) ProtoMessage() {}
func (*Maintainer) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} } func (*Maintainer) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
// // Metadata for a Chart file. This models the structure of a Chart.yaml file.
// Metadata:
//
// Metadata for a Chart file. This models the structure
// of a Chart.yaml file.
// //
// Spec: https://github.com/kubernetes/helm/blob/master/docs/design/chart_format.md#the-chart-file // Spec: https://github.com/kubernetes/helm/blob/master/docs/design/chart_format.md#the-chart-file
//
type Metadata struct { type Metadata struct {
// The name of the chart // The name of the chart
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// The URL to a relecant project page, git repo, or contact person // The URL to a relevant project page, git repo, or contact person
Home string `protobuf:"bytes,2,opt,name=home" json:"home,omitempty"` Home string `protobuf:"bytes,2,opt,name=home" json:"home,omitempty"`
// Source is the URL to the source code of this chart // Source is the URL to the source code of this chart
Sources []string `protobuf:"bytes,3,rep,name=sources" json:"sources,omitempty"` Sources []string `protobuf:"bytes,3,rep,name=sources" json:"sources,omitempty"`

@ -31,10 +31,7 @@ var _ = math.Inf
// is compatible with the proto package it is being compiled against. // is compatible with the proto package it is being compiled against.
const _ = proto.ProtoPackageIsVersion1 const _ = proto.ProtoPackageIsVersion1
// // Info describes release information.
// Info:
//
//
type Info struct { type Info struct {
Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
FirstDeployed *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=first_deployed,json=firstDeployed" json:"first_deployed,omitempty"` FirstDeployed *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=first_deployed,json=firstDeployed" json:"first_deployed,omitempty"`

@ -15,12 +15,8 @@ var _ = proto.Marshal
var _ = fmt.Errorf var _ = fmt.Errorf
var _ = math.Inf var _ = math.Inf
// // Release describes a deployment of a chart, together with the chart
// Release:
//
// A release describes a deployment of a chart, together with the chart
// and the variables used to deploy that chart. // and the variables used to deploy that chart.
//
type Release struct { type Release struct {
// Name is the name of the release // Name is the name of the release
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`

@ -49,10 +49,7 @@ func (x Status_Code) String() string {
} }
func (Status_Code) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 0} } func (Status_Code) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 0} }
// // Status defines the status of a release.
// Status:
//
//
type Status struct { type Status struct {
Code Status_Code `protobuf:"varint,1,opt,name=code,enum=hapi.release.Status_Code" json:"code,omitempty"` Code Status_Code `protobuf:"varint,1,opt,name=code,enum=hapi.release.Status_Code" json:"code,omitempty"`
Details *google_protobuf1.Any `protobuf:"bytes,2,opt,name=details" json:"details,omitempty"` Details *google_protobuf1.Any `protobuf:"bytes,2,opt,name=details" json:"details,omitempty"`

@ -1,145 +0,0 @@
// Code generated by protoc-gen-go.
// source: hapi/services/probe.proto
// DO NOT EDIT!
/*
Package services is a generated protocol buffer package.
It is generated from these files:
hapi/services/probe.proto
hapi/services/tiller.proto
It has these top-level messages:
ReadyRequest
ReadyResponse
ListReleasesRequest
ListReleasesResponse
GetReleaseStatusRequest
GetReleaseStatusResponse
GetReleaseContentRequest
GetReleaseContentResponse
UpdateReleaseRequest
UpdateReleaseResponse
InstallReleaseRequest
InstallReleaseResponse
UninstallReleaseRequest
UninstallReleaseResponse
*/
package services
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
const _ = proto.ProtoPackageIsVersion1
type ReadyRequest struct {
}
func (m *ReadyRequest) Reset() { *m = ReadyRequest{} }
func (m *ReadyRequest) String() string { return proto.CompactTextString(m) }
func (*ReadyRequest) ProtoMessage() {}
func (*ReadyRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
type ReadyResponse struct {
}
func (m *ReadyResponse) Reset() { *m = ReadyResponse{} }
func (m *ReadyResponse) String() string { return proto.CompactTextString(m) }
func (*ReadyResponse) ProtoMessage() {}
func (*ReadyResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func init() {
proto.RegisterType((*ReadyRequest)(nil), "hapi.services.probe.ReadyRequest")
proto.RegisterType((*ReadyResponse)(nil), "hapi.services.probe.ReadyResponse")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion1
// Client API for ProbeService service
type ProbeServiceClient interface {
Ready(ctx context.Context, in *ReadyRequest, opts ...grpc.CallOption) (*ReadyResponse, error)
}
type probeServiceClient struct {
cc *grpc.ClientConn
}
func NewProbeServiceClient(cc *grpc.ClientConn) ProbeServiceClient {
return &probeServiceClient{cc}
}
func (c *probeServiceClient) Ready(ctx context.Context, in *ReadyRequest, opts ...grpc.CallOption) (*ReadyResponse, error) {
out := new(ReadyResponse)
err := grpc.Invoke(ctx, "/hapi.services.probe.ProbeService/Ready", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for ProbeService service
type ProbeServiceServer interface {
Ready(context.Context, *ReadyRequest) (*ReadyResponse, error)
}
func RegisterProbeServiceServer(s *grpc.Server, srv ProbeServiceServer) {
s.RegisterService(&_ProbeService_serviceDesc, srv)
}
func _ProbeService_Ready_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
in := new(ReadyRequest)
if err := dec(in); err != nil {
return nil, err
}
out, err := srv.(ProbeServiceServer).Ready(ctx, in)
if err != nil {
return nil, err
}
return out, nil
}
var _ProbeService_serviceDesc = grpc.ServiceDesc{
ServiceName: "hapi.services.probe.ProbeService",
HandlerType: (*ProbeServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Ready",
Handler: _ProbeService_Ready_Handler,
},
},
Streams: []grpc.StreamDesc{},
}
var fileDescriptor0 = []byte{
// 131 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0x48, 0x2c, 0xc8,
0xd4, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0x2d, 0xd6, 0x2f, 0x28, 0xca, 0x4f, 0x4a, 0xd5,
0x03, 0x92, 0x25, 0xf9, 0x42, 0xc2, 0x20, 0x29, 0x3d, 0x98, 0x94, 0x1e, 0x58, 0x4a, 0x89, 0x8f,
0x8b, 0x27, 0x28, 0x35, 0x31, 0xa5, 0x32, 0x28, 0xb5, 0xb0, 0x34, 0xb5, 0xb8, 0x44, 0x89, 0x9f,
0x8b, 0x17, 0xca, 0x2f, 0x2e, 0xc8, 0xcf, 0x2b, 0x4e, 0x35, 0x4a, 0xe0, 0xe2, 0x09, 0x00, 0xa9,
0x0c, 0x86, 0xe8, 0x13, 0x0a, 0xe0, 0x62, 0x05, 0x2b, 0x10, 0x52, 0xd4, 0xc3, 0x62, 0x9e, 0x1e,
0xb2, 0x61, 0x52, 0x4a, 0xf8, 0x94, 0x40, 0xcc, 0x57, 0x62, 0x70, 0xe2, 0x8a, 0xe2, 0x80, 0xa9,
0x48, 0x62, 0x03, 0x3b, 0xd5, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x65, 0x03, 0x07, 0x01, 0xc7,
0x00, 0x00, 0x00,
}

@ -2,6 +2,26 @@
// source: hapi/services/tiller.proto // source: hapi/services/tiller.proto
// DO NOT EDIT! // DO NOT EDIT!
/*
Package services is a generated protocol buffer package.
It is generated from these files:
hapi/services/tiller.proto
It has these top-level messages:
ListReleasesRequest
ListReleasesResponse
GetReleaseStatusRequest
GetReleaseStatusResponse
GetReleaseContentRequest
GetReleaseContentResponse
UpdateReleaseRequest
UpdateReleaseResponse
InstallReleaseRequest
InstallReleaseResponse
UninstallReleaseRequest
UninstallReleaseResponse
*/
package services package services
import proto "github.com/golang/protobuf/proto" import proto "github.com/golang/protobuf/proto"
@ -22,11 +42,11 @@ var _ = proto.Marshal
var _ = fmt.Errorf var _ = fmt.Errorf
var _ = math.Inf var _ = math.Inf
// // This is a compile-time assertion to ensure that this generated file
// ListReleasesRequest: // is compatible with the proto package it is being compiled against.
// const _ = proto.ProtoPackageIsVersion1
// TODO
// // ListReleasesRequest requests a list of releases.
type ListReleasesRequest struct { type ListReleasesRequest struct {
// The maximum number of releases to be returned // The maximum number of releases to be returned
Limit int64 `protobuf:"varint,1,opt,name=limit" json:"limit,omitempty"` Limit int64 `protobuf:"varint,1,opt,name=limit" json:"limit,omitempty"`
@ -37,13 +57,9 @@ type ListReleasesRequest struct {
func (m *ListReleasesRequest) Reset() { *m = ListReleasesRequest{} } func (m *ListReleasesRequest) Reset() { *m = ListReleasesRequest{} }
func (m *ListReleasesRequest) String() string { return proto.CompactTextString(m) } func (m *ListReleasesRequest) String() string { return proto.CompactTextString(m) }
func (*ListReleasesRequest) ProtoMessage() {} func (*ListReleasesRequest) ProtoMessage() {}
func (*ListReleasesRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} } func (*ListReleasesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
// // ListReleasesResponse is a list of releases.
// ListReleasesResponse:
//
// TODO
//
type ListReleasesResponse struct { type ListReleasesResponse struct {
// The expected total number of releases to be returned // The expected total number of releases to be returned
Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"` Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
@ -58,7 +74,7 @@ type ListReleasesResponse struct {
func (m *ListReleasesResponse) Reset() { *m = ListReleasesResponse{} } func (m *ListReleasesResponse) Reset() { *m = ListReleasesResponse{} }
func (m *ListReleasesResponse) String() string { return proto.CompactTextString(m) } func (m *ListReleasesResponse) String() string { return proto.CompactTextString(m) }
func (*ListReleasesResponse) ProtoMessage() {} func (*ListReleasesResponse) ProtoMessage() {}
func (*ListReleasesResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} } func (*ListReleasesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *ListReleasesResponse) GetReleases() []*hapi_release2.Release { func (m *ListReleasesResponse) GetReleases() []*hapi_release2.Release {
if m != nil { if m != nil {
@ -76,7 +92,7 @@ type GetReleaseStatusRequest struct {
func (m *GetReleaseStatusRequest) Reset() { *m = GetReleaseStatusRequest{} } func (m *GetReleaseStatusRequest) Reset() { *m = GetReleaseStatusRequest{} }
func (m *GetReleaseStatusRequest) String() string { return proto.CompactTextString(m) } func (m *GetReleaseStatusRequest) String() string { return proto.CompactTextString(m) }
func (*GetReleaseStatusRequest) ProtoMessage() {} func (*GetReleaseStatusRequest) ProtoMessage() {}
func (*GetReleaseStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} } func (*GetReleaseStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
// GetReleaseStatusResponse is the response indicating the status of the named release. // GetReleaseStatusResponse is the response indicating the status of the named release.
type GetReleaseStatusResponse struct { type GetReleaseStatusResponse struct {
@ -89,7 +105,7 @@ type GetReleaseStatusResponse struct {
func (m *GetReleaseStatusResponse) Reset() { *m = GetReleaseStatusResponse{} } func (m *GetReleaseStatusResponse) Reset() { *m = GetReleaseStatusResponse{} }
func (m *GetReleaseStatusResponse) String() string { return proto.CompactTextString(m) } func (m *GetReleaseStatusResponse) String() string { return proto.CompactTextString(m) }
func (*GetReleaseStatusResponse) ProtoMessage() {} func (*GetReleaseStatusResponse) ProtoMessage() {}
func (*GetReleaseStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} } func (*GetReleaseStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *GetReleaseStatusResponse) GetInfo() *hapi_release1.Info { func (m *GetReleaseStatusResponse) GetInfo() *hapi_release1.Info {
if m != nil { if m != nil {
@ -107,7 +123,7 @@ type GetReleaseContentRequest struct {
func (m *GetReleaseContentRequest) Reset() { *m = GetReleaseContentRequest{} } func (m *GetReleaseContentRequest) Reset() { *m = GetReleaseContentRequest{} }
func (m *GetReleaseContentRequest) String() string { return proto.CompactTextString(m) } func (m *GetReleaseContentRequest) String() string { return proto.CompactTextString(m) }
func (*GetReleaseContentRequest) ProtoMessage() {} func (*GetReleaseContentRequest) ProtoMessage() {}
func (*GetReleaseContentRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} } func (*GetReleaseContentRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
// GetReleaseContentResponse is a response containing the contents of a release. // GetReleaseContentResponse is a response containing the contents of a release.
type GetReleaseContentResponse struct { type GetReleaseContentResponse struct {
@ -118,7 +134,7 @@ type GetReleaseContentResponse struct {
func (m *GetReleaseContentResponse) Reset() { *m = GetReleaseContentResponse{} } func (m *GetReleaseContentResponse) Reset() { *m = GetReleaseContentResponse{} }
func (m *GetReleaseContentResponse) String() string { return proto.CompactTextString(m) } func (m *GetReleaseContentResponse) String() string { return proto.CompactTextString(m) }
func (*GetReleaseContentResponse) ProtoMessage() {} func (*GetReleaseContentResponse) ProtoMessage() {}
func (*GetReleaseContentResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} } func (*GetReleaseContentResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *GetReleaseContentResponse) GetRelease() *hapi_release2.Release { func (m *GetReleaseContentResponse) GetRelease() *hapi_release2.Release {
if m != nil { if m != nil {
@ -127,37 +143,25 @@ func (m *GetReleaseContentResponse) GetRelease() *hapi_release2.Release {
return nil return nil
} }
// // UpdateReleaseRequest updates a release.
// UpdateReleaseRequest:
//
// TODO
//
type UpdateReleaseRequest struct { type UpdateReleaseRequest struct {
} }
func (m *UpdateReleaseRequest) Reset() { *m = UpdateReleaseRequest{} } func (m *UpdateReleaseRequest) Reset() { *m = UpdateReleaseRequest{} }
func (m *UpdateReleaseRequest) String() string { return proto.CompactTextString(m) } func (m *UpdateReleaseRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateReleaseRequest) ProtoMessage() {} func (*UpdateReleaseRequest) ProtoMessage() {}
func (*UpdateReleaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} } func (*UpdateReleaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
// // UpdateReleaseResponse is the response to an update request.
// UpdateReleaseResponse:
//
// TODO
//
type UpdateReleaseResponse struct { type UpdateReleaseResponse struct {
} }
func (m *UpdateReleaseResponse) Reset() { *m = UpdateReleaseResponse{} } func (m *UpdateReleaseResponse) Reset() { *m = UpdateReleaseResponse{} }
func (m *UpdateReleaseResponse) String() string { return proto.CompactTextString(m) } func (m *UpdateReleaseResponse) String() string { return proto.CompactTextString(m) }
func (*UpdateReleaseResponse) ProtoMessage() {} func (*UpdateReleaseResponse) ProtoMessage() {}
func (*UpdateReleaseResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7} } func (*UpdateReleaseResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
// // InstallReleaseRequest is the request for an installation of a chart.
// InstallReleaseRequest:
//
// TODO
//
type InstallReleaseRequest struct { type InstallReleaseRequest struct {
// Chart is the protobuf representation of a chart. // Chart is the protobuf representation of a chart.
Chart *hapi_chart3.Chart `protobuf:"bytes,1,opt,name=chart" json:"chart,omitempty"` Chart *hapi_chart3.Chart `protobuf:"bytes,1,opt,name=chart" json:"chart,omitempty"`
@ -172,7 +176,7 @@ type InstallReleaseRequest struct {
func (m *InstallReleaseRequest) Reset() { *m = InstallReleaseRequest{} } func (m *InstallReleaseRequest) Reset() { *m = InstallReleaseRequest{} }
func (m *InstallReleaseRequest) String() string { return proto.CompactTextString(m) } func (m *InstallReleaseRequest) String() string { return proto.CompactTextString(m) }
func (*InstallReleaseRequest) ProtoMessage() {} func (*InstallReleaseRequest) ProtoMessage() {}
func (*InstallReleaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{8} } func (*InstallReleaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
func (m *InstallReleaseRequest) GetChart() *hapi_chart3.Chart { func (m *InstallReleaseRequest) GetChart() *hapi_chart3.Chart {
if m != nil { if m != nil {
@ -188,11 +192,7 @@ func (m *InstallReleaseRequest) GetValues() *hapi_chart.Config {
return nil return nil
} }
// // InstallReleaseResponse is the response from a release installation.
// InstallReleaseResponse:
//
// TODO
//
type InstallReleaseResponse struct { type InstallReleaseResponse struct {
Release *hapi_release2.Release `protobuf:"bytes,1,opt,name=release" json:"release,omitempty"` Release *hapi_release2.Release `protobuf:"bytes,1,opt,name=release" json:"release,omitempty"`
} }
@ -200,7 +200,7 @@ type InstallReleaseResponse struct {
func (m *InstallReleaseResponse) Reset() { *m = InstallReleaseResponse{} } func (m *InstallReleaseResponse) Reset() { *m = InstallReleaseResponse{} }
func (m *InstallReleaseResponse) String() string { return proto.CompactTextString(m) } func (m *InstallReleaseResponse) String() string { return proto.CompactTextString(m) }
func (*InstallReleaseResponse) ProtoMessage() {} func (*InstallReleaseResponse) ProtoMessage() {}
func (*InstallReleaseResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{9} } func (*InstallReleaseResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
func (m *InstallReleaseResponse) GetRelease() *hapi_release2.Release { func (m *InstallReleaseResponse) GetRelease() *hapi_release2.Release {
if m != nil { if m != nil {
@ -218,7 +218,7 @@ type UninstallReleaseRequest struct {
func (m *UninstallReleaseRequest) Reset() { *m = UninstallReleaseRequest{} } func (m *UninstallReleaseRequest) Reset() { *m = UninstallReleaseRequest{} }
func (m *UninstallReleaseRequest) String() string { return proto.CompactTextString(m) } func (m *UninstallReleaseRequest) String() string { return proto.CompactTextString(m) }
func (*UninstallReleaseRequest) ProtoMessage() {} func (*UninstallReleaseRequest) ProtoMessage() {}
func (*UninstallReleaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{10} } func (*UninstallReleaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
// UninstallReleaseResponse represents a successful response to an uninstall request. // UninstallReleaseResponse represents a successful response to an uninstall request.
type UninstallReleaseResponse struct { type UninstallReleaseResponse struct {
@ -229,7 +229,7 @@ type UninstallReleaseResponse struct {
func (m *UninstallReleaseResponse) Reset() { *m = UninstallReleaseResponse{} } func (m *UninstallReleaseResponse) Reset() { *m = UninstallReleaseResponse{} }
func (m *UninstallReleaseResponse) String() string { return proto.CompactTextString(m) } func (m *UninstallReleaseResponse) String() string { return proto.CompactTextString(m) }
func (*UninstallReleaseResponse) ProtoMessage() {} func (*UninstallReleaseResponse) ProtoMessage() {}
func (*UninstallReleaseResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{11} } func (*UninstallReleaseResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
func (m *UninstallReleaseResponse) GetRelease() *hapi_release2.Release { func (m *UninstallReleaseResponse) GetRelease() *hapi_release2.Release {
if m != nil { if m != nil {
@ -264,31 +264,20 @@ const _ = grpc.SupportPackageIsVersion1
// Client API for ReleaseService service // Client API for ReleaseService service
type ReleaseServiceClient interface { type ReleaseServiceClient interface {
// // ListReleases retrieves release history.
// Retrieve release history. TODO: Allow filtering the set of releases by // TODO: Allow filtering the set of releases by
// release status. By default, ListAllReleases returns the releases who // release status. By default, ListAllReleases returns the releases who
// current status is "Active". // current status is "Active".
//
ListReleases(ctx context.Context, in *ListReleasesRequest, opts ...grpc.CallOption) (ReleaseService_ListReleasesClient, error) ListReleases(ctx context.Context, in *ListReleasesRequest, opts ...grpc.CallOption) (ReleaseService_ListReleasesClient, error)
// // GetReleasesStatus retrieves status information for the specified release.
// Retrieve status information for the specified release.
//
GetReleaseStatus(ctx context.Context, in *GetReleaseStatusRequest, opts ...grpc.CallOption) (*GetReleaseStatusResponse, error) GetReleaseStatus(ctx context.Context, in *GetReleaseStatusRequest, opts ...grpc.CallOption) (*GetReleaseStatusResponse, error)
// // GetReleaseContent retrieves the release content (chart + value) for the specifed release.
// Retrieve the release content (chart + value) for the specifed release.
//
GetReleaseContent(ctx context.Context, in *GetReleaseContentRequest, opts ...grpc.CallOption) (*GetReleaseContentResponse, error) GetReleaseContent(ctx context.Context, in *GetReleaseContentRequest, opts ...grpc.CallOption) (*GetReleaseContentResponse, error)
// // UpdateRelease updates release content.
// Update release content.
//
UpdateRelease(ctx context.Context, in *UpdateReleaseRequest, opts ...grpc.CallOption) (*UpdateReleaseResponse, error) UpdateRelease(ctx context.Context, in *UpdateReleaseRequest, opts ...grpc.CallOption) (*UpdateReleaseResponse, error)
// // InstallRelease requests installation of a chart as a new release.
// Request release install.
//
InstallRelease(ctx context.Context, in *InstallReleaseRequest, opts ...grpc.CallOption) (*InstallReleaseResponse, error) InstallRelease(ctx context.Context, in *InstallReleaseRequest, opts ...grpc.CallOption) (*InstallReleaseResponse, error)
// // UninstallRelease requests deletion of a named release.
// Request release deletion.
//
UninstallRelease(ctx context.Context, in *UninstallReleaseRequest, opts ...grpc.CallOption) (*UninstallReleaseResponse, error) UninstallRelease(ctx context.Context, in *UninstallReleaseRequest, opts ...grpc.CallOption) (*UninstallReleaseResponse, error)
} }
@ -380,31 +369,20 @@ func (c *releaseServiceClient) UninstallRelease(ctx context.Context, in *Uninsta
// Server API for ReleaseService service // Server API for ReleaseService service
type ReleaseServiceServer interface { type ReleaseServiceServer interface {
// // ListReleases retrieves release history.
// Retrieve release history. TODO: Allow filtering the set of releases by // TODO: Allow filtering the set of releases by
// release status. By default, ListAllReleases returns the releases who // release status. By default, ListAllReleases returns the releases who
// current status is "Active". // current status is "Active".
//
ListReleases(*ListReleasesRequest, ReleaseService_ListReleasesServer) error ListReleases(*ListReleasesRequest, ReleaseService_ListReleasesServer) error
// // GetReleasesStatus retrieves status information for the specified release.
// Retrieve status information for the specified release.
//
GetReleaseStatus(context.Context, *GetReleaseStatusRequest) (*GetReleaseStatusResponse, error) GetReleaseStatus(context.Context, *GetReleaseStatusRequest) (*GetReleaseStatusResponse, error)
// // GetReleaseContent retrieves the release content (chart + value) for the specifed release.
// Retrieve the release content (chart + value) for the specifed release.
//
GetReleaseContent(context.Context, *GetReleaseContentRequest) (*GetReleaseContentResponse, error) GetReleaseContent(context.Context, *GetReleaseContentRequest) (*GetReleaseContentResponse, error)
// // UpdateRelease updates release content.
// Update release content.
//
UpdateRelease(context.Context, *UpdateReleaseRequest) (*UpdateReleaseResponse, error) UpdateRelease(context.Context, *UpdateReleaseRequest) (*UpdateReleaseResponse, error)
// // InstallRelease requests installation of a chart as a new release.
// Request release install.
//
InstallRelease(context.Context, *InstallReleaseRequest) (*InstallReleaseResponse, error) InstallRelease(context.Context, *InstallReleaseRequest) (*InstallReleaseResponse, error)
// // UninstallRelease requests deletion of a named release.
// Request release deletion.
//
UninstallRelease(context.Context, *UninstallReleaseRequest) (*UninstallReleaseResponse, error) UninstallRelease(context.Context, *UninstallReleaseRequest) (*UninstallReleaseResponse, error)
} }
@ -527,7 +505,7 @@ var _ReleaseService_serviceDesc = grpc.ServiceDesc{
}, },
} }
var fileDescriptor1 = []byte{ var fileDescriptor0 = []byte{
// 540 bytes of a gzipped FileDescriptorProto // 540 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x55, 0xcd, 0x6e, 0xd3, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x55, 0xcd, 0x6e, 0xd3, 0x40,
0x10, 0xae, 0x49, 0x9a, 0x86, 0x29, 0x54, 0x74, 0xc8, 0x8f, 0xf1, 0xa9, 0xda, 0x03, 0x94, 0x42, 0x10, 0xae, 0x49, 0x9a, 0x86, 0x29, 0x54, 0x74, 0xc8, 0x8f, 0xf1, 0xa9, 0xda, 0x03, 0x94, 0x42,

Loading…
Cancel
Save