pulumi/sdk/proto/go/analyzer.pb.go
Justin Van Patten e6be38e285
PaC: Add initial config support for policy packs (#4233)
The initial config represents any config that was specified programmatically to the Policy Pack, for Policy Packs that support programmatic configuration like AWSGuard.
2020-03-30 12:52:05 -07:00

1299 lines
50 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: analyzer.proto
package pulumirpc
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
_struct "github.com/golang/protobuf/ptypes/struct"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// EnforcementLevel indicates the severity of a policy violation.
type EnforcementLevel int32
const (
EnforcementLevel_ADVISORY EnforcementLevel = 0
EnforcementLevel_MANDATORY EnforcementLevel = 1
EnforcementLevel_DISABLED EnforcementLevel = 2
)
var EnforcementLevel_name = map[int32]string{
0: "ADVISORY",
1: "MANDATORY",
2: "DISABLED",
}
var EnforcementLevel_value = map[string]int32{
"ADVISORY": 0,
"MANDATORY": 1,
"DISABLED": 2,
}
func (x EnforcementLevel) String() string {
return proto.EnumName(EnforcementLevel_name, int32(x))
}
func (EnforcementLevel) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_fadbb7eccb91f143, []int{0}
}
type AnalyzeRequest struct {
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
Properties *_struct.Struct `protobuf:"bytes,2,opt,name=properties,proto3" json:"properties,omitempty"`
Urn string `protobuf:"bytes,3,opt,name=urn,proto3" json:"urn,omitempty"`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
Options *AnalyzerResourceOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"`
Provider *AnalyzerProviderResource `protobuf:"bytes,6,opt,name=provider,proto3" json:"provider,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_fadbb7eccb91f143, []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 (m *AnalyzeRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_AnalyzeRequest.Merge(m, 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) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *AnalyzeRequest) GetProperties() *_struct.Struct {
if m != nil {
return m.Properties
}
return nil
}
func (m *AnalyzeRequest) GetUrn() string {
if m != nil {
return m.Urn
}
return ""
}
func (m *AnalyzeRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *AnalyzeRequest) GetOptions() *AnalyzerResourceOptions {
if m != nil {
return m.Options
}
return nil
}
func (m *AnalyzeRequest) GetProvider() *AnalyzerProviderResource {
if m != nil {
return m.Provider
}
return nil
}
// AnalyzerResource defines the view of a Pulumi-managed resource as sent to Analyzers. The properties
// of the resource are specific to the type of analysis being performed. See the Analyzer
// service definition for more information.
type AnalyzerResource struct {
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
Properties *_struct.Struct `protobuf:"bytes,2,opt,name=properties,proto3" json:"properties,omitempty"`
Urn string `protobuf:"bytes,3,opt,name=urn,proto3" json:"urn,omitempty"`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
Options *AnalyzerResourceOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"`
Provider *AnalyzerProviderResource `protobuf:"bytes,6,opt,name=provider,proto3" json:"provider,omitempty"`
Parent string `protobuf:"bytes,7,opt,name=parent,proto3" json:"parent,omitempty"`
Dependencies []string `protobuf:"bytes,8,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
PropertyDependencies map[string]*AnalyzerPropertyDependencies `protobuf:"bytes,9,rep,name=propertyDependencies,proto3" json:"propertyDependencies,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AnalyzerResource) Reset() { *m = AnalyzerResource{} }
func (m *AnalyzerResource) String() string { return proto.CompactTextString(m) }
func (*AnalyzerResource) ProtoMessage() {}
func (*AnalyzerResource) Descriptor() ([]byte, []int) {
return fileDescriptor_fadbb7eccb91f143, []int{1}
}
func (m *AnalyzerResource) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AnalyzerResource.Unmarshal(m, b)
}
func (m *AnalyzerResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AnalyzerResource.Marshal(b, m, deterministic)
}
func (m *AnalyzerResource) XXX_Merge(src proto.Message) {
xxx_messageInfo_AnalyzerResource.Merge(m, src)
}
func (m *AnalyzerResource) XXX_Size() int {
return xxx_messageInfo_AnalyzerResource.Size(m)
}
func (m *AnalyzerResource) XXX_DiscardUnknown() {
xxx_messageInfo_AnalyzerResource.DiscardUnknown(m)
}
var xxx_messageInfo_AnalyzerResource proto.InternalMessageInfo
func (m *AnalyzerResource) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *AnalyzerResource) GetProperties() *_struct.Struct {
if m != nil {
return m.Properties
}
return nil
}
func (m *AnalyzerResource) GetUrn() string {
if m != nil {
return m.Urn
}
return ""
}
func (m *AnalyzerResource) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *AnalyzerResource) GetOptions() *AnalyzerResourceOptions {
if m != nil {
return m.Options
}
return nil
}
func (m *AnalyzerResource) GetProvider() *AnalyzerProviderResource {
if m != nil {
return m.Provider
}
return nil
}
func (m *AnalyzerResource) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *AnalyzerResource) GetDependencies() []string {
if m != nil {
return m.Dependencies
}
return nil
}
func (m *AnalyzerResource) GetPropertyDependencies() map[string]*AnalyzerPropertyDependencies {
if m != nil {
return m.PropertyDependencies
}
return nil
}
// AnalyzerResourceOptions defines the options associated with a resource.
type AnalyzerResourceOptions struct {
Protect bool `protobuf:"varint,1,opt,name=protect,proto3" json:"protect,omitempty"`
IgnoreChanges []string `protobuf:"bytes,2,rep,name=ignoreChanges,proto3" json:"ignoreChanges,omitempty"`
DeleteBeforeReplace bool `protobuf:"varint,3,opt,name=deleteBeforeReplace,proto3" json:"deleteBeforeReplace,omitempty"`
DeleteBeforeReplaceDefined bool `protobuf:"varint,4,opt,name=deleteBeforeReplaceDefined,proto3" json:"deleteBeforeReplaceDefined,omitempty"`
AdditionalSecretOutputs []string `protobuf:"bytes,5,rep,name=additionalSecretOutputs,proto3" json:"additionalSecretOutputs,omitempty"`
Aliases []string `protobuf:"bytes,6,rep,name=aliases,proto3" json:"aliases,omitempty"`
CustomTimeouts *AnalyzerResourceOptions_CustomTimeouts `protobuf:"bytes,7,opt,name=customTimeouts,proto3" json:"customTimeouts,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AnalyzerResourceOptions) Reset() { *m = AnalyzerResourceOptions{} }
func (m *AnalyzerResourceOptions) String() string { return proto.CompactTextString(m) }
func (*AnalyzerResourceOptions) ProtoMessage() {}
func (*AnalyzerResourceOptions) Descriptor() ([]byte, []int) {
return fileDescriptor_fadbb7eccb91f143, []int{2}
}
func (m *AnalyzerResourceOptions) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AnalyzerResourceOptions.Unmarshal(m, b)
}
func (m *AnalyzerResourceOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AnalyzerResourceOptions.Marshal(b, m, deterministic)
}
func (m *AnalyzerResourceOptions) XXX_Merge(src proto.Message) {
xxx_messageInfo_AnalyzerResourceOptions.Merge(m, src)
}
func (m *AnalyzerResourceOptions) XXX_Size() int {
return xxx_messageInfo_AnalyzerResourceOptions.Size(m)
}
func (m *AnalyzerResourceOptions) XXX_DiscardUnknown() {
xxx_messageInfo_AnalyzerResourceOptions.DiscardUnknown(m)
}
var xxx_messageInfo_AnalyzerResourceOptions proto.InternalMessageInfo
func (m *AnalyzerResourceOptions) GetProtect() bool {
if m != nil {
return m.Protect
}
return false
}
func (m *AnalyzerResourceOptions) GetIgnoreChanges() []string {
if m != nil {
return m.IgnoreChanges
}
return nil
}
func (m *AnalyzerResourceOptions) GetDeleteBeforeReplace() bool {
if m != nil {
return m.DeleteBeforeReplace
}
return false
}
func (m *AnalyzerResourceOptions) GetDeleteBeforeReplaceDefined() bool {
if m != nil {
return m.DeleteBeforeReplaceDefined
}
return false
}
func (m *AnalyzerResourceOptions) GetAdditionalSecretOutputs() []string {
if m != nil {
return m.AdditionalSecretOutputs
}
return nil
}
func (m *AnalyzerResourceOptions) GetAliases() []string {
if m != nil {
return m.Aliases
}
return nil
}
func (m *AnalyzerResourceOptions) GetCustomTimeouts() *AnalyzerResourceOptions_CustomTimeouts {
if m != nil {
return m.CustomTimeouts
}
return nil
}
// CustomTimeouts allows a user to be able to create a set of custom timeout parameters.
type AnalyzerResourceOptions_CustomTimeouts struct {
Create float64 `protobuf:"fixed64,1,opt,name=create,proto3" json:"create,omitempty"`
Update float64 `protobuf:"fixed64,2,opt,name=update,proto3" json:"update,omitempty"`
Delete float64 `protobuf:"fixed64,3,opt,name=delete,proto3" json:"delete,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AnalyzerResourceOptions_CustomTimeouts) Reset() {
*m = AnalyzerResourceOptions_CustomTimeouts{}
}
func (m *AnalyzerResourceOptions_CustomTimeouts) String() string { return proto.CompactTextString(m) }
func (*AnalyzerResourceOptions_CustomTimeouts) ProtoMessage() {}
func (*AnalyzerResourceOptions_CustomTimeouts) Descriptor() ([]byte, []int) {
return fileDescriptor_fadbb7eccb91f143, []int{2, 0}
}
func (m *AnalyzerResourceOptions_CustomTimeouts) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AnalyzerResourceOptions_CustomTimeouts.Unmarshal(m, b)
}
func (m *AnalyzerResourceOptions_CustomTimeouts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AnalyzerResourceOptions_CustomTimeouts.Marshal(b, m, deterministic)
}
func (m *AnalyzerResourceOptions_CustomTimeouts) XXX_Merge(src proto.Message) {
xxx_messageInfo_AnalyzerResourceOptions_CustomTimeouts.Merge(m, src)
}
func (m *AnalyzerResourceOptions_CustomTimeouts) XXX_Size() int {
return xxx_messageInfo_AnalyzerResourceOptions_CustomTimeouts.Size(m)
}
func (m *AnalyzerResourceOptions_CustomTimeouts) XXX_DiscardUnknown() {
xxx_messageInfo_AnalyzerResourceOptions_CustomTimeouts.DiscardUnknown(m)
}
var xxx_messageInfo_AnalyzerResourceOptions_CustomTimeouts proto.InternalMessageInfo
func (m *AnalyzerResourceOptions_CustomTimeouts) GetCreate() float64 {
if m != nil {
return m.Create
}
return 0
}
func (m *AnalyzerResourceOptions_CustomTimeouts) GetUpdate() float64 {
if m != nil {
return m.Update
}
return 0
}
func (m *AnalyzerResourceOptions_CustomTimeouts) GetDelete() float64 {
if m != nil {
return m.Delete
}
return 0
}
// AnalyzerProviderResource provides information about a resource's provider.
type AnalyzerProviderResource struct {
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
Properties *_struct.Struct `protobuf:"bytes,2,opt,name=properties,proto3" json:"properties,omitempty"`
Urn string `protobuf:"bytes,3,opt,name=urn,proto3" json:"urn,omitempty"`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AnalyzerProviderResource) Reset() { *m = AnalyzerProviderResource{} }
func (m *AnalyzerProviderResource) String() string { return proto.CompactTextString(m) }
func (*AnalyzerProviderResource) ProtoMessage() {}
func (*AnalyzerProviderResource) Descriptor() ([]byte, []int) {
return fileDescriptor_fadbb7eccb91f143, []int{3}
}
func (m *AnalyzerProviderResource) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AnalyzerProviderResource.Unmarshal(m, b)
}
func (m *AnalyzerProviderResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AnalyzerProviderResource.Marshal(b, m, deterministic)
}
func (m *AnalyzerProviderResource) XXX_Merge(src proto.Message) {
xxx_messageInfo_AnalyzerProviderResource.Merge(m, src)
}
func (m *AnalyzerProviderResource) XXX_Size() int {
return xxx_messageInfo_AnalyzerProviderResource.Size(m)
}
func (m *AnalyzerProviderResource) XXX_DiscardUnknown() {
xxx_messageInfo_AnalyzerProviderResource.DiscardUnknown(m)
}
var xxx_messageInfo_AnalyzerProviderResource proto.InternalMessageInfo
func (m *AnalyzerProviderResource) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *AnalyzerProviderResource) GetProperties() *_struct.Struct {
if m != nil {
return m.Properties
}
return nil
}
func (m *AnalyzerProviderResource) GetUrn() string {
if m != nil {
return m.Urn
}
return ""
}
func (m *AnalyzerProviderResource) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// AnalyzerPropertyDependencies describes the resources that a particular property depends on.
type AnalyzerPropertyDependencies struct {
Urns []string `protobuf:"bytes,1,rep,name=urns,proto3" json:"urns,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AnalyzerPropertyDependencies) Reset() { *m = AnalyzerPropertyDependencies{} }
func (m *AnalyzerPropertyDependencies) String() string { return proto.CompactTextString(m) }
func (*AnalyzerPropertyDependencies) ProtoMessage() {}
func (*AnalyzerPropertyDependencies) Descriptor() ([]byte, []int) {
return fileDescriptor_fadbb7eccb91f143, []int{4}
}
func (m *AnalyzerPropertyDependencies) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AnalyzerPropertyDependencies.Unmarshal(m, b)
}
func (m *AnalyzerPropertyDependencies) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AnalyzerPropertyDependencies.Marshal(b, m, deterministic)
}
func (m *AnalyzerPropertyDependencies) XXX_Merge(src proto.Message) {
xxx_messageInfo_AnalyzerPropertyDependencies.Merge(m, src)
}
func (m *AnalyzerPropertyDependencies) XXX_Size() int {
return xxx_messageInfo_AnalyzerPropertyDependencies.Size(m)
}
func (m *AnalyzerPropertyDependencies) XXX_DiscardUnknown() {
xxx_messageInfo_AnalyzerPropertyDependencies.DiscardUnknown(m)
}
var xxx_messageInfo_AnalyzerPropertyDependencies proto.InternalMessageInfo
func (m *AnalyzerPropertyDependencies) GetUrns() []string {
if m != nil {
return m.Urns
}
return nil
}
type AnalyzeStackRequest struct {
Resources []*AnalyzerResource `protobuf:"bytes,1,rep,name=resources,proto3" 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_fadbb7eccb91f143, []int{5}
}
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 (m *AnalyzeStackRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_AnalyzeStackRequest.Merge(m, 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() []*AnalyzerResource {
if m != nil {
return m.Resources
}
return nil
}
type AnalyzeResponse struct {
Diagnostics []*AnalyzeDiagnostic `protobuf:"bytes,2,rep,name=diagnostics,proto3" 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_fadbb7eccb91f143, []int{6}
}
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 (m *AnalyzeResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_AnalyzeResponse.Merge(m, 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() []*AnalyzeDiagnostic {
if m != nil {
return m.Diagnostics
}
return nil
}
type AnalyzeDiagnostic struct {
PolicyName string `protobuf:"bytes,1,opt,name=policyName,proto3" json:"policyName,omitempty"`
PolicyPackName string `protobuf:"bytes,2,opt,name=policyPackName,proto3" json:"policyPackName,omitempty"`
PolicyPackVersion string `protobuf:"bytes,3,opt,name=policyPackVersion,proto3" json:"policyPackVersion,omitempty"`
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"`
EnforcementLevel EnforcementLevel `protobuf:"varint,7,opt,name=enforcementLevel,proto3,enum=pulumirpc.EnforcementLevel" json:"enforcementLevel,omitempty"`
Urn string `protobuf:"bytes,8,opt,name=urn,proto3" json:"urn,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AnalyzeDiagnostic) Reset() { *m = AnalyzeDiagnostic{} }
func (m *AnalyzeDiagnostic) String() string { return proto.CompactTextString(m) }
func (*AnalyzeDiagnostic) ProtoMessage() {}
func (*AnalyzeDiagnostic) Descriptor() ([]byte, []int) {
return fileDescriptor_fadbb7eccb91f143, []int{7}
}
func (m *AnalyzeDiagnostic) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AnalyzeDiagnostic.Unmarshal(m, b)
}
func (m *AnalyzeDiagnostic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AnalyzeDiagnostic.Marshal(b, m, deterministic)
}
func (m *AnalyzeDiagnostic) XXX_Merge(src proto.Message) {
xxx_messageInfo_AnalyzeDiagnostic.Merge(m, src)
}
func (m *AnalyzeDiagnostic) XXX_Size() int {
return xxx_messageInfo_AnalyzeDiagnostic.Size(m)
}
func (m *AnalyzeDiagnostic) XXX_DiscardUnknown() {
xxx_messageInfo_AnalyzeDiagnostic.DiscardUnknown(m)
}
var xxx_messageInfo_AnalyzeDiagnostic proto.InternalMessageInfo
func (m *AnalyzeDiagnostic) GetPolicyName() string {
if m != nil {
return m.PolicyName
}
return ""
}
func (m *AnalyzeDiagnostic) GetPolicyPackName() string {
if m != nil {
return m.PolicyPackName
}
return ""
}
func (m *AnalyzeDiagnostic) GetPolicyPackVersion() string {
if m != nil {
return m.PolicyPackVersion
}
return ""
}
func (m *AnalyzeDiagnostic) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *AnalyzeDiagnostic) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
func (m *AnalyzeDiagnostic) GetTags() []string {
if m != nil {
return m.Tags
}
return nil
}
func (m *AnalyzeDiagnostic) GetEnforcementLevel() EnforcementLevel {
if m != nil {
return m.EnforcementLevel
}
return EnforcementLevel_ADVISORY
}
func (m *AnalyzeDiagnostic) GetUrn() string {
if m != nil {
return m.Urn
}
return ""
}
// AnalyzerInfo provides metadata about a PolicyPack inside an analyzer.
type AnalyzerInfo struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
DisplayName string `protobuf:"bytes,2,opt,name=displayName,proto3" json:"displayName,omitempty"`
Policies []*PolicyInfo `protobuf:"bytes,3,rep,name=policies,proto3" json:"policies,omitempty"`
Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
SupportsConfig bool `protobuf:"varint,5,opt,name=supportsConfig,proto3" json:"supportsConfig,omitempty"`
InitialConfig map[string]*PolicyConfig `protobuf:"bytes,6,rep,name=initialConfig,proto3" json:"initialConfig,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AnalyzerInfo) Reset() { *m = AnalyzerInfo{} }
func (m *AnalyzerInfo) String() string { return proto.CompactTextString(m) }
func (*AnalyzerInfo) ProtoMessage() {}
func (*AnalyzerInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_fadbb7eccb91f143, []int{8}
}
func (m *AnalyzerInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AnalyzerInfo.Unmarshal(m, b)
}
func (m *AnalyzerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AnalyzerInfo.Marshal(b, m, deterministic)
}
func (m *AnalyzerInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_AnalyzerInfo.Merge(m, src)
}
func (m *AnalyzerInfo) XXX_Size() int {
return xxx_messageInfo_AnalyzerInfo.Size(m)
}
func (m *AnalyzerInfo) XXX_DiscardUnknown() {
xxx_messageInfo_AnalyzerInfo.DiscardUnknown(m)
}
var xxx_messageInfo_AnalyzerInfo proto.InternalMessageInfo
func (m *AnalyzerInfo) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *AnalyzerInfo) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
func (m *AnalyzerInfo) GetPolicies() []*PolicyInfo {
if m != nil {
return m.Policies
}
return nil
}
func (m *AnalyzerInfo) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
func (m *AnalyzerInfo) GetSupportsConfig() bool {
if m != nil {
return m.SupportsConfig
}
return false
}
func (m *AnalyzerInfo) GetInitialConfig() map[string]*PolicyConfig {
if m != nil {
return m.InitialConfig
}
return nil
}
// PolicyInfo provides metadata about a policy within a Policy Pack.
type PolicyInfo struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
DisplayName string `protobuf:"bytes,2,opt,name=displayName,proto3" json:"displayName,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
EnforcementLevel EnforcementLevel `protobuf:"varint,5,opt,name=enforcementLevel,proto3,enum=pulumirpc.EnforcementLevel" json:"enforcementLevel,omitempty"`
ConfigSchema *PolicyConfigSchema `protobuf:"bytes,6,opt,name=configSchema,proto3" json:"configSchema,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PolicyInfo) Reset() { *m = PolicyInfo{} }
func (m *PolicyInfo) String() string { return proto.CompactTextString(m) }
func (*PolicyInfo) ProtoMessage() {}
func (*PolicyInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_fadbb7eccb91f143, []int{9}
}
func (m *PolicyInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PolicyInfo.Unmarshal(m, b)
}
func (m *PolicyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PolicyInfo.Marshal(b, m, deterministic)
}
func (m *PolicyInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_PolicyInfo.Merge(m, src)
}
func (m *PolicyInfo) XXX_Size() int {
return xxx_messageInfo_PolicyInfo.Size(m)
}
func (m *PolicyInfo) XXX_DiscardUnknown() {
xxx_messageInfo_PolicyInfo.DiscardUnknown(m)
}
var xxx_messageInfo_PolicyInfo proto.InternalMessageInfo
func (m *PolicyInfo) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *PolicyInfo) GetDisplayName() string {
if m != nil {
return m.DisplayName
}
return ""
}
func (m *PolicyInfo) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *PolicyInfo) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
func (m *PolicyInfo) GetEnforcementLevel() EnforcementLevel {
if m != nil {
return m.EnforcementLevel
}
return EnforcementLevel_ADVISORY
}
func (m *PolicyInfo) GetConfigSchema() *PolicyConfigSchema {
if m != nil {
return m.ConfigSchema
}
return nil
}
// PolicyConfigSchema provides the schema for a policy's configuration.
type PolicyConfigSchema struct {
Properties *_struct.Struct `protobuf:"bytes,1,opt,name=properties,proto3" json:"properties,omitempty"`
Required []string `protobuf:"bytes,2,rep,name=required,proto3" json:"required,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PolicyConfigSchema) Reset() { *m = PolicyConfigSchema{} }
func (m *PolicyConfigSchema) String() string { return proto.CompactTextString(m) }
func (*PolicyConfigSchema) ProtoMessage() {}
func (*PolicyConfigSchema) Descriptor() ([]byte, []int) {
return fileDescriptor_fadbb7eccb91f143, []int{10}
}
func (m *PolicyConfigSchema) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PolicyConfigSchema.Unmarshal(m, b)
}
func (m *PolicyConfigSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PolicyConfigSchema.Marshal(b, m, deterministic)
}
func (m *PolicyConfigSchema) XXX_Merge(src proto.Message) {
xxx_messageInfo_PolicyConfigSchema.Merge(m, src)
}
func (m *PolicyConfigSchema) XXX_Size() int {
return xxx_messageInfo_PolicyConfigSchema.Size(m)
}
func (m *PolicyConfigSchema) XXX_DiscardUnknown() {
xxx_messageInfo_PolicyConfigSchema.DiscardUnknown(m)
}
var xxx_messageInfo_PolicyConfigSchema proto.InternalMessageInfo
func (m *PolicyConfigSchema) GetProperties() *_struct.Struct {
if m != nil {
return m.Properties
}
return nil
}
func (m *PolicyConfigSchema) GetRequired() []string {
if m != nil {
return m.Required
}
return nil
}
// PolicyConfig provides configuration for a policy.
type PolicyConfig struct {
EnforcementLevel EnforcementLevel `protobuf:"varint,1,opt,name=enforcementLevel,proto3,enum=pulumirpc.EnforcementLevel" json:"enforcementLevel,omitempty"`
Properties *_struct.Struct `protobuf:"bytes,2,opt,name=properties,proto3" json:"properties,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PolicyConfig) Reset() { *m = PolicyConfig{} }
func (m *PolicyConfig) String() string { return proto.CompactTextString(m) }
func (*PolicyConfig) ProtoMessage() {}
func (*PolicyConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_fadbb7eccb91f143, []int{11}
}
func (m *PolicyConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PolicyConfig.Unmarshal(m, b)
}
func (m *PolicyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PolicyConfig.Marshal(b, m, deterministic)
}
func (m *PolicyConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_PolicyConfig.Merge(m, src)
}
func (m *PolicyConfig) XXX_Size() int {
return xxx_messageInfo_PolicyConfig.Size(m)
}
func (m *PolicyConfig) XXX_DiscardUnknown() {
xxx_messageInfo_PolicyConfig.DiscardUnknown(m)
}
var xxx_messageInfo_PolicyConfig proto.InternalMessageInfo
func (m *PolicyConfig) GetEnforcementLevel() EnforcementLevel {
if m != nil {
return m.EnforcementLevel
}
return EnforcementLevel_ADVISORY
}
func (m *PolicyConfig) GetProperties() *_struct.Struct {
if m != nil {
return m.Properties
}
return nil
}
// ConfigureAnalyzerRequest provides configuration information to the analyzer.
type ConfigureAnalyzerRequest struct {
PolicyConfig map[string]*PolicyConfig `protobuf:"bytes,1,rep,name=policyConfig,proto3" json:"policyConfig,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConfigureAnalyzerRequest) Reset() { *m = ConfigureAnalyzerRequest{} }
func (m *ConfigureAnalyzerRequest) String() string { return proto.CompactTextString(m) }
func (*ConfigureAnalyzerRequest) ProtoMessage() {}
func (*ConfigureAnalyzerRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_fadbb7eccb91f143, []int{12}
}
func (m *ConfigureAnalyzerRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfigureAnalyzerRequest.Unmarshal(m, b)
}
func (m *ConfigureAnalyzerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfigureAnalyzerRequest.Marshal(b, m, deterministic)
}
func (m *ConfigureAnalyzerRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfigureAnalyzerRequest.Merge(m, src)
}
func (m *ConfigureAnalyzerRequest) XXX_Size() int {
return xxx_messageInfo_ConfigureAnalyzerRequest.Size(m)
}
func (m *ConfigureAnalyzerRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ConfigureAnalyzerRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ConfigureAnalyzerRequest proto.InternalMessageInfo
func (m *ConfigureAnalyzerRequest) GetPolicyConfig() map[string]*PolicyConfig {
if m != nil {
return m.PolicyConfig
}
return nil
}
func init() {
proto.RegisterEnum("pulumirpc.EnforcementLevel", EnforcementLevel_name, EnforcementLevel_value)
proto.RegisterType((*AnalyzeRequest)(nil), "pulumirpc.AnalyzeRequest")
proto.RegisterType((*AnalyzerResource)(nil), "pulumirpc.AnalyzerResource")
proto.RegisterMapType((map[string]*AnalyzerPropertyDependencies)(nil), "pulumirpc.AnalyzerResource.PropertyDependenciesEntry")
proto.RegisterType((*AnalyzerResourceOptions)(nil), "pulumirpc.AnalyzerResourceOptions")
proto.RegisterType((*AnalyzerResourceOptions_CustomTimeouts)(nil), "pulumirpc.AnalyzerResourceOptions.CustomTimeouts")
proto.RegisterType((*AnalyzerProviderResource)(nil), "pulumirpc.AnalyzerProviderResource")
proto.RegisterType((*AnalyzerPropertyDependencies)(nil), "pulumirpc.AnalyzerPropertyDependencies")
proto.RegisterType((*AnalyzeStackRequest)(nil), "pulumirpc.AnalyzeStackRequest")
proto.RegisterType((*AnalyzeResponse)(nil), "pulumirpc.AnalyzeResponse")
proto.RegisterType((*AnalyzeDiagnostic)(nil), "pulumirpc.AnalyzeDiagnostic")
proto.RegisterType((*AnalyzerInfo)(nil), "pulumirpc.AnalyzerInfo")
proto.RegisterMapType((map[string]*PolicyConfig)(nil), "pulumirpc.AnalyzerInfo.InitialConfigEntry")
proto.RegisterType((*PolicyInfo)(nil), "pulumirpc.PolicyInfo")
proto.RegisterType((*PolicyConfigSchema)(nil), "pulumirpc.PolicyConfigSchema")
proto.RegisterType((*PolicyConfig)(nil), "pulumirpc.PolicyConfig")
proto.RegisterType((*ConfigureAnalyzerRequest)(nil), "pulumirpc.ConfigureAnalyzerRequest")
proto.RegisterMapType((map[string]*PolicyConfig)(nil), "pulumirpc.ConfigureAnalyzerRequest.PolicyConfigEntry")
}
func init() { proto.RegisterFile("analyzer.proto", fileDescriptor_fadbb7eccb91f143) }
var fileDescriptor_fadbb7eccb91f143 = []byte{
// 1130 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x57, 0x51, 0x6f, 0x1b, 0x45,
0x10, 0xce, 0xd9, 0x69, 0x62, 0x8f, 0x1d, 0xd7, 0xd9, 0x42, 0x73, 0xbd, 0x86, 0x2a, 0xba, 0x22,
0x88, 0x2a, 0x70, 0xa9, 0x11, 0xa2, 0x20, 0x0a, 0x38, 0x71, 0x14, 0x05, 0x85, 0xc6, 0xac, 0xab,
0xaa, 0x79, 0xbc, 0x9e, 0xc7, 0xee, 0x2a, 0xe7, 0xbb, 0xeb, 0xde, 0x5e, 0x24, 0xf3, 0xc8, 0x23,
0x12, 0x12, 0x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0x8c, 0x9e, 0xb7, 0xd7, 0xc8, 0x16, 0xd4, 0xbf, 0xef, 0x3d, 0xed, 0xf7, 0x9e, 0x49, 0xd3, 0x90,
0x9b, 0xfd, 0x93, 0x61, 0xef, 0xe0, 0xf4, 0xa8, 0xdf, 0xae, 0x74, 0xff, 0xae, 0x40, 0x2d, 0x2d,
0x86, 0x1c, 0xc0, 0x66, 0xb2, 0x26, 0x77, 0x8a, 0x5f, 0x72, 0x52, 0xab, 0x65, 0x95, 0x6d, 0xe9,
0xa7, 0xc4, 0x5e, 0x23, 0xa7, 0xf3, 0xa1, 0xa6, 0x5e, 0x2c, 0x72, 0xaf, 0x88, 0xce, 0x3e, 0x65,
0x6f, 0xc8, 0xd6, 0x87, 0x9b, 0xc7, 0x28, 0x72, 0x53, 0xf2, 0x76, 0xa1, 0xcf, 0x47, 0xf2, 0xef,
0x90, 0xb5, 0xb3, 0x64, 0xf6, 0xd8, 0x6b, 0xe4, 0x5b, 0xd8, 0x3a, 0x46, 0x31, 0x50, 0xff, 0xa9,
0x56, 0xe6, 0xc8, 0x4d, 0xce, 0x39, 0xdc, 0x5e, 0x23, 0xdf, 0x41, 0x7d, 0xde, 0x7b, 0x72, 0xff,
0x2d, 0x14, 0x61, 0x2d, 0x39, 0xc2, 0x5e, 0x7b, 0xb9, 0xa1, 0x3c, 0x9f, 0xfe, 0x13, 0x00, 0x00,
0xff, 0xff, 0x13, 0xd0, 0x20, 0xeb, 0x00, 0x0e, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// 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.SupportPackageIsVersion6
// AnalyzerClient is the client API for Analyzer service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type AnalyzerClient interface {
// Analyze analyzes a single resource object, and returns any errors that it finds.
// Called with the "inputs" to the resource, before it is updated.
Analyze(ctx context.Context, in *AnalyzeRequest, opts ...grpc.CallOption) (*AnalyzeResponse, error)
// AnalyzeStack analyzes all resources within a stack, at the end of a successful
// preview or update. The provided resources are the "outputs", after any mutations
// have taken place.
AnalyzeStack(ctx context.Context, in *AnalyzeStackRequest, opts ...grpc.CallOption) (*AnalyzeResponse, error)
// GetAnalyzerInfo returns metadata about the analyzer (e.g., list of policies contained).
GetAnalyzerInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*AnalyzerInfo, error)
// GetPluginInfo returns generic information about this plugin, like its version.
GetPluginInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PluginInfo, error)
// Configure configures the analyzer, passing configuration properties for each policy.
Configure(ctx context.Context, in *ConfigureAnalyzerRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
type analyzerClient struct {
cc grpc.ClientConnInterface
}
func NewAnalyzerClient(cc grpc.ClientConnInterface) AnalyzerClient {
return &analyzerClient{cc}
}
func (c *analyzerClient) Analyze(ctx context.Context, in *AnalyzeRequest, opts ...grpc.CallOption) (*AnalyzeResponse, error) {
out := new(AnalyzeResponse)
err := c.cc.Invoke(ctx, "/pulumirpc.Analyzer/Analyze", in, out, 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 := c.cc.Invoke(ctx, "/pulumirpc.Analyzer/AnalyzeStack", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *analyzerClient) GetAnalyzerInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*AnalyzerInfo, error) {
out := new(AnalyzerInfo)
err := c.cc.Invoke(ctx, "/pulumirpc.Analyzer/GetAnalyzerInfo", in, out, 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 := c.cc.Invoke(ctx, "/pulumirpc.Analyzer/GetPluginInfo", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *analyzerClient) Configure(ctx context.Context, in *ConfigureAnalyzerRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/pulumirpc.Analyzer/Configure", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// AnalyzerServer is the server API for Analyzer service.
type AnalyzerServer interface {
// Analyze analyzes a single resource object, and returns any errors that it finds.
// Called with the "inputs" to the resource, before it is updated.
Analyze(context.Context, *AnalyzeRequest) (*AnalyzeResponse, error)
// AnalyzeStack analyzes all resources within a stack, at the end of a successful
// preview or update. The provided resources are the "outputs", after any mutations
// have taken place.
AnalyzeStack(context.Context, *AnalyzeStackRequest) (*AnalyzeResponse, error)
// GetAnalyzerInfo returns metadata about the analyzer (e.g., list of policies contained).
GetAnalyzerInfo(context.Context, *empty.Empty) (*AnalyzerInfo, error)
// GetPluginInfo returns generic information about this plugin, like its version.
GetPluginInfo(context.Context, *empty.Empty) (*PluginInfo, error)
// Configure configures the analyzer, passing configuration properties for each policy.
Configure(context.Context, *ConfigureAnalyzerRequest) (*empty.Empty, error)
}
// UnimplementedAnalyzerServer can be embedded to have forward compatible implementations.
type UnimplementedAnalyzerServer struct {
}
func (*UnimplementedAnalyzerServer) Analyze(ctx context.Context, req *AnalyzeRequest) (*AnalyzeResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Analyze not implemented")
}
func (*UnimplementedAnalyzerServer) AnalyzeStack(ctx context.Context, req *AnalyzeStackRequest) (*AnalyzeResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AnalyzeStack not implemented")
}
func (*UnimplementedAnalyzerServer) GetAnalyzerInfo(ctx context.Context, req *empty.Empty) (*AnalyzerInfo, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAnalyzerInfo not implemented")
}
func (*UnimplementedAnalyzerServer) GetPluginInfo(ctx context.Context, req *empty.Empty) (*PluginInfo, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetPluginInfo not implemented")
}
func (*UnimplementedAnalyzerServer) Configure(ctx context.Context, req *ConfigureAnalyzerRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method Configure not implemented")
}
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_GetAnalyzerInfo_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).GetAnalyzerInfo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pulumirpc.Analyzer/GetAnalyzerInfo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AnalyzerServer).GetAnalyzerInfo(ctx, req.(*empty.Empty))
}
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)
}
func _Analyzer_Configure_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ConfigureAnalyzerRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AnalyzerServer).Configure(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pulumirpc.Analyzer/Configure",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AnalyzerServer).Configure(ctx, req.(*ConfigureAnalyzerRequest))
}
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: "GetAnalyzerInfo",
Handler: _Analyzer_GetAnalyzerInfo_Handler,
},
{
MethodName: "GetPluginInfo",
Handler: _Analyzer_GetPluginInfo_Handler,
},
{
MethodName: "Configure",
Handler: _Analyzer_Configure_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "analyzer.proto",
}