move protos

This commit is contained in:
Alex Dadgar 2018-08-09 15:29:00 -07:00
parent a630ffcddc
commit bb20dbde43
2 changed files with 56 additions and 55 deletions

View File

@ -1,5 +1,5 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/hashicorp/nomad/plugins/base/base.proto
// source: github.com/hashicorp/nomad/plugins/base/proto/base.proto
package base
@ -48,7 +48,7 @@ func (x PluginType) String() string {
return proto.EnumName(PluginType_name, int32(x))
}
func (PluginType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_base_0160727fc8db573d, []int{0}
return fileDescriptor_base_01259c48147dbaa4, []int{0}
}
// PluginInfoRequest is used to request the plugins basic information.
@ -62,7 +62,7 @@ func (m *PluginInfoRequest) Reset() { *m = PluginInfoRequest{} }
func (m *PluginInfoRequest) String() string { return proto.CompactTextString(m) }
func (*PluginInfoRequest) ProtoMessage() {}
func (*PluginInfoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_base_0160727fc8db573d, []int{0}
return fileDescriptor_base_01259c48147dbaa4, []int{0}
}
func (m *PluginInfoRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PluginInfoRequest.Unmarshal(m, b)
@ -86,7 +86,7 @@ var xxx_messageInfo_PluginInfoRequest proto.InternalMessageInfo
// that Nomad can decide whether to load the plugin or not.
type PluginInfoResponse struct {
// type indicates what type of plugin this is.
Type PluginType `protobuf:"varint,1,opt,name=type,proto3,enum=hashicorp.nomad.plugins.base.PluginType" json:"type,omitempty"`
Type PluginType `protobuf:"varint,1,opt,name=type,proto3,enum=hashicorp.nomad.plugins.base.proto.PluginType" json:"type,omitempty"`
// plugin_api_version indicates the version of the Nomad Plugin API
// this plugin is built against.
PluginApiVersion string `protobuf:"bytes,2,opt,name=plugin_api_version,json=pluginApiVersion,proto3" json:"plugin_api_version,omitempty"`
@ -104,7 +104,7 @@ func (m *PluginInfoResponse) Reset() { *m = PluginInfoResponse{} }
func (m *PluginInfoResponse) String() string { return proto.CompactTextString(m) }
func (*PluginInfoResponse) ProtoMessage() {}
func (*PluginInfoResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_base_0160727fc8db573d, []int{1}
return fileDescriptor_base_01259c48147dbaa4, []int{1}
}
func (m *PluginInfoResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PluginInfoResponse.Unmarshal(m, b)
@ -163,7 +163,7 @@ func (m *ConfigSchemaRequest) Reset() { *m = ConfigSchemaRequest{} }
func (m *ConfigSchemaRequest) String() string { return proto.CompactTextString(m) }
func (*ConfigSchemaRequest) ProtoMessage() {}
func (*ConfigSchemaRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_base_0160727fc8db573d, []int{2}
return fileDescriptor_base_01259c48147dbaa4, []int{2}
}
func (m *ConfigSchemaRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfigSchemaRequest.Unmarshal(m, b)
@ -196,7 +196,7 @@ func (m *ConfigSchemaResponse) Reset() { *m = ConfigSchemaResponse{} }
func (m *ConfigSchemaResponse) String() string { return proto.CompactTextString(m) }
func (*ConfigSchemaResponse) ProtoMessage() {}
func (*ConfigSchemaResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_base_0160727fc8db573d, []int{3}
return fileDescriptor_base_01259c48147dbaa4, []int{3}
}
func (m *ConfigSchemaResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfigSchemaResponse.Unmarshal(m, b)
@ -236,7 +236,7 @@ func (m *SetConfigRequest) Reset() { *m = SetConfigRequest{} }
func (m *SetConfigRequest) String() string { return proto.CompactTextString(m) }
func (*SetConfigRequest) ProtoMessage() {}
func (*SetConfigRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_base_0160727fc8db573d, []int{4}
return fileDescriptor_base_01259c48147dbaa4, []int{4}
}
func (m *SetConfigRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetConfigRequest.Unmarshal(m, b)
@ -274,7 +274,7 @@ func (m *SetConfigResponse) Reset() { *m = SetConfigResponse{} }
func (m *SetConfigResponse) String() string { return proto.CompactTextString(m) }
func (*SetConfigResponse) ProtoMessage() {}
func (*SetConfigResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_base_0160727fc8db573d, []int{5}
return fileDescriptor_base_01259c48147dbaa4, []int{5}
}
func (m *SetConfigResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetConfigResponse.Unmarshal(m, b)
@ -295,13 +295,13 @@ func (m *SetConfigResponse) XXX_DiscardUnknown() {
var xxx_messageInfo_SetConfigResponse proto.InternalMessageInfo
func init() {
proto.RegisterType((*PluginInfoRequest)(nil), "hashicorp.nomad.plugins.base.PluginInfoRequest")
proto.RegisterType((*PluginInfoResponse)(nil), "hashicorp.nomad.plugins.base.PluginInfoResponse")
proto.RegisterType((*ConfigSchemaRequest)(nil), "hashicorp.nomad.plugins.base.ConfigSchemaRequest")
proto.RegisterType((*ConfigSchemaResponse)(nil), "hashicorp.nomad.plugins.base.ConfigSchemaResponse")
proto.RegisterType((*SetConfigRequest)(nil), "hashicorp.nomad.plugins.base.SetConfigRequest")
proto.RegisterType((*SetConfigResponse)(nil), "hashicorp.nomad.plugins.base.SetConfigResponse")
proto.RegisterEnum("hashicorp.nomad.plugins.base.PluginType", PluginType_name, PluginType_value)
proto.RegisterType((*PluginInfoRequest)(nil), "hashicorp.nomad.plugins.base.proto.PluginInfoRequest")
proto.RegisterType((*PluginInfoResponse)(nil), "hashicorp.nomad.plugins.base.proto.PluginInfoResponse")
proto.RegisterType((*ConfigSchemaRequest)(nil), "hashicorp.nomad.plugins.base.proto.ConfigSchemaRequest")
proto.RegisterType((*ConfigSchemaResponse)(nil), "hashicorp.nomad.plugins.base.proto.ConfigSchemaResponse")
proto.RegisterType((*SetConfigRequest)(nil), "hashicorp.nomad.plugins.base.proto.SetConfigRequest")
proto.RegisterType((*SetConfigResponse)(nil), "hashicorp.nomad.plugins.base.proto.SetConfigResponse")
proto.RegisterEnum("hashicorp.nomad.plugins.base.proto.PluginType", PluginType_name, PluginType_value)
}
// Reference imports to suppress errors if they are not otherwise used.
@ -334,7 +334,7 @@ func NewBasePluginClient(cc *grpc.ClientConn) BasePluginClient {
func (c *basePluginClient) PluginInfo(ctx context.Context, in *PluginInfoRequest, opts ...grpc.CallOption) (*PluginInfoResponse, error) {
out := new(PluginInfoResponse)
err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.base.BasePlugin/PluginInfo", in, out, opts...)
err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.base.proto.BasePlugin/PluginInfo", in, out, opts...)
if err != nil {
return nil, err
}
@ -343,7 +343,7 @@ func (c *basePluginClient) PluginInfo(ctx context.Context, in *PluginInfoRequest
func (c *basePluginClient) ConfigSchema(ctx context.Context, in *ConfigSchemaRequest, opts ...grpc.CallOption) (*ConfigSchemaResponse, error) {
out := new(ConfigSchemaResponse)
err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.base.BasePlugin/ConfigSchema", in, out, opts...)
err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.base.proto.BasePlugin/ConfigSchema", in, out, opts...)
if err != nil {
return nil, err
}
@ -352,7 +352,7 @@ func (c *basePluginClient) ConfigSchema(ctx context.Context, in *ConfigSchemaReq
func (c *basePluginClient) SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error) {
out := new(SetConfigResponse)
err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.base.BasePlugin/SetConfig", in, out, opts...)
err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.base.proto.BasePlugin/SetConfig", in, out, opts...)
if err != nil {
return nil, err
}
@ -383,7 +383,7 @@ func _BasePlugin_PluginInfo_Handler(srv interface{}, ctx context.Context, dec fu
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/hashicorp.nomad.plugins.base.BasePlugin/PluginInfo",
FullMethod: "/hashicorp.nomad.plugins.base.proto.BasePlugin/PluginInfo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BasePluginServer).PluginInfo(ctx, req.(*PluginInfoRequest))
@ -401,7 +401,7 @@ func _BasePlugin_ConfigSchema_Handler(srv interface{}, ctx context.Context, dec
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/hashicorp.nomad.plugins.base.BasePlugin/ConfigSchema",
FullMethod: "/hashicorp.nomad.plugins.base.proto.BasePlugin/ConfigSchema",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BasePluginServer).ConfigSchema(ctx, req.(*ConfigSchemaRequest))
@ -419,7 +419,7 @@ func _BasePlugin_SetConfig_Handler(srv interface{}, ctx context.Context, dec fun
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/hashicorp.nomad.plugins.base.BasePlugin/SetConfig",
FullMethod: "/hashicorp.nomad.plugins.base.proto.BasePlugin/SetConfig",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BasePluginServer).SetConfig(ctx, req.(*SetConfigRequest))
@ -428,7 +428,7 @@ func _BasePlugin_SetConfig_Handler(srv interface{}, ctx context.Context, dec fun
}
var _BasePlugin_serviceDesc = grpc.ServiceDesc{
ServiceName: "hashicorp.nomad.plugins.base.BasePlugin",
ServiceName: "hashicorp.nomad.plugins.base.proto.BasePlugin",
HandlerType: (*BasePluginServer)(nil),
Methods: []grpc.MethodDesc{
{
@ -445,40 +445,41 @@ var _BasePlugin_serviceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "github.com/hashicorp/nomad/plugins/base/base.proto",
Metadata: "github.com/hashicorp/nomad/plugins/base/proto/base.proto",
}
func init() {
proto.RegisterFile("github.com/hashicorp/nomad/plugins/base/base.proto", fileDescriptor_base_0160727fc8db573d)
proto.RegisterFile("github.com/hashicorp/nomad/plugins/base/proto/base.proto", fileDescriptor_base_01259c48147dbaa4)
}
var fileDescriptor_base_0160727fc8db573d = []byte{
// 430 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00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0x83, 0xf3, 0xb6, 0xbd, 0xe8, 0xf6, 0xb8, 0xc6, 0x5f, 0x2e,
0xe4, 0x47, 0xff, 0x43, 0x39, 0x34, 0xe6, 0x70, 0x7a, 0xb0, 0x10, 0xe1, 0xe3, 0x12, 0x7f, 0x9e,
0xc9, 0x0f, 0x3b, 0xe3, 0x9b, 0x7e, 0xa3, 0xfe, 0x67, 0x57, 0xd7, 0x96, 0x7d, 0xf3, 0x80, 0x9e,
0xff, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x66, 0xa2, 0xc0, 0xe2, 0xd6, 0x03, 0x00, 0x00,
var fileDescriptor_base_01259c48147dbaa4 = []byte{
// 435 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xcf, 0x8b, 0xd3, 0x40,
0x14, 0xc7, 0x37, 0xbb, 0xa1, 0xb2, 0x6f, 0xb7, 0x25, 0x4e, 0x15, 0x4a, 0x4e, 0x25, 0x20, 0x14,
0x29, 0x13, 0xac, 0x56, 0xeb, 0xad, 0xb6, 0xf6, 0x50, 0x84, 0x2a, 0xa9, 0x56, 0xf1, 0x12, 0xa6,
0xd3, 0x69, 0x12, 0x6c, 0x32, 0x63, 0x26, 0x15, 0x2a, 0x78, 0xf2, 0xec, 0x1f, 0xe5, 0x7f, 0x26,
0x99, 0x49, 0xda, 0x28, 0x8a, 0xe9, 0x29, 0x8f, 0xf7, 0x3e, 0xdf, 0xef, 0xbc, 0x1f, 0x81, 0x51,
0x10, 0x65, 0xe1, 0x7e, 0x8d, 0x29, 0x8f, 0xdd, 0x90, 0xc8, 0x30, 0xa2, 0x3c, 0x15, 0x6e, 0xc2,
0x63, 0xb2, 0x71, 0xc5, 0x6e, 0x1f, 0x44, 0x89, 0x74, 0xd7, 0x44, 0x32, 0x57, 0xa4, 0x3c, 0xe3,
0x2a, 0xc4, 0x2a, 0x44, 0xce, 0x11, 0xc7, 0x0a, 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,
0x8b, 0xac, 0xa6, 0xf3, 0x23, 0x54, 0xa4, 0xba, 0xa3, 0x87, 0x8f, 0x00, 0x4e, 0xdb, 0x43, 0x37,
0x70, 0xe7, 0xdd, 0xe2, 0xd5, 0xe2, 0xf5, 0xfb, 0x85, 0x75, 0x81, 0x00, 0x1a, 0x2f, 0xbd, 0xf9,
0x6a, 0xe6, 0x59, 0x86, 0x8a, 0x67, 0xab, 0xf9, 0x74, 0x66, 0x5d, 0x0e, 0x7e, 0x5c, 0x01, 0x4c,
0x88, 0x64, 0x5a, 0x87, 0xbe, 0x95, 0x0e, 0xf9, 0x15, 0xd1, 0xb0, 0xfe, 0xbd, 0x2a, 0xff, 0x82,
0xfd, 0xf4, 0x5c, 0x99, 0x6e, 0xdf, 0xb9, 0x40, 0xdf, 0x0d, 0xb8, 0xad, 0xee, 0x1a, 0x3d, 0xab,
0x63, 0xf5, 0x97, 0xa3, 0xd9, 0xa3, 0xf3, 0x85, 0xc7, 0x2e, 0xbe, 0xc2, 0xf5, 0x71, 0xb7, 0xe8,
0x49, 0x1d, 0xa3, 0x3f, 0xaf, 0x68, 0x0f, 0xcf, 0x54, 0x95, 0x6f, 0x4f, 0x1a, 0x1f, 0xcd, 0x9c,
0x58, 0x37, 0x14, 0xf2, 0xf8, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfc, 0x3e, 0xab, 0xdf, 0x0d,
0x04, 0x00, 0x00,
}

View File

@ -1,5 +1,5 @@
syntax = "proto3";
package hashicorp.nomad.plugins.base;
package hashicorp.nomad.plugins.base.proto;
option go_package = "base";
import "github.com/hashicorp/nomad/plugins/shared/hclspec/hcl_spec.proto";