mirror of https://github.com/pulumi/pulumi.git
408 lines
15 KiB
Go
408 lines
15 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: analyzer.proto
|
|
|
|
package pulumirpc
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
import empty "github.com/golang/protobuf/ptypes/empty"
|
|
import _struct "github.com/golang/protobuf/ptypes/struct"
|
|
|
|
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.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type AnalyzeRequest struct {
|
|
Urn string `protobuf:"bytes,1,opt,name=urn" json:"urn,omitempty"`
|
|
Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
|
|
Properties *_struct.Struct `protobuf:"bytes,3,opt,name=properties" json:"properties,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *AnalyzeRequest) Reset() { *m = AnalyzeRequest{} }
|
|
func (m *AnalyzeRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*AnalyzeRequest) ProtoMessage() {}
|
|
func (*AnalyzeRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_analyzer_5412e4a0ad9c40c6, []int{0}
|
|
}
|
|
func (m *AnalyzeRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_AnalyzeRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *AnalyzeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_AnalyzeRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *AnalyzeRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AnalyzeRequest.Merge(dst, src)
|
|
}
|
|
func (m *AnalyzeRequest) XXX_Size() int {
|
|
return xxx_messageInfo_AnalyzeRequest.Size(m)
|
|
}
|
|
func (m *AnalyzeRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AnalyzeRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AnalyzeRequest proto.InternalMessageInfo
|
|
|
|
func (m *AnalyzeRequest) GetUrn() string {
|
|
if m != nil {
|
|
return m.Urn
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *AnalyzeRequest) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *AnalyzeRequest) GetProperties() *_struct.Struct {
|
|
if m != nil {
|
|
return m.Properties
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AnalyzeStackRequest struct {
|
|
Resources []*AnalyzeRequest `protobuf:"bytes,1,rep,name=resources" json:"resources,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *AnalyzeStackRequest) Reset() { *m = AnalyzeStackRequest{} }
|
|
func (m *AnalyzeStackRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*AnalyzeStackRequest) ProtoMessage() {}
|
|
func (*AnalyzeStackRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_analyzer_5412e4a0ad9c40c6, []int{1}
|
|
}
|
|
func (m *AnalyzeStackRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_AnalyzeStackRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *AnalyzeStackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_AnalyzeStackRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *AnalyzeStackRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AnalyzeStackRequest.Merge(dst, src)
|
|
}
|
|
func (m *AnalyzeStackRequest) XXX_Size() int {
|
|
return xxx_messageInfo_AnalyzeStackRequest.Size(m)
|
|
}
|
|
func (m *AnalyzeStackRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AnalyzeStackRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AnalyzeStackRequest proto.InternalMessageInfo
|
|
|
|
func (m *AnalyzeStackRequest) GetResources() []*AnalyzeRequest {
|
|
if m != nil {
|
|
return m.Resources
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AnalyzeResponse struct {
|
|
Diagnostics []*AnalyzerDiagnostic `protobuf:"bytes,1,rep,name=diagnostics" json:"diagnostics,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *AnalyzeResponse) Reset() { *m = AnalyzeResponse{} }
|
|
func (m *AnalyzeResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*AnalyzeResponse) ProtoMessage() {}
|
|
func (*AnalyzeResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_analyzer_5412e4a0ad9c40c6, []int{2}
|
|
}
|
|
func (m *AnalyzeResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_AnalyzeResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *AnalyzeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_AnalyzeResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *AnalyzeResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AnalyzeResponse.Merge(dst, src)
|
|
}
|
|
func (m *AnalyzeResponse) XXX_Size() int {
|
|
return xxx_messageInfo_AnalyzeResponse.Size(m)
|
|
}
|
|
func (m *AnalyzeResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AnalyzeResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AnalyzeResponse proto.InternalMessageInfo
|
|
|
|
func (m *AnalyzeResponse) GetDiagnostics() []*AnalyzerDiagnostic {
|
|
if m != nil {
|
|
return m.Diagnostics
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AnalyzerDiagnostic struct {
|
|
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
|
|
Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
|
|
Severity string `protobuf:"bytes,3,opt,name=severity" json:"severity,omitempty"`
|
|
Category string `protobuf:"bytes,4,opt,name=category" json:"category,omitempty"`
|
|
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence" json:"confidence,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *AnalyzerDiagnostic) Reset() { *m = AnalyzerDiagnostic{} }
|
|
func (m *AnalyzerDiagnostic) String() string { return proto.CompactTextString(m) }
|
|
func (*AnalyzerDiagnostic) ProtoMessage() {}
|
|
func (*AnalyzerDiagnostic) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_analyzer_5412e4a0ad9c40c6, []int{3}
|
|
}
|
|
func (m *AnalyzerDiagnostic) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_AnalyzerDiagnostic.Unmarshal(m, b)
|
|
}
|
|
func (m *AnalyzerDiagnostic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_AnalyzerDiagnostic.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *AnalyzerDiagnostic) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AnalyzerDiagnostic.Merge(dst, src)
|
|
}
|
|
func (m *AnalyzerDiagnostic) XXX_Size() int {
|
|
return xxx_messageInfo_AnalyzerDiagnostic.Size(m)
|
|
}
|
|
func (m *AnalyzerDiagnostic) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AnalyzerDiagnostic.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AnalyzerDiagnostic proto.InternalMessageInfo
|
|
|
|
func (m *AnalyzerDiagnostic) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *AnalyzerDiagnostic) GetMessage() string {
|
|
if m != nil {
|
|
return m.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *AnalyzerDiagnostic) GetSeverity() string {
|
|
if m != nil {
|
|
return m.Severity
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *AnalyzerDiagnostic) GetCategory() string {
|
|
if m != nil {
|
|
return m.Category
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *AnalyzerDiagnostic) GetConfidence() float32 {
|
|
if m != nil {
|
|
return m.Confidence
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*AnalyzeRequest)(nil), "pulumirpc.AnalyzeRequest")
|
|
proto.RegisterType((*AnalyzeStackRequest)(nil), "pulumirpc.AnalyzeStackRequest")
|
|
proto.RegisterType((*AnalyzeResponse)(nil), "pulumirpc.AnalyzeResponse")
|
|
proto.RegisterType((*AnalyzerDiagnostic)(nil), "pulumirpc.AnalyzerDiagnostic")
|
|
}
|
|
|
|
// 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 Analyzer service
|
|
|
|
type AnalyzerClient interface {
|
|
// Analyze analyzes a single resource object, and returns any errors that it finds.
|
|
Analyze(ctx context.Context, in *AnalyzeRequest, opts ...grpc.CallOption) (*AnalyzeResponse, error)
|
|
// AnalyzeStack analyzes an entire stack of resources, and returns any errors that it finds.
|
|
AnalyzeStack(ctx context.Context, in *AnalyzeStackRequest, opts ...grpc.CallOption) (*AnalyzeResponse, error)
|
|
// GetPluginInfo returns generic information about this plugin, like its version.
|
|
GetPluginInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PluginInfo, error)
|
|
}
|
|
|
|
type analyzerClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewAnalyzerClient(cc *grpc.ClientConn) AnalyzerClient {
|
|
return &analyzerClient{cc}
|
|
}
|
|
|
|
func (c *analyzerClient) Analyze(ctx context.Context, in *AnalyzeRequest, opts ...grpc.CallOption) (*AnalyzeResponse, error) {
|
|
out := new(AnalyzeResponse)
|
|
err := grpc.Invoke(ctx, "/pulumirpc.Analyzer/Analyze", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *analyzerClient) AnalyzeStack(ctx context.Context, in *AnalyzeStackRequest, opts ...grpc.CallOption) (*AnalyzeResponse, error) {
|
|
out := new(AnalyzeResponse)
|
|
err := grpc.Invoke(ctx, "/pulumirpc.Analyzer/AnalyzeStack", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *analyzerClient) GetPluginInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PluginInfo, error) {
|
|
out := new(PluginInfo)
|
|
err := grpc.Invoke(ctx, "/pulumirpc.Analyzer/GetPluginInfo", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// Server API for Analyzer service
|
|
|
|
type AnalyzerServer interface {
|
|
// Analyze analyzes a single resource object, and returns any errors that it finds.
|
|
Analyze(context.Context, *AnalyzeRequest) (*AnalyzeResponse, error)
|
|
// AnalyzeStack analyzes an entire stack of resources, and returns any errors that it finds.
|
|
AnalyzeStack(context.Context, *AnalyzeStackRequest) (*AnalyzeResponse, error)
|
|
// GetPluginInfo returns generic information about this plugin, like its version.
|
|
GetPluginInfo(context.Context, *empty.Empty) (*PluginInfo, error)
|
|
}
|
|
|
|
func RegisterAnalyzerServer(s *grpc.Server, srv AnalyzerServer) {
|
|
s.RegisterService(&_Analyzer_serviceDesc, srv)
|
|
}
|
|
|
|
func _Analyzer_Analyze_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(AnalyzeRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AnalyzerServer).Analyze(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pulumirpc.Analyzer/Analyze",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AnalyzerServer).Analyze(ctx, req.(*AnalyzeRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Analyzer_AnalyzeStack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(AnalyzeStackRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AnalyzerServer).AnalyzeStack(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pulumirpc.Analyzer/AnalyzeStack",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AnalyzerServer).AnalyzeStack(ctx, req.(*AnalyzeStackRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Analyzer_GetPluginInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(empty.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AnalyzerServer).GetPluginInfo(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pulumirpc.Analyzer/GetPluginInfo",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AnalyzerServer).GetPluginInfo(ctx, req.(*empty.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Analyzer_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "pulumirpc.Analyzer",
|
|
HandlerType: (*AnalyzerServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Analyze",
|
|
Handler: _Analyzer_Analyze_Handler,
|
|
},
|
|
{
|
|
MethodName: "AnalyzeStack",
|
|
Handler: _Analyzer_AnalyzeStack_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetPluginInfo",
|
|
Handler: _Analyzer_GetPluginInfo_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "analyzer.proto",
|
|
}
|
|
|
|
func init() { proto.RegisterFile("analyzer.proto", fileDescriptor_analyzer_5412e4a0ad9c40c6) }
|
|
|
|
var fileDescriptor_analyzer_5412e4a0ad9c40c6 = []byte{
|
|
// 383 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x84, 0x52, 0xdb, 0x6e, 0xd3, 0x40,
|
|
0x10, 0x8d, 0x13, 0x20, 0xf1, 0x24, 0x04, 0xb4, 0x08, 0x30, 0x06, 0xa2, 0xc8, 0x4f, 0x3c, 0x39,
|
|
0x52, 0x78, 0xc8, 0x23, 0x17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