|
|
|
@ -43,11 +43,6 @@ import hapi_release1 "k8s.io/helm/pkg/proto/hapi/release"
|
|
|
|
|
import hapi_release3 "k8s.io/helm/pkg/proto/hapi/release"
|
|
|
|
|
import hapi_version "k8s.io/helm/pkg/proto/hapi/version"
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
@ -915,456 +910,6 @@ func init() {
|
|
|
|
|
proto.RegisterEnum("hapi.services.tiller.ListSort_SortOrder", ListSort_SortOrder_name, ListSort_SortOrder_value)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 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.SupportPackageIsVersion4
|
|
|
|
|
|
|
|
|
|
// Client API for ReleaseService service
|
|
|
|
|
|
|
|
|
|
type ReleaseServiceClient interface {
|
|
|
|
|
// ListReleases retrieves release history.
|
|
|
|
|
// TODO: Allow filtering the set of releases by
|
|
|
|
|
// release status. By default, ListAllReleases returns the releases who
|
|
|
|
|
// current status is "Active".
|
|
|
|
|
ListReleases(ctx context.Context, in *ListReleasesRequest, opts ...grpc.CallOption) (ReleaseService_ListReleasesClient, error)
|
|
|
|
|
// GetReleasesStatus retrieves status information for the specified release.
|
|
|
|
|
GetReleaseStatus(ctx context.Context, in *GetReleaseStatusRequest, opts ...grpc.CallOption) (*GetReleaseStatusResponse, error)
|
|
|
|
|
// GetReleaseContent retrieves the release content (chart + value) for the specified release.
|
|
|
|
|
GetReleaseContent(ctx context.Context, in *GetReleaseContentRequest, opts ...grpc.CallOption) (*GetReleaseContentResponse, error)
|
|
|
|
|
// UpdateRelease updates release content.
|
|
|
|
|
UpdateRelease(ctx context.Context, in *UpdateReleaseRequest, opts ...grpc.CallOption) (*UpdateReleaseResponse, error)
|
|
|
|
|
// InstallRelease requests installation of a chart as a new release.
|
|
|
|
|
InstallRelease(ctx context.Context, in *InstallReleaseRequest, opts ...grpc.CallOption) (*InstallReleaseResponse, error)
|
|
|
|
|
// UninstallRelease requests deletion of a named release.
|
|
|
|
|
UninstallRelease(ctx context.Context, in *UninstallReleaseRequest, opts ...grpc.CallOption) (*UninstallReleaseResponse, error)
|
|
|
|
|
// GetVersion returns the current version of the server.
|
|
|
|
|
GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*GetVersionResponse, error)
|
|
|
|
|
// RollbackRelease rolls back a release to a previous version.
|
|
|
|
|
RollbackRelease(ctx context.Context, in *RollbackReleaseRequest, opts ...grpc.CallOption) (*RollbackReleaseResponse, error)
|
|
|
|
|
// ReleaseHistory retrieves a releasse's history.
|
|
|
|
|
GetHistory(ctx context.Context, in *GetHistoryRequest, opts ...grpc.CallOption) (*GetHistoryResponse, error)
|
|
|
|
|
// RunReleaseTest executes the tests defined of a named release
|
|
|
|
|
RunReleaseTest(ctx context.Context, in *TestReleaseRequest, opts ...grpc.CallOption) (ReleaseService_RunReleaseTestClient, error)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type releaseServiceClient struct {
|
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func NewReleaseServiceClient(cc *grpc.ClientConn) ReleaseServiceClient {
|
|
|
|
|
return &releaseServiceClient{cc}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *releaseServiceClient) ListReleases(ctx context.Context, in *ListReleasesRequest, opts ...grpc.CallOption) (ReleaseService_ListReleasesClient, error) {
|
|
|
|
|
stream, err := grpc.NewClientStream(ctx, &_ReleaseService_serviceDesc.Streams[0], c.cc, "/hapi.services.tiller.ReleaseService/ListReleases", opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
x := &releaseServiceListReleasesClient{stream}
|
|
|
|
|
if err := x.ClientStream.SendMsg(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if err := x.ClientStream.CloseSend(); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return x, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ReleaseService_ListReleasesClient interface {
|
|
|
|
|
Recv() (*ListReleasesResponse, error)
|
|
|
|
|
grpc.ClientStream
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type releaseServiceListReleasesClient struct {
|
|
|
|
|
grpc.ClientStream
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *releaseServiceListReleasesClient) Recv() (*ListReleasesResponse, error) {
|
|
|
|
|
m := new(ListReleasesResponse)
|
|
|
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return m, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *releaseServiceClient) GetReleaseStatus(ctx context.Context, in *GetReleaseStatusRequest, opts ...grpc.CallOption) (*GetReleaseStatusResponse, error) {
|
|
|
|
|
out := new(GetReleaseStatusResponse)
|
|
|
|
|
err := grpc.Invoke(ctx, "/hapi.services.tiller.ReleaseService/GetReleaseStatus", in, out, c.cc, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *releaseServiceClient) GetReleaseContent(ctx context.Context, in *GetReleaseContentRequest, opts ...grpc.CallOption) (*GetReleaseContentResponse, error) {
|
|
|
|
|
out := new(GetReleaseContentResponse)
|
|
|
|
|
err := grpc.Invoke(ctx, "/hapi.services.tiller.ReleaseService/GetReleaseContent", in, out, c.cc, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *releaseServiceClient) UpdateRelease(ctx context.Context, in *UpdateReleaseRequest, opts ...grpc.CallOption) (*UpdateReleaseResponse, error) {
|
|
|
|
|
out := new(UpdateReleaseResponse)
|
|
|
|
|
err := grpc.Invoke(ctx, "/hapi.services.tiller.ReleaseService/UpdateRelease", in, out, c.cc, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *releaseServiceClient) InstallRelease(ctx context.Context, in *InstallReleaseRequest, opts ...grpc.CallOption) (*InstallReleaseResponse, error) {
|
|
|
|
|
out := new(InstallReleaseResponse)
|
|
|
|
|
err := grpc.Invoke(ctx, "/hapi.services.tiller.ReleaseService/InstallRelease", in, out, c.cc, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *releaseServiceClient) UninstallRelease(ctx context.Context, in *UninstallReleaseRequest, opts ...grpc.CallOption) (*UninstallReleaseResponse, error) {
|
|
|
|
|
out := new(UninstallReleaseResponse)
|
|
|
|
|
err := grpc.Invoke(ctx, "/hapi.services.tiller.ReleaseService/UninstallRelease", in, out, c.cc, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *releaseServiceClient) GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*GetVersionResponse, error) {
|
|
|
|
|
out := new(GetVersionResponse)
|
|
|
|
|
err := grpc.Invoke(ctx, "/hapi.services.tiller.ReleaseService/GetVersion", in, out, c.cc, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *releaseServiceClient) RollbackRelease(ctx context.Context, in *RollbackReleaseRequest, opts ...grpc.CallOption) (*RollbackReleaseResponse, error) {
|
|
|
|
|
out := new(RollbackReleaseResponse)
|
|
|
|
|
err := grpc.Invoke(ctx, "/hapi.services.tiller.ReleaseService/RollbackRelease", in, out, c.cc, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *releaseServiceClient) GetHistory(ctx context.Context, in *GetHistoryRequest, opts ...grpc.CallOption) (*GetHistoryResponse, error) {
|
|
|
|
|
out := new(GetHistoryResponse)
|
|
|
|
|
err := grpc.Invoke(ctx, "/hapi.services.tiller.ReleaseService/GetHistory", in, out, c.cc, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *releaseServiceClient) RunReleaseTest(ctx context.Context, in *TestReleaseRequest, opts ...grpc.CallOption) (ReleaseService_RunReleaseTestClient, error) {
|
|
|
|
|
stream, err := grpc.NewClientStream(ctx, &_ReleaseService_serviceDesc.Streams[1], c.cc, "/hapi.services.tiller.ReleaseService/RunReleaseTest", opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
x := &releaseServiceRunReleaseTestClient{stream}
|
|
|
|
|
if err := x.ClientStream.SendMsg(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if err := x.ClientStream.CloseSend(); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return x, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ReleaseService_RunReleaseTestClient interface {
|
|
|
|
|
Recv() (*TestReleaseResponse, error)
|
|
|
|
|
grpc.ClientStream
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type releaseServiceRunReleaseTestClient struct {
|
|
|
|
|
grpc.ClientStream
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *releaseServiceRunReleaseTestClient) Recv() (*TestReleaseResponse, error) {
|
|
|
|
|
m := new(TestReleaseResponse)
|
|
|
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return m, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Server API for ReleaseService service
|
|
|
|
|
|
|
|
|
|
type ReleaseServiceServer interface {
|
|
|
|
|
// ListReleases retrieves release history.
|
|
|
|
|
// TODO: Allow filtering the set of releases by
|
|
|
|
|
// release status. By default, ListAllReleases returns the releases who
|
|
|
|
|
// current status is "Active".
|
|
|
|
|
ListReleases(*ListReleasesRequest, ReleaseService_ListReleasesServer) error
|
|
|
|
|
// GetReleasesStatus retrieves status information for the specified release.
|
|
|
|
|
GetReleaseStatus(context.Context, *GetReleaseStatusRequest) (*GetReleaseStatusResponse, error)
|
|
|
|
|
// GetReleaseContent retrieves the release content (chart + value) for the specified release.
|
|
|
|
|
GetReleaseContent(context.Context, *GetReleaseContentRequest) (*GetReleaseContentResponse, error)
|
|
|
|
|
// UpdateRelease updates release content.
|
|
|
|
|
UpdateRelease(context.Context, *UpdateReleaseRequest) (*UpdateReleaseResponse, error)
|
|
|
|
|
// InstallRelease requests installation of a chart as a new release.
|
|
|
|
|
InstallRelease(context.Context, *InstallReleaseRequest) (*InstallReleaseResponse, error)
|
|
|
|
|
// UninstallRelease requests deletion of a named release.
|
|
|
|
|
UninstallRelease(context.Context, *UninstallReleaseRequest) (*UninstallReleaseResponse, error)
|
|
|
|
|
// GetVersion returns the current version of the server.
|
|
|
|
|
GetVersion(context.Context, *GetVersionRequest) (*GetVersionResponse, error)
|
|
|
|
|
// RollbackRelease rolls back a release to a previous version.
|
|
|
|
|
RollbackRelease(context.Context, *RollbackReleaseRequest) (*RollbackReleaseResponse, error)
|
|
|
|
|
// ReleaseHistory retrieves a releasse's history.
|
|
|
|
|
GetHistory(context.Context, *GetHistoryRequest) (*GetHistoryResponse, error)
|
|
|
|
|
// RunReleaseTest executes the tests defined of a named release
|
|
|
|
|
RunReleaseTest(*TestReleaseRequest, ReleaseService_RunReleaseTestServer) error
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func RegisterReleaseServiceServer(s *grpc.Server, srv ReleaseServiceServer) {
|
|
|
|
|
s.RegisterService(&_ReleaseService_serviceDesc, srv)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _ReleaseService_ListReleases_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
|
|
|
m := new(ListReleasesRequest)
|
|
|
|
|
if err := stream.RecvMsg(m); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
return srv.(ReleaseServiceServer).ListReleases(m, &releaseServiceListReleasesServer{stream})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ReleaseService_ListReleasesServer interface {
|
|
|
|
|
Send(*ListReleasesResponse) error
|
|
|
|
|
grpc.ServerStream
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type releaseServiceListReleasesServer struct {
|
|
|
|
|
grpc.ServerStream
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *releaseServiceListReleasesServer) Send(m *ListReleasesResponse) error {
|
|
|
|
|
return x.ServerStream.SendMsg(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _ReleaseService_GetReleaseStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(GetReleaseStatusRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(ReleaseServiceServer).GetReleaseStatus(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/hapi.services.tiller.ReleaseService/GetReleaseStatus",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(ReleaseServiceServer).GetReleaseStatus(ctx, req.(*GetReleaseStatusRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _ReleaseService_GetReleaseContent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(GetReleaseContentRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(ReleaseServiceServer).GetReleaseContent(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/hapi.services.tiller.ReleaseService/GetReleaseContent",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(ReleaseServiceServer).GetReleaseContent(ctx, req.(*GetReleaseContentRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _ReleaseService_UpdateRelease_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(UpdateReleaseRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(ReleaseServiceServer).UpdateRelease(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/hapi.services.tiller.ReleaseService/UpdateRelease",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(ReleaseServiceServer).UpdateRelease(ctx, req.(*UpdateReleaseRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _ReleaseService_InstallRelease_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(InstallReleaseRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(ReleaseServiceServer).InstallRelease(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/hapi.services.tiller.ReleaseService/InstallRelease",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(ReleaseServiceServer).InstallRelease(ctx, req.(*InstallReleaseRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _ReleaseService_UninstallRelease_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(UninstallReleaseRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(ReleaseServiceServer).UninstallRelease(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/hapi.services.tiller.ReleaseService/UninstallRelease",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(ReleaseServiceServer).UninstallRelease(ctx, req.(*UninstallReleaseRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _ReleaseService_GetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(GetVersionRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(ReleaseServiceServer).GetVersion(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/hapi.services.tiller.ReleaseService/GetVersion",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(ReleaseServiceServer).GetVersion(ctx, req.(*GetVersionRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _ReleaseService_RollbackRelease_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(RollbackReleaseRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(ReleaseServiceServer).RollbackRelease(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/hapi.services.tiller.ReleaseService/RollbackRelease",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(ReleaseServiceServer).RollbackRelease(ctx, req.(*RollbackReleaseRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _ReleaseService_GetHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(GetHistoryRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(ReleaseServiceServer).GetHistory(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/hapi.services.tiller.ReleaseService/GetHistory",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(ReleaseServiceServer).GetHistory(ctx, req.(*GetHistoryRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _ReleaseService_RunReleaseTest_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
|
|
|
m := new(TestReleaseRequest)
|
|
|
|
|
if err := stream.RecvMsg(m); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
return srv.(ReleaseServiceServer).RunReleaseTest(m, &releaseServiceRunReleaseTestServer{stream})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ReleaseService_RunReleaseTestServer interface {
|
|
|
|
|
Send(*TestReleaseResponse) error
|
|
|
|
|
grpc.ServerStream
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type releaseServiceRunReleaseTestServer struct {
|
|
|
|
|
grpc.ServerStream
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *releaseServiceRunReleaseTestServer) Send(m *TestReleaseResponse) error {
|
|
|
|
|
return x.ServerStream.SendMsg(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var _ReleaseService_serviceDesc = grpc.ServiceDesc{
|
|
|
|
|
ServiceName: "hapi.services.tiller.ReleaseService",
|
|
|
|
|
HandlerType: (*ReleaseServiceServer)(nil),
|
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
|
{
|
|
|
|
|
MethodName: "GetReleaseStatus",
|
|
|
|
|
Handler: _ReleaseService_GetReleaseStatus_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "GetReleaseContent",
|
|
|
|
|
Handler: _ReleaseService_GetReleaseContent_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "UpdateRelease",
|
|
|
|
|
Handler: _ReleaseService_UpdateRelease_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "InstallRelease",
|
|
|
|
|
Handler: _ReleaseService_InstallRelease_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "UninstallRelease",
|
|
|
|
|
Handler: _ReleaseService_UninstallRelease_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "GetVersion",
|
|
|
|
|
Handler: _ReleaseService_GetVersion_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "RollbackRelease",
|
|
|
|
|
Handler: _ReleaseService_RollbackRelease_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "GetHistory",
|
|
|
|
|
Handler: _ReleaseService_GetHistory_Handler,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Streams: []grpc.StreamDesc{
|
|
|
|
|
{
|
|
|
|
|
StreamName: "ListReleases",
|
|
|
|
|
Handler: _ReleaseService_ListReleases_Handler,
|
|
|
|
|
ServerStreams: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
StreamName: "RunReleaseTest",
|
|
|
|
|
Handler: _ReleaseService_RunReleaseTest_Handler,
|
|
|
|
|
ServerStreams: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Metadata: "hapi/services/tiller.proto",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("hapi/services/tiller.proto", fileDescriptor0) }
|
|
|
|
|
|
|
|
|
|
var fileDescriptor0 = []byte{
|
|
|
|
|