mirror of https://github.com/pulumi/pulumi.git
353 lines
13 KiB
Go
353 lines
13 KiB
Go
// Code generated by protoc-gen-go.
|
|
// source: language.proto
|
|
// DO NOT EDIT!
|
|
|
|
package pulumirpc
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
import google_protobuf "github.com/golang/protobuf/ptypes/empty"
|
|
|
|
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
|
|
|
|
type GetRequiredPluginsRequest struct {
|
|
Project string `protobuf:"bytes,1,opt,name=project" json:"project,omitempty"`
|
|
Pwd string `protobuf:"bytes,2,opt,name=pwd" json:"pwd,omitempty"`
|
|
Program string `protobuf:"bytes,3,opt,name=program" json:"program,omitempty"`
|
|
}
|
|
|
|
func (m *GetRequiredPluginsRequest) Reset() { *m = GetRequiredPluginsRequest{} }
|
|
func (m *GetRequiredPluginsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*GetRequiredPluginsRequest) ProtoMessage() {}
|
|
func (*GetRequiredPluginsRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
|
|
|
|
func (m *GetRequiredPluginsRequest) GetProject() string {
|
|
if m != nil {
|
|
return m.Project
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *GetRequiredPluginsRequest) GetPwd() string {
|
|
if m != nil {
|
|
return m.Pwd
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *GetRequiredPluginsRequest) GetProgram() string {
|
|
if m != nil {
|
|
return m.Program
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetRequiredPluginsResponse struct {
|
|
Plugins []*PluginDependency `protobuf:"bytes,1,rep,name=plugins" json:"plugins,omitempty"`
|
|
}
|
|
|
|
func (m *GetRequiredPluginsResponse) Reset() { *m = GetRequiredPluginsResponse{} }
|
|
func (m *GetRequiredPluginsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*GetRequiredPluginsResponse) ProtoMessage() {}
|
|
func (*GetRequiredPluginsResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
|
|
|
|
func (m *GetRequiredPluginsResponse) GetPlugins() []*PluginDependency {
|
|
if m != nil {
|
|
return m.Plugins
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// RunRequest asks the interpreter to execute a program.
|
|
type RunRequest struct {
|
|
Project string `protobuf:"bytes,1,opt,name=project" json:"project,omitempty"`
|
|
Stack string `protobuf:"bytes,2,opt,name=stack" json:"stack,omitempty"`
|
|
Pwd string `protobuf:"bytes,3,opt,name=pwd" json:"pwd,omitempty"`
|
|
Program string `protobuf:"bytes,4,opt,name=program" json:"program,omitempty"`
|
|
Args []string `protobuf:"bytes,5,rep,name=args" json:"args,omitempty"`
|
|
Config map[string]string `protobuf:"bytes,6,rep,name=config" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
DryRun bool `protobuf:"varint,7,opt,name=dryRun" json:"dryRun,omitempty"`
|
|
Parallel int32 `protobuf:"varint,8,opt,name=parallel" json:"parallel,omitempty"`
|
|
MonitorAddress string `protobuf:"bytes,9,opt,name=monitor_address,json=monitorAddress" json:"monitor_address,omitempty"`
|
|
}
|
|
|
|
func (m *RunRequest) Reset() { *m = RunRequest{} }
|
|
func (m *RunRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*RunRequest) ProtoMessage() {}
|
|
func (*RunRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
|
|
|
|
func (m *RunRequest) GetProject() string {
|
|
if m != nil {
|
|
return m.Project
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RunRequest) GetStack() string {
|
|
if m != nil {
|
|
return m.Stack
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RunRequest) GetPwd() string {
|
|
if m != nil {
|
|
return m.Pwd
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RunRequest) GetProgram() string {
|
|
if m != nil {
|
|
return m.Program
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RunRequest) GetArgs() []string {
|
|
if m != nil {
|
|
return m.Args
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RunRequest) GetConfig() map[string]string {
|
|
if m != nil {
|
|
return m.Config
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RunRequest) GetDryRun() bool {
|
|
if m != nil {
|
|
return m.DryRun
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *RunRequest) GetParallel() int32 {
|
|
if m != nil {
|
|
return m.Parallel
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *RunRequest) GetMonitorAddress() string {
|
|
if m != nil {
|
|
return m.MonitorAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// RunResponse is the response back from the interpreter/source back to the monitor.
|
|
type RunResponse struct {
|
|
Error string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
|
|
}
|
|
|
|
func (m *RunResponse) Reset() { *m = RunResponse{} }
|
|
func (m *RunResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*RunResponse) ProtoMessage() {}
|
|
func (*RunResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
|
|
|
|
func (m *RunResponse) GetError() string {
|
|
if m != nil {
|
|
return m.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*GetRequiredPluginsRequest)(nil), "pulumirpc.GetRequiredPluginsRequest")
|
|
proto.RegisterType((*GetRequiredPluginsResponse)(nil), "pulumirpc.GetRequiredPluginsResponse")
|
|
proto.RegisterType((*RunRequest)(nil), "pulumirpc.RunRequest")
|
|
proto.RegisterType((*RunResponse)(nil), "pulumirpc.RunResponse")
|
|
}
|
|
|
|
// 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 LanguageRuntime service
|
|
|
|
type LanguageRuntimeClient interface {
|
|
// GetRequiredPlugins computes the complete set of anticipated plugins required by a program.
|
|
GetRequiredPlugins(ctx context.Context, in *GetRequiredPluginsRequest, opts ...grpc.CallOption) (*GetRequiredPluginsResponse, error)
|
|
// Run executes a program and returns its result.
|
|
Run(ctx context.Context, in *RunRequest, opts ...grpc.CallOption) (*RunResponse, error)
|
|
// GetPluginInfo returns generic information about this plugin, like its version.
|
|
GetPluginInfo(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*PluginInfo, error)
|
|
}
|
|
|
|
type languageRuntimeClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewLanguageRuntimeClient(cc *grpc.ClientConn) LanguageRuntimeClient {
|
|
return &languageRuntimeClient{cc}
|
|
}
|
|
|
|
func (c *languageRuntimeClient) GetRequiredPlugins(ctx context.Context, in *GetRequiredPluginsRequest, opts ...grpc.CallOption) (*GetRequiredPluginsResponse, error) {
|
|
out := new(GetRequiredPluginsResponse)
|
|
err := grpc.Invoke(ctx, "/pulumirpc.LanguageRuntime/GetRequiredPlugins", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *languageRuntimeClient) Run(ctx context.Context, in *RunRequest, opts ...grpc.CallOption) (*RunResponse, error) {
|
|
out := new(RunResponse)
|
|
err := grpc.Invoke(ctx, "/pulumirpc.LanguageRuntime/Run", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *languageRuntimeClient) GetPluginInfo(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*PluginInfo, error) {
|
|
out := new(PluginInfo)
|
|
err := grpc.Invoke(ctx, "/pulumirpc.LanguageRuntime/GetPluginInfo", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// Server API for LanguageRuntime service
|
|
|
|
type LanguageRuntimeServer interface {
|
|
// GetRequiredPlugins computes the complete set of anticipated plugins required by a program.
|
|
GetRequiredPlugins(context.Context, *GetRequiredPluginsRequest) (*GetRequiredPluginsResponse, error)
|
|
// Run executes a program and returns its result.
|
|
Run(context.Context, *RunRequest) (*RunResponse, error)
|
|
// GetPluginInfo returns generic information about this plugin, like its version.
|
|
GetPluginInfo(context.Context, *google_protobuf.Empty) (*PluginInfo, error)
|
|
}
|
|
|
|
func RegisterLanguageRuntimeServer(s *grpc.Server, srv LanguageRuntimeServer) {
|
|
s.RegisterService(&_LanguageRuntime_serviceDesc, srv)
|
|
}
|
|
|
|
func _LanguageRuntime_GetRequiredPlugins_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetRequiredPluginsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(LanguageRuntimeServer).GetRequiredPlugins(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pulumirpc.LanguageRuntime/GetRequiredPlugins",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(LanguageRuntimeServer).GetRequiredPlugins(ctx, req.(*GetRequiredPluginsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _LanguageRuntime_Run_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RunRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(LanguageRuntimeServer).Run(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pulumirpc.LanguageRuntime/Run",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(LanguageRuntimeServer).Run(ctx, req.(*RunRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _LanguageRuntime_GetPluginInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(google_protobuf.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(LanguageRuntimeServer).GetPluginInfo(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pulumirpc.LanguageRuntime/GetPluginInfo",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(LanguageRuntimeServer).GetPluginInfo(ctx, req.(*google_protobuf.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _LanguageRuntime_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "pulumirpc.LanguageRuntime",
|
|
HandlerType: (*LanguageRuntimeServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "GetRequiredPlugins",
|
|
Handler: _LanguageRuntime_GetRequiredPlugins_Handler,
|
|
},
|
|
{
|
|
MethodName: "Run",
|
|
Handler: _LanguageRuntime_Run_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetPluginInfo",
|
|
Handler: _LanguageRuntime_GetPluginInfo_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "language.proto",
|
|
}
|
|
|
|
func init() { proto.RegisterFile("language.proto", fileDescriptor2) }
|
|
|
|
var fileDescriptor2 = []byte{
|
|
// 451 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00,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