Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterRuleSetServer(s grpc.ServiceRegistrar, srv RuleSetServer)
- func RegisterRunnerServer(s grpc.ServiceRegistrar, srv RunnerServer)
- type ApplyConfig
- type ApplyConfig_Request
- func (*ApplyConfig_Request) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyConfig_Request) GetContent() *BodyContent
- func (*ApplyConfig_Request) ProtoMessage()
- func (x *ApplyConfig_Request) ProtoReflect() protoreflect.Message
- func (x *ApplyConfig_Request) Reset()
- func (x *ApplyConfig_Request) String() string
- type ApplyConfig_Response
- type ApplyGlobalConfig
- type ApplyGlobalConfig_Request
- func (*ApplyGlobalConfig_Request) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyGlobalConfig_Request) GetConfig() *Config
- func (*ApplyGlobalConfig_Request) ProtoMessage()
- func (x *ApplyGlobalConfig_Request) ProtoReflect() protoreflect.Message
- func (x *ApplyGlobalConfig_Request) Reset()
- func (x *ApplyGlobalConfig_Request) String() string
- type ApplyGlobalConfig_Response
- type Attribute
- func (*Attribute) Descriptor() ([]byte, []int)deprecated
- func (x *Attribute) GetExprBytes() []byte
- func (x *Attribute) GetExprValue() []byte
- func (x *Attribute) GetName() string
- func (x *Attribute) GetNameRange() *Range
- func (x *Attribute) GetRange() *Range
- func (*Attribute) ProtoMessage()
- func (x *Attribute) ProtoReflect() protoreflect.Message
- func (x *Attribute) Reset()
- func (x *Attribute) String() string
- type AttributeSchema
- func (*AttributeSchema) Descriptor() ([]byte, []int)deprecated
- func (x *AttributeSchema) GetName() string
- func (x *AttributeSchema) GetRequired() bool
- func (*AttributeSchema) ProtoMessage()
- func (x *AttributeSchema) ProtoReflect() protoreflect.Message
- func (x *AttributeSchema) Reset()
- func (x *AttributeSchema) String() string
- type Block
- func (*Block) Descriptor() ([]byte, []int)deprecated
- func (x *Block) GetBody() *BodyContent
- func (x *Block) GetDefRange() *Range
- func (x *Block) GetLabelRanges() []*Range
- func (x *Block) GetLabels() []string
- func (x *Block) GetType() string
- func (x *Block) GetTypeRange() *Range
- func (*Block) ProtoMessage()
- func (x *Block) ProtoReflect() protoreflect.Message
- func (x *Block) Reset()
- func (x *Block) String() string
- type BlockSchema
- func (*BlockSchema) Descriptor() ([]byte, []int)deprecated
- func (x *BlockSchema) GetBody() *BodySchema
- func (x *BlockSchema) GetLabelNames() []string
- func (x *BlockSchema) GetType() string
- func (*BlockSchema) ProtoMessage()
- func (x *BlockSchema) ProtoReflect() protoreflect.Message
- func (x *BlockSchema) Reset()
- func (x *BlockSchema) String() string
- type BodyContent
- func (*BodyContent) Descriptor() ([]byte, []int)deprecated
- func (x *BodyContent) GetAttributes() map[string]*Attribute
- func (x *BodyContent) GetBlocks() []*Block
- func (*BodyContent) ProtoMessage()
- func (x *BodyContent) ProtoReflect() protoreflect.Message
- func (x *BodyContent) Reset()
- func (x *BodyContent) String() string
- type BodySchema
- func (*BodySchema) Descriptor() ([]byte, []int)deprecated
- func (x *BodySchema) GetAttributes() []*AttributeSchema
- func (x *BodySchema) GetBlocks() []*BlockSchema
- func (x *BodySchema) GetMode() SchemaMode
- func (*BodySchema) ProtoMessage()
- func (x *BodySchema) ProtoReflect() protoreflect.Message
- func (x *BodySchema) Reset()
- func (x *BodySchema) String() string
- type Check
- type Check_Request
- type Check_Response
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetDisabledByDefault() bool
- func (x *Config) GetOnly() []string
- func (x *Config) GetPluginDir() string
- func (x *Config) GetRules() map[string]*RuleConfig
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type DecodeRuleConfig
- type DecodeRuleConfig_Request
- func (*DecodeRuleConfig_Request) Descriptor() ([]byte, []int)deprecated
- func (x *DecodeRuleConfig_Request) GetRuleName() string
- func (*DecodeRuleConfig_Request) ProtoMessage()
- func (x *DecodeRuleConfig_Request) ProtoReflect() protoreflect.Message
- func (x *DecodeRuleConfig_Request) Reset()
- func (x *DecodeRuleConfig_Request) String() string
- type DecodeRuleConfig_Response
- func (*DecodeRuleConfig_Response) Descriptor() ([]byte, []int)deprecated
- func (x *DecodeRuleConfig_Response) GetConfigBytes() []byte
- func (x *DecodeRuleConfig_Response) GetHasConfig() bool
- func (*DecodeRuleConfig_Response) ProtoMessage()
- func (x *DecodeRuleConfig_Response) ProtoReflect() protoreflect.Message
- func (x *DecodeRuleConfig_Response) Reset()
- func (x *DecodeRuleConfig_Response) String() string
- type EmitIssue
- type EmitIssue_Request
- func (*EmitIssue_Request) Descriptor() ([]byte, []int)deprecated
- func (x *EmitIssue_Request) GetMessage() string
- func (x *EmitIssue_Request) GetRange() *Range
- func (x *EmitIssue_Request) GetRule() *Rule
- func (*EmitIssue_Request) ProtoMessage()
- func (x *EmitIssue_Request) ProtoReflect() protoreflect.Message
- func (x *EmitIssue_Request) Reset()
- func (x *EmitIssue_Request) String() string
- type EmitIssue_Response
- type ExpandMode
- type GetConfigSchema
- type GetConfigSchema_Request
- type GetConfigSchema_Response
- func (*GetConfigSchema_Response) Descriptor() ([]byte, []int)deprecated
- func (x *GetConfigSchema_Response) GetSchema() *BodySchema
- func (*GetConfigSchema_Response) ProtoMessage()
- func (x *GetConfigSchema_Response) ProtoReflect() protoreflect.Message
- func (x *GetConfigSchema_Response) Reset()
- func (x *GetConfigSchema_Response) String() string
- type GetModuleContent
- type GetModuleContentOption
- func (*GetModuleContentOption) Descriptor() ([]byte, []int)deprecated
- func (x *GetModuleContentOption) GetExpandMode() ExpandMode
- func (x *GetModuleContentOption) GetModuleCtx() ModuleCtxType
- func (x *GetModuleContentOption) GetResourceTypeHint() string
- func (*GetModuleContentOption) ProtoMessage()
- func (x *GetModuleContentOption) ProtoReflect() protoreflect.Message
- func (x *GetModuleContentOption) Reset()
- func (x *GetModuleContentOption) String() string
- type GetModuleContent_Request
- func (*GetModuleContent_Request) Descriptor() ([]byte, []int)deprecated
- func (x *GetModuleContent_Request) GetOption() *GetModuleContentOption
- func (x *GetModuleContent_Request) GetSchema() *BodySchema
- func (*GetModuleContent_Request) ProtoMessage()
- func (x *GetModuleContent_Request) ProtoReflect() protoreflect.Message
- func (x *GetModuleContent_Request) Reset()
- func (x *GetModuleContent_Request) String() string
- type GetModuleContent_Response
- func (*GetModuleContent_Response) Descriptor() ([]byte, []int)deprecated
- func (x *GetModuleContent_Response) GetContent() *BodyContent
- func (*GetModuleContent_Response) ProtoMessage()
- func (x *GetModuleContent_Response) ProtoReflect() protoreflect.Message
- func (x *GetModuleContent_Response) Reset()
- func (x *GetModuleContent_Response) String() string
- type GetResourceContent
- type GetResourceContent_Request
- func (*GetResourceContent_Request) Descriptor() ([]byte, []int)deprecated
- func (x *GetResourceContent_Request) GetOption() *GetModuleContentOption
- func (x *GetResourceContent_Request) GetResourceType() string
- func (x *GetResourceContent_Request) GetSchema() *BodySchema
- func (*GetResourceContent_Request) ProtoMessage()
- func (x *GetResourceContent_Request) ProtoReflect() protoreflect.Message
- func (x *GetResourceContent_Request) Reset()
- func (x *GetResourceContent_Request) String() string
- type GetResourceContent_Response
- func (*GetResourceContent_Response) Descriptor() ([]byte, []int)deprecated
- func (x *GetResourceContent_Response) GetContent() *BodyContent
- func (*GetResourceContent_Response) ProtoMessage()
- func (x *GetResourceContent_Response) ProtoReflect() protoreflect.Message
- func (x *GetResourceContent_Response) Reset()
- func (x *GetResourceContent_Response) String() string
- type GetRuleNames
- type GetRuleNames_Request
- type GetRuleNames_Response
- func (*GetRuleNames_Response) Descriptor() ([]byte, []int)deprecated
- func (x *GetRuleNames_Response) GetNames() []string
- func (*GetRuleNames_Response) ProtoMessage()
- func (x *GetRuleNames_Response) ProtoReflect() protoreflect.Message
- func (x *GetRuleNames_Response) Reset()
- func (x *GetRuleNames_Response) String() string
- type GetRuleSetName
- type GetRuleSetName_Request
- type GetRuleSetName_Response
- func (*GetRuleSetName_Response) Descriptor() ([]byte, []int)deprecated
- func (x *GetRuleSetName_Response) GetName() string
- func (*GetRuleSetName_Response) ProtoMessage()
- func (x *GetRuleSetName_Response) ProtoReflect() protoreflect.Message
- func (x *GetRuleSetName_Response) Reset()
- func (x *GetRuleSetName_Response) String() string
- type GetRuleSetVersion
- type GetRuleSetVersion_Request
- type GetRuleSetVersion_Response
- func (*GetRuleSetVersion_Response) Descriptor() ([]byte, []int)deprecated
- func (x *GetRuleSetVersion_Response) GetVersion() string
- func (*GetRuleSetVersion_Response) ProtoMessage()
- func (x *GetRuleSetVersion_Response) ProtoReflect() protoreflect.Message
- func (x *GetRuleSetVersion_Response) Reset()
- func (x *GetRuleSetVersion_Response) String() string
- type GetVersionConstraint
- type GetVersionConstraint_Request
- func (*GetVersionConstraint_Request) Descriptor() ([]byte, []int)deprecated
- func (*GetVersionConstraint_Request) ProtoMessage()
- func (x *GetVersionConstraint_Request) ProtoReflect() protoreflect.Message
- func (x *GetVersionConstraint_Request) Reset()
- func (x *GetVersionConstraint_Request) String() string
- type GetVersionConstraint_Response
- func (*GetVersionConstraint_Response) Descriptor() ([]byte, []int)deprecated
- func (x *GetVersionConstraint_Response) GetConstraint() string
- func (*GetVersionConstraint_Response) ProtoMessage()
- func (x *GetVersionConstraint_Response) ProtoReflect() protoreflect.Message
- func (x *GetVersionConstraint_Response) Reset()
- func (x *GetVersionConstraint_Response) String() string
- type ModuleCtxType
- func (ModuleCtxType) Descriptor() protoreflect.EnumDescriptor
- func (x ModuleCtxType) Enum() *ModuleCtxType
- func (ModuleCtxType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ModuleCtxType) Number() protoreflect.EnumNumber
- func (x ModuleCtxType) String() string
- func (ModuleCtxType) Type() protoreflect.EnumType
- type Position
- func (*Position) Descriptor() ([]byte, []int)deprecated
- func (x *Position) GetByte() int64
- func (x *Position) GetColumn() int64
- func (x *Position) GetLine() int64
- func (*Position) ProtoMessage()
- func (x *Position) ProtoReflect() protoreflect.Message
- func (x *Position) Reset()
- func (x *Position) String() string
- type Range
- type Rule
- func (*Rule) Descriptor() ([]byte, []int)deprecated
- func (x *Rule) GetEnabled() bool
- func (x *Rule) GetLink() string
- func (x *Rule) GetName() string
- func (x *Rule) GetSeverity() Severity
- func (*Rule) ProtoMessage()
- func (x *Rule) ProtoReflect() protoreflect.Message
- func (x *Rule) Reset()
- func (x *Rule) String() string
- type RuleConfig
- func (*RuleConfig) Descriptor() ([]byte, []int)deprecated
- func (x *RuleConfig) GetBodyBytes() []byte
- func (x *RuleConfig) GetEnabled() bool
- func (x *RuleConfig) GetName() string
- func (*RuleConfig) ProtoMessage()
- func (x *RuleConfig) ProtoReflect() protoreflect.Message
- func (x *RuleConfig) Reset()
- func (x *RuleConfig) String() string
- type RuleSetClient
- type RuleSetServer
- type RunnerClient
- type RunnerServer
- type SchemaMode
- type Severity
- type UnimplementedRuleSetServer
- func (UnimplementedRuleSetServer) ApplyConfig(context.Context, *ApplyConfig_Request) (*ApplyConfig_Response, error)
- func (UnimplementedRuleSetServer) ApplyGlobalConfig(context.Context, *ApplyGlobalConfig_Request) (*ApplyGlobalConfig_Response, error)
- func (UnimplementedRuleSetServer) Check(context.Context, *Check_Request) (*Check_Response, error)
- func (UnimplementedRuleSetServer) GetConfigSchema(context.Context, *GetConfigSchema_Request) (*GetConfigSchema_Response, error)
- func (UnimplementedRuleSetServer) GetRuleNames(context.Context, *GetRuleNames_Request) (*GetRuleNames_Response, error)
- func (UnimplementedRuleSetServer) GetRuleSetName(context.Context, *GetRuleSetName_Request) (*GetRuleSetName_Response, error)
- func (UnimplementedRuleSetServer) GetRuleSetVersion(context.Context, *GetRuleSetVersion_Request) (*GetRuleSetVersion_Response, error)
- func (UnimplementedRuleSetServer) GetVersionConstraint(context.Context, *GetVersionConstraint_Request) (*GetVersionConstraint_Response, error)
- type UnimplementedRunnerServer
- func (UnimplementedRunnerServer) DecodeRuleConfig(context.Context, *DecodeRuleConfig_Request) (*DecodeRuleConfig_Response, error)
- func (UnimplementedRunnerServer) EmitIssue(context.Context, *EmitIssue_Request) (*EmitIssue_Response, error)
- func (UnimplementedRunnerServer) GetNewModuleContent(context.Context, *GetModuleContent_Request) (*GetModuleContent_Response, error)
- func (UnimplementedRunnerServer) GetNewResourceContent(context.Context, *GetResourceContent_Request) (*GetResourceContent_Response, error)
- func (UnimplementedRunnerServer) GetOldModuleContent(context.Context, *GetModuleContent_Request) (*GetModuleContent_Response, error)
- func (UnimplementedRunnerServer) GetOldResourceContent(context.Context, *GetResourceContent_Request) (*GetResourceContent_Response, error)
- type UnsafeRuleSetServer
- type UnsafeRunnerServer
Constants ¶
const ( RuleSet_GetRuleSetName_FullMethodName = "/tfbreak.RuleSet/GetRuleSetName" RuleSet_GetRuleSetVersion_FullMethodName = "/tfbreak.RuleSet/GetRuleSetVersion" RuleSet_GetRuleNames_FullMethodName = "/tfbreak.RuleSet/GetRuleNames" RuleSet_GetVersionConstraint_FullMethodName = "/tfbreak.RuleSet/GetVersionConstraint" RuleSet_GetConfigSchema_FullMethodName = "/tfbreak.RuleSet/GetConfigSchema" RuleSet_ApplyGlobalConfig_FullMethodName = "/tfbreak.RuleSet/ApplyGlobalConfig" RuleSet_ApplyConfig_FullMethodName = "/tfbreak.RuleSet/ApplyConfig" RuleSet_Check_FullMethodName = "/tfbreak.RuleSet/Check" )
const ( Runner_GetOldModuleContent_FullMethodName = "/tfbreak.Runner/GetOldModuleContent" Runner_GetNewModuleContent_FullMethodName = "/tfbreak.Runner/GetNewModuleContent" Runner_GetOldResourceContent_FullMethodName = "/tfbreak.Runner/GetOldResourceContent" Runner_GetNewResourceContent_FullMethodName = "/tfbreak.Runner/GetNewResourceContent" Runner_EmitIssue_FullMethodName = "/tfbreak.Runner/EmitIssue" Runner_DecodeRuleConfig_FullMethodName = "/tfbreak.Runner/DecodeRuleConfig" )
Variables ¶
var ( Severity_name = map[int32]string{ 0: "SEVERITY_UNSPECIFIED", 1: "SEVERITY_ERROR", 2: "SEVERITY_WARNING", 3: "SEVERITY_NOTICE", } Severity_value = map[string]int32{ "SEVERITY_UNSPECIFIED": 0, "SEVERITY_ERROR": 1, "SEVERITY_WARNING": 2, "SEVERITY_NOTICE": 3, } )
Enum value maps for Severity.
var ( SchemaMode_name = map[int32]string{ 0: "SCHEMA_MODE_DEFAULT", 1: "SCHEMA_MODE_JUST_ATTRIBUTES", } SchemaMode_value = map[string]int32{ "SCHEMA_MODE_DEFAULT": 0, "SCHEMA_MODE_JUST_ATTRIBUTES": 1, } )
Enum value maps for SchemaMode.
var ( ModuleCtxType_name = map[int32]string{ 0: "MODULE_CTX_SELF", 1: "MODULE_CTX_ROOT", 2: "MODULE_CTX_ALL", } ModuleCtxType_value = map[string]int32{ "MODULE_CTX_SELF": 0, "MODULE_CTX_ROOT": 1, "MODULE_CTX_ALL": 2, } )
Enum value maps for ModuleCtxType.
var ( ExpandMode_name = map[int32]string{ 0: "EXPAND_MODE_NONE", 1: "EXPAND_MODE_EXPAND", } ExpandMode_value = map[string]int32{ "EXPAND_MODE_NONE": 0, "EXPAND_MODE_EXPAND": 1, } )
Enum value maps for ExpandMode.
var File_plugin_proto_tfbreak_proto protoreflect.FileDescriptor
var RuleSet_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tfbreak.RuleSet", HandlerType: (*RuleSetServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetRuleSetName", Handler: _RuleSet_GetRuleSetName_Handler, }, { MethodName: "GetRuleSetVersion", Handler: _RuleSet_GetRuleSetVersion_Handler, }, { MethodName: "GetRuleNames", Handler: _RuleSet_GetRuleNames_Handler, }, { MethodName: "GetVersionConstraint", Handler: _RuleSet_GetVersionConstraint_Handler, }, { MethodName: "GetConfigSchema", Handler: _RuleSet_GetConfigSchema_Handler, }, { MethodName: "ApplyGlobalConfig", Handler: _RuleSet_ApplyGlobalConfig_Handler, }, { MethodName: "ApplyConfig", Handler: _RuleSet_ApplyConfig_Handler, }, { MethodName: "Check", Handler: _RuleSet_Check_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "plugin/proto/tfbreak.proto", }
RuleSet_ServiceDesc is the grpc.ServiceDesc for RuleSet service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Runner_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tfbreak.Runner", HandlerType: (*RunnerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetOldModuleContent", Handler: _Runner_GetOldModuleContent_Handler, }, { MethodName: "GetNewModuleContent", Handler: _Runner_GetNewModuleContent_Handler, }, { MethodName: "GetOldResourceContent", Handler: _Runner_GetOldResourceContent_Handler, }, { MethodName: "GetNewResourceContent", Handler: _Runner_GetNewResourceContent_Handler, }, { MethodName: "EmitIssue", Handler: _Runner_EmitIssue_Handler, }, { MethodName: "DecodeRuleConfig", Handler: _Runner_DecodeRuleConfig_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "plugin/proto/tfbreak.proto", }
Runner_ServiceDesc is the grpc.ServiceDesc for Runner service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRuleSetServer ¶
func RegisterRuleSetServer(s grpc.ServiceRegistrar, srv RuleSetServer)
func RegisterRunnerServer ¶
func RegisterRunnerServer(s grpc.ServiceRegistrar, srv RunnerServer)
Types ¶
type ApplyConfig ¶
type ApplyConfig struct {
// contains filtered or unexported fields
}
func (*ApplyConfig) Descriptor
deprecated
func (*ApplyConfig) Descriptor() ([]byte, []int)
Deprecated: Use ApplyConfig.ProtoReflect.Descriptor instead.
func (*ApplyConfig) ProtoMessage ¶
func (*ApplyConfig) ProtoMessage()
func (*ApplyConfig) ProtoReflect ¶
func (x *ApplyConfig) ProtoReflect() protoreflect.Message
func (*ApplyConfig) Reset ¶
func (x *ApplyConfig) Reset()
func (*ApplyConfig) String ¶
func (x *ApplyConfig) String() string
type ApplyConfig_Request ¶
type ApplyConfig_Request struct {
Content *BodyContent `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
// contains filtered or unexported fields
}
func (*ApplyConfig_Request) Descriptor
deprecated
func (*ApplyConfig_Request) Descriptor() ([]byte, []int)
Deprecated: Use ApplyConfig_Request.ProtoReflect.Descriptor instead.
func (*ApplyConfig_Request) GetContent ¶
func (x *ApplyConfig_Request) GetContent() *BodyContent
func (*ApplyConfig_Request) ProtoMessage ¶
func (*ApplyConfig_Request) ProtoMessage()
func (*ApplyConfig_Request) ProtoReflect ¶
func (x *ApplyConfig_Request) ProtoReflect() protoreflect.Message
func (*ApplyConfig_Request) Reset ¶
func (x *ApplyConfig_Request) Reset()
func (*ApplyConfig_Request) String ¶
func (x *ApplyConfig_Request) String() string
type ApplyConfig_Response ¶
type ApplyConfig_Response struct {
// contains filtered or unexported fields
}
func (*ApplyConfig_Response) Descriptor
deprecated
func (*ApplyConfig_Response) Descriptor() ([]byte, []int)
Deprecated: Use ApplyConfig_Response.ProtoReflect.Descriptor instead.
func (*ApplyConfig_Response) ProtoMessage ¶
func (*ApplyConfig_Response) ProtoMessage()
func (*ApplyConfig_Response) ProtoReflect ¶
func (x *ApplyConfig_Response) ProtoReflect() protoreflect.Message
func (*ApplyConfig_Response) Reset ¶
func (x *ApplyConfig_Response) Reset()
func (*ApplyConfig_Response) String ¶
func (x *ApplyConfig_Response) String() string
type ApplyGlobalConfig ¶
type ApplyGlobalConfig struct {
// contains filtered or unexported fields
}
func (*ApplyGlobalConfig) Descriptor
deprecated
func (*ApplyGlobalConfig) Descriptor() ([]byte, []int)
Deprecated: Use ApplyGlobalConfig.ProtoReflect.Descriptor instead.
func (*ApplyGlobalConfig) ProtoMessage ¶
func (*ApplyGlobalConfig) ProtoMessage()
func (*ApplyGlobalConfig) ProtoReflect ¶
func (x *ApplyGlobalConfig) ProtoReflect() protoreflect.Message
func (*ApplyGlobalConfig) Reset ¶
func (x *ApplyGlobalConfig) Reset()
func (*ApplyGlobalConfig) String ¶
func (x *ApplyGlobalConfig) String() string
type ApplyGlobalConfig_Request ¶
type ApplyGlobalConfig_Request struct {
Config *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
// contains filtered or unexported fields
}
func (*ApplyGlobalConfig_Request) Descriptor
deprecated
func (*ApplyGlobalConfig_Request) Descriptor() ([]byte, []int)
Deprecated: Use ApplyGlobalConfig_Request.ProtoReflect.Descriptor instead.
func (*ApplyGlobalConfig_Request) GetConfig ¶
func (x *ApplyGlobalConfig_Request) GetConfig() *Config
func (*ApplyGlobalConfig_Request) ProtoMessage ¶
func (*ApplyGlobalConfig_Request) ProtoMessage()
func (*ApplyGlobalConfig_Request) ProtoReflect ¶
func (x *ApplyGlobalConfig_Request) ProtoReflect() protoreflect.Message
func (*ApplyGlobalConfig_Request) Reset ¶
func (x *ApplyGlobalConfig_Request) Reset()
func (*ApplyGlobalConfig_Request) String ¶
func (x *ApplyGlobalConfig_Request) String() string
type ApplyGlobalConfig_Response ¶
type ApplyGlobalConfig_Response struct {
// contains filtered or unexported fields
}
func (*ApplyGlobalConfig_Response) Descriptor
deprecated
func (*ApplyGlobalConfig_Response) Descriptor() ([]byte, []int)
Deprecated: Use ApplyGlobalConfig_Response.ProtoReflect.Descriptor instead.
func (*ApplyGlobalConfig_Response) ProtoMessage ¶
func (*ApplyGlobalConfig_Response) ProtoMessage()
func (*ApplyGlobalConfig_Response) ProtoReflect ¶
func (x *ApplyGlobalConfig_Response) ProtoReflect() protoreflect.Message
func (*ApplyGlobalConfig_Response) Reset ¶
func (x *ApplyGlobalConfig_Response) Reset()
func (*ApplyGlobalConfig_Response) String ¶
func (x *ApplyGlobalConfig_Response) String() string
type Attribute ¶
type Attribute struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// expr_bytes contains the expression as a serializable format.
// We use bytes because hcl.Expression is not directly serializable.
ExprBytes []byte `protobuf:"bytes,2,opt,name=expr_bytes,json=exprBytes,proto3" json:"expr_bytes,omitempty"`
Range *Range `protobuf:"bytes,3,opt,name=range,proto3" json:"range,omitempty"`
NameRange *Range `protobuf:"bytes,4,opt,name=name_range,json=nameRange,proto3" json:"name_range,omitempty"`
// expr_value contains the evaluated value as JSON when available.
ExprValue []byte `protobuf:"bytes,5,opt,name=expr_value,json=exprValue,proto3" json:"expr_value,omitempty"`
// contains filtered or unexported fields
}
Attribute represents an extracted HCL attribute.
func (*Attribute) Descriptor
deprecated
func (*Attribute) GetExprBytes ¶
func (*Attribute) GetExprValue ¶
func (*Attribute) GetNameRange ¶
func (*Attribute) ProtoMessage ¶
func (*Attribute) ProtoMessage()
func (*Attribute) ProtoReflect ¶
func (x *Attribute) ProtoReflect() protoreflect.Message
type AttributeSchema ¶
type AttributeSchema struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Required bool `protobuf:"varint,2,opt,name=required,proto3" json:"required,omitempty"`
// contains filtered or unexported fields
}
AttributeSchema represents an expected HCL attribute.
func (*AttributeSchema) Descriptor
deprecated
func (*AttributeSchema) Descriptor() ([]byte, []int)
Deprecated: Use AttributeSchema.ProtoReflect.Descriptor instead.
func (*AttributeSchema) GetName ¶
func (x *AttributeSchema) GetName() string
func (*AttributeSchema) GetRequired ¶
func (x *AttributeSchema) GetRequired() bool
func (*AttributeSchema) ProtoMessage ¶
func (*AttributeSchema) ProtoMessage()
func (*AttributeSchema) ProtoReflect ¶
func (x *AttributeSchema) ProtoReflect() protoreflect.Message
func (*AttributeSchema) Reset ¶
func (x *AttributeSchema) Reset()
func (*AttributeSchema) String ¶
func (x *AttributeSchema) String() string
type Block ¶
type Block struct {
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
Body *BodyContent `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
DefRange *Range `protobuf:"bytes,4,opt,name=def_range,json=defRange,proto3" json:"def_range,omitempty"`
TypeRange *Range `protobuf:"bytes,5,opt,name=type_range,json=typeRange,proto3" json:"type_range,omitempty"`
LabelRanges []*Range `protobuf:"bytes,6,rep,name=label_ranges,json=labelRanges,proto3" json:"label_ranges,omitempty"`
// contains filtered or unexported fields
}
Block represents an extracted HCL block.
func (*Block) Descriptor
deprecated
func (*Block) GetBody ¶
func (x *Block) GetBody() *BodyContent
func (*Block) GetDefRange ¶
func (*Block) GetLabelRanges ¶
func (*Block) GetTypeRange ¶
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) ProtoReflect ¶
func (x *Block) ProtoReflect() protoreflect.Message
type BlockSchema ¶
type BlockSchema struct {
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
LabelNames []string `protobuf:"bytes,2,rep,name=label_names,json=labelNames,proto3" json:"label_names,omitempty"`
Body *BodySchema `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
// contains filtered or unexported fields
}
BlockSchema represents an expected HCL block.
func (*BlockSchema) Descriptor
deprecated
func (*BlockSchema) Descriptor() ([]byte, []int)
Deprecated: Use BlockSchema.ProtoReflect.Descriptor instead.
func (*BlockSchema) GetBody ¶
func (x *BlockSchema) GetBody() *BodySchema
func (*BlockSchema) GetLabelNames ¶
func (x *BlockSchema) GetLabelNames() []string
func (*BlockSchema) GetType ¶
func (x *BlockSchema) GetType() string
func (*BlockSchema) ProtoMessage ¶
func (*BlockSchema) ProtoMessage()
func (*BlockSchema) ProtoReflect ¶
func (x *BlockSchema) ProtoReflect() protoreflect.Message
func (*BlockSchema) Reset ¶
func (x *BlockSchema) Reset()
func (*BlockSchema) String ¶
func (x *BlockSchema) String() string
type BodyContent ¶
type BodyContent struct {
Attributes map[string]*Attribute `` /* 147-byte string literal not displayed */
Blocks []*Block `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"`
// contains filtered or unexported fields
}
BodyContent represents extracted content from an HCL body.
func (*BodyContent) Descriptor
deprecated
func (*BodyContent) Descriptor() ([]byte, []int)
Deprecated: Use BodyContent.ProtoReflect.Descriptor instead.
func (*BodyContent) GetAttributes ¶
func (x *BodyContent) GetAttributes() map[string]*Attribute
func (*BodyContent) GetBlocks ¶
func (x *BodyContent) GetBlocks() []*Block
func (*BodyContent) ProtoMessage ¶
func (*BodyContent) ProtoMessage()
func (*BodyContent) ProtoReflect ¶
func (x *BodyContent) ProtoReflect() protoreflect.Message
func (*BodyContent) Reset ¶
func (x *BodyContent) Reset()
func (*BodyContent) String ¶
func (x *BodyContent) String() string
type BodySchema ¶
type BodySchema struct {
Attributes []*AttributeSchema `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"`
Blocks []*BlockSchema `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"`
Mode SchemaMode `protobuf:"varint,3,opt,name=mode,proto3,enum=tfbreak.SchemaMode" json:"mode,omitempty"`
// contains filtered or unexported fields
}
BodySchema represents the expected structure of an HCL body.
func (*BodySchema) Descriptor
deprecated
func (*BodySchema) Descriptor() ([]byte, []int)
Deprecated: Use BodySchema.ProtoReflect.Descriptor instead.
func (*BodySchema) GetAttributes ¶
func (x *BodySchema) GetAttributes() []*AttributeSchema
func (*BodySchema) GetBlocks ¶
func (x *BodySchema) GetBlocks() []*BlockSchema
func (*BodySchema) GetMode ¶
func (x *BodySchema) GetMode() SchemaMode
func (*BodySchema) ProtoMessage ¶
func (*BodySchema) ProtoMessage()
func (*BodySchema) ProtoReflect ¶
func (x *BodySchema) ProtoReflect() protoreflect.Message
func (*BodySchema) Reset ¶
func (x *BodySchema) Reset()
func (*BodySchema) String ¶
func (x *BodySchema) String() string
type Check ¶
type Check struct {
// contains filtered or unexported fields
}
func (*Check) Descriptor
deprecated
func (*Check) ProtoMessage ¶
func (*Check) ProtoMessage()
func (*Check) ProtoReflect ¶
func (x *Check) ProtoReflect() protoreflect.Message
type Check_Request ¶
type Check_Request struct {
// contains filtered or unexported fields
}
func (*Check_Request) Descriptor
deprecated
func (*Check_Request) Descriptor() ([]byte, []int)
Deprecated: Use Check_Request.ProtoReflect.Descriptor instead.
func (*Check_Request) ProtoMessage ¶
func (*Check_Request) ProtoMessage()
func (*Check_Request) ProtoReflect ¶
func (x *Check_Request) ProtoReflect() protoreflect.Message
func (*Check_Request) Reset ¶
func (x *Check_Request) Reset()
func (*Check_Request) String ¶
func (x *Check_Request) String() string
type Check_Response ¶
type Check_Response struct {
// contains filtered or unexported fields
}
func (*Check_Response) Descriptor
deprecated
func (*Check_Response) Descriptor() ([]byte, []int)
Deprecated: Use Check_Response.ProtoReflect.Descriptor instead.
func (*Check_Response) ProtoMessage ¶
func (*Check_Response) ProtoMessage()
func (*Check_Response) ProtoReflect ¶
func (x *Check_Response) ProtoReflect() protoreflect.Message
func (*Check_Response) Reset ¶
func (x *Check_Response) Reset()
func (*Check_Response) String ¶
func (x *Check_Response) String() string
type Config ¶
type Config struct {
Rules map[string]*RuleConfig `` /* 137-byte string literal not displayed */
DisabledByDefault bool `protobuf:"varint,2,opt,name=disabled_by_default,json=disabledByDefault,proto3" json:"disabled_by_default,omitempty"`
Only []string `protobuf:"bytes,3,rep,name=only,proto3" json:"only,omitempty"`
PluginDir string `protobuf:"bytes,4,opt,name=plugin_dir,json=pluginDir,proto3" json:"plugin_dir,omitempty"`
// contains filtered or unexported fields
}
Config represents global tfbreak configuration.
func (*Config) Descriptor
deprecated
func (*Config) GetDisabledByDefault ¶
func (*Config) GetPluginDir ¶
func (*Config) GetRules ¶
func (x *Config) GetRules() map[string]*RuleConfig
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type DecodeRuleConfig ¶
type DecodeRuleConfig struct {
// contains filtered or unexported fields
}
func (*DecodeRuleConfig) Descriptor
deprecated
func (*DecodeRuleConfig) Descriptor() ([]byte, []int)
Deprecated: Use DecodeRuleConfig.ProtoReflect.Descriptor instead.
func (*DecodeRuleConfig) ProtoMessage ¶
func (*DecodeRuleConfig) ProtoMessage()
func (*DecodeRuleConfig) ProtoReflect ¶
func (x *DecodeRuleConfig) ProtoReflect() protoreflect.Message
func (*DecodeRuleConfig) Reset ¶
func (x *DecodeRuleConfig) Reset()
func (*DecodeRuleConfig) String ¶
func (x *DecodeRuleConfig) String() string
type DecodeRuleConfig_Request ¶
type DecodeRuleConfig_Request struct {
RuleName string `protobuf:"bytes,1,opt,name=rule_name,json=ruleName,proto3" json:"rule_name,omitempty"`
// contains filtered or unexported fields
}
func (*DecodeRuleConfig_Request) Descriptor
deprecated
func (*DecodeRuleConfig_Request) Descriptor() ([]byte, []int)
Deprecated: Use DecodeRuleConfig_Request.ProtoReflect.Descriptor instead.
func (*DecodeRuleConfig_Request) GetRuleName ¶
func (x *DecodeRuleConfig_Request) GetRuleName() string
func (*DecodeRuleConfig_Request) ProtoMessage ¶
func (*DecodeRuleConfig_Request) ProtoMessage()
func (*DecodeRuleConfig_Request) ProtoReflect ¶
func (x *DecodeRuleConfig_Request) ProtoReflect() protoreflect.Message
func (*DecodeRuleConfig_Request) Reset ¶
func (x *DecodeRuleConfig_Request) Reset()
func (*DecodeRuleConfig_Request) String ¶
func (x *DecodeRuleConfig_Request) String() string
type DecodeRuleConfig_Response ¶
type DecodeRuleConfig_Response struct {
// config_bytes contains JSON-encoded rule configuration.
// Returns empty bytes if no configuration is provided.
ConfigBytes []byte `protobuf:"bytes,1,opt,name=config_bytes,json=configBytes,proto3" json:"config_bytes,omitempty"`
HasConfig bool `protobuf:"varint,2,opt,name=has_config,json=hasConfig,proto3" json:"has_config,omitempty"`
// contains filtered or unexported fields
}
func (*DecodeRuleConfig_Response) Descriptor
deprecated
func (*DecodeRuleConfig_Response) Descriptor() ([]byte, []int)
Deprecated: Use DecodeRuleConfig_Response.ProtoReflect.Descriptor instead.
func (*DecodeRuleConfig_Response) GetConfigBytes ¶
func (x *DecodeRuleConfig_Response) GetConfigBytes() []byte
func (*DecodeRuleConfig_Response) GetHasConfig ¶
func (x *DecodeRuleConfig_Response) GetHasConfig() bool
func (*DecodeRuleConfig_Response) ProtoMessage ¶
func (*DecodeRuleConfig_Response) ProtoMessage()
func (*DecodeRuleConfig_Response) ProtoReflect ¶
func (x *DecodeRuleConfig_Response) ProtoReflect() protoreflect.Message
func (*DecodeRuleConfig_Response) Reset ¶
func (x *DecodeRuleConfig_Response) Reset()
func (*DecodeRuleConfig_Response) String ¶
func (x *DecodeRuleConfig_Response) String() string
type EmitIssue ¶
type EmitIssue struct {
// contains filtered or unexported fields
}
func (*EmitIssue) Descriptor
deprecated
func (*EmitIssue) ProtoMessage ¶
func (*EmitIssue) ProtoMessage()
func (*EmitIssue) ProtoReflect ¶
func (x *EmitIssue) ProtoReflect() protoreflect.Message
type EmitIssue_Request ¶
type EmitIssue_Request struct {
Rule *Rule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
Range *Range `protobuf:"bytes,3,opt,name=range,proto3" json:"range,omitempty"`
// contains filtered or unexported fields
}
func (*EmitIssue_Request) Descriptor
deprecated
func (*EmitIssue_Request) Descriptor() ([]byte, []int)
Deprecated: Use EmitIssue_Request.ProtoReflect.Descriptor instead.
func (*EmitIssue_Request) GetMessage ¶
func (x *EmitIssue_Request) GetMessage() string
func (*EmitIssue_Request) GetRange ¶
func (x *EmitIssue_Request) GetRange() *Range
func (*EmitIssue_Request) GetRule ¶
func (x *EmitIssue_Request) GetRule() *Rule
func (*EmitIssue_Request) ProtoMessage ¶
func (*EmitIssue_Request) ProtoMessage()
func (*EmitIssue_Request) ProtoReflect ¶
func (x *EmitIssue_Request) ProtoReflect() protoreflect.Message
func (*EmitIssue_Request) Reset ¶
func (x *EmitIssue_Request) Reset()
func (*EmitIssue_Request) String ¶
func (x *EmitIssue_Request) String() string
type EmitIssue_Response ¶
type EmitIssue_Response struct {
// contains filtered or unexported fields
}
func (*EmitIssue_Response) Descriptor
deprecated
func (*EmitIssue_Response) Descriptor() ([]byte, []int)
Deprecated: Use EmitIssue_Response.ProtoReflect.Descriptor instead.
func (*EmitIssue_Response) ProtoMessage ¶
func (*EmitIssue_Response) ProtoMessage()
func (*EmitIssue_Response) ProtoReflect ¶
func (x *EmitIssue_Response) ProtoReflect() protoreflect.Message
func (*EmitIssue_Response) Reset ¶
func (x *EmitIssue_Response) Reset()
func (*EmitIssue_Response) String ¶
func (x *EmitIssue_Response) String() string
type ExpandMode ¶
type ExpandMode int32
ExpandMode specifies how dynamic blocks are handled.
const ( ExpandMode_EXPAND_MODE_NONE ExpandMode = 0 ExpandMode_EXPAND_MODE_EXPAND ExpandMode = 1 )
func (ExpandMode) Descriptor ¶
func (ExpandMode) Descriptor() protoreflect.EnumDescriptor
func (ExpandMode) Enum ¶
func (x ExpandMode) Enum() *ExpandMode
func (ExpandMode) EnumDescriptor
deprecated
func (ExpandMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ExpandMode.Descriptor instead.
func (ExpandMode) Number ¶
func (x ExpandMode) Number() protoreflect.EnumNumber
func (ExpandMode) String ¶
func (x ExpandMode) String() string
func (ExpandMode) Type ¶
func (ExpandMode) Type() protoreflect.EnumType
type GetConfigSchema ¶
type GetConfigSchema struct {
// contains filtered or unexported fields
}
func (*GetConfigSchema) Descriptor
deprecated
func (*GetConfigSchema) Descriptor() ([]byte, []int)
Deprecated: Use GetConfigSchema.ProtoReflect.Descriptor instead.
func (*GetConfigSchema) ProtoMessage ¶
func (*GetConfigSchema) ProtoMessage()
func (*GetConfigSchema) ProtoReflect ¶
func (x *GetConfigSchema) ProtoReflect() protoreflect.Message
func (*GetConfigSchema) Reset ¶
func (x *GetConfigSchema) Reset()
func (*GetConfigSchema) String ¶
func (x *GetConfigSchema) String() string
type GetConfigSchema_Request ¶
type GetConfigSchema_Request struct {
// contains filtered or unexported fields
}
func (*GetConfigSchema_Request) Descriptor
deprecated
func (*GetConfigSchema_Request) Descriptor() ([]byte, []int)
Deprecated: Use GetConfigSchema_Request.ProtoReflect.Descriptor instead.
func (*GetConfigSchema_Request) ProtoMessage ¶
func (*GetConfigSchema_Request) ProtoMessage()
func (*GetConfigSchema_Request) ProtoReflect ¶
func (x *GetConfigSchema_Request) ProtoReflect() protoreflect.Message
func (*GetConfigSchema_Request) Reset ¶
func (x *GetConfigSchema_Request) Reset()
func (*GetConfigSchema_Request) String ¶
func (x *GetConfigSchema_Request) String() string
type GetConfigSchema_Response ¶
type GetConfigSchema_Response struct {
Schema *BodySchema `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
// contains filtered or unexported fields
}
func (*GetConfigSchema_Response) Descriptor
deprecated
func (*GetConfigSchema_Response) Descriptor() ([]byte, []int)
Deprecated: Use GetConfigSchema_Response.ProtoReflect.Descriptor instead.
func (*GetConfigSchema_Response) GetSchema ¶
func (x *GetConfigSchema_Response) GetSchema() *BodySchema
func (*GetConfigSchema_Response) ProtoMessage ¶
func (*GetConfigSchema_Response) ProtoMessage()
func (*GetConfigSchema_Response) ProtoReflect ¶
func (x *GetConfigSchema_Response) ProtoReflect() protoreflect.Message
func (*GetConfigSchema_Response) Reset ¶
func (x *GetConfigSchema_Response) Reset()
func (*GetConfigSchema_Response) String ¶
func (x *GetConfigSchema_Response) String() string
type GetModuleContent ¶
type GetModuleContent struct {
// contains filtered or unexported fields
}
func (*GetModuleContent) Descriptor
deprecated
func (*GetModuleContent) Descriptor() ([]byte, []int)
Deprecated: Use GetModuleContent.ProtoReflect.Descriptor instead.
func (*GetModuleContent) ProtoMessage ¶
func (*GetModuleContent) ProtoMessage()
func (*GetModuleContent) ProtoReflect ¶
func (x *GetModuleContent) ProtoReflect() protoreflect.Message
func (*GetModuleContent) Reset ¶
func (x *GetModuleContent) Reset()
func (*GetModuleContent) String ¶
func (x *GetModuleContent) String() string
type GetModuleContentOption ¶
type GetModuleContentOption struct {
ModuleCtx ModuleCtxType `protobuf:"varint,1,opt,name=module_ctx,json=moduleCtx,proto3,enum=tfbreak.ModuleCtxType" json:"module_ctx,omitempty"`
ExpandMode ExpandMode `protobuf:"varint,2,opt,name=expand_mode,json=expandMode,proto3,enum=tfbreak.ExpandMode" json:"expand_mode,omitempty"`
ResourceTypeHint string `protobuf:"bytes,3,opt,name=resource_type_hint,json=resourceTypeHint,proto3" json:"resource_type_hint,omitempty"`
// contains filtered or unexported fields
}
GetModuleContentOption configures how content is retrieved.
func (*GetModuleContentOption) Descriptor
deprecated
func (*GetModuleContentOption) Descriptor() ([]byte, []int)
Deprecated: Use GetModuleContentOption.ProtoReflect.Descriptor instead.
func (*GetModuleContentOption) GetExpandMode ¶
func (x *GetModuleContentOption) GetExpandMode() ExpandMode
func (*GetModuleContentOption) GetModuleCtx ¶
func (x *GetModuleContentOption) GetModuleCtx() ModuleCtxType
func (*GetModuleContentOption) GetResourceTypeHint ¶
func (x *GetModuleContentOption) GetResourceTypeHint() string
func (*GetModuleContentOption) ProtoMessage ¶
func (*GetModuleContentOption) ProtoMessage()
func (*GetModuleContentOption) ProtoReflect ¶
func (x *GetModuleContentOption) ProtoReflect() protoreflect.Message
func (*GetModuleContentOption) Reset ¶
func (x *GetModuleContentOption) Reset()
func (*GetModuleContentOption) String ¶
func (x *GetModuleContentOption) String() string
type GetModuleContent_Request ¶
type GetModuleContent_Request struct {
Schema *BodySchema `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
Option *GetModuleContentOption `protobuf:"bytes,2,opt,name=option,proto3" json:"option,omitempty"`
// contains filtered or unexported fields
}
func (*GetModuleContent_Request) Descriptor
deprecated
func (*GetModuleContent_Request) Descriptor() ([]byte, []int)
Deprecated: Use GetModuleContent_Request.ProtoReflect.Descriptor instead.
func (*GetModuleContent_Request) GetOption ¶
func (x *GetModuleContent_Request) GetOption() *GetModuleContentOption
func (*GetModuleContent_Request) GetSchema ¶
func (x *GetModuleContent_Request) GetSchema() *BodySchema
func (*GetModuleContent_Request) ProtoMessage ¶
func (*GetModuleContent_Request) ProtoMessage()
func (*GetModuleContent_Request) ProtoReflect ¶
func (x *GetModuleContent_Request) ProtoReflect() protoreflect.Message
func (*GetModuleContent_Request) Reset ¶
func (x *GetModuleContent_Request) Reset()
func (*GetModuleContent_Request) String ¶
func (x *GetModuleContent_Request) String() string
type GetModuleContent_Response ¶
type GetModuleContent_Response struct {
Content *BodyContent `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
// contains filtered or unexported fields
}
func (*GetModuleContent_Response) Descriptor
deprecated
func (*GetModuleContent_Response) Descriptor() ([]byte, []int)
Deprecated: Use GetModuleContent_Response.ProtoReflect.Descriptor instead.
func (*GetModuleContent_Response) GetContent ¶
func (x *GetModuleContent_Response) GetContent() *BodyContent
func (*GetModuleContent_Response) ProtoMessage ¶
func (*GetModuleContent_Response) ProtoMessage()
func (*GetModuleContent_Response) ProtoReflect ¶
func (x *GetModuleContent_Response) ProtoReflect() protoreflect.Message
func (*GetModuleContent_Response) Reset ¶
func (x *GetModuleContent_Response) Reset()
func (*GetModuleContent_Response) String ¶
func (x *GetModuleContent_Response) String() string
type GetResourceContent ¶
type GetResourceContent struct {
// contains filtered or unexported fields
}
func (*GetResourceContent) Descriptor
deprecated
func (*GetResourceContent) Descriptor() ([]byte, []int)
Deprecated: Use GetResourceContent.ProtoReflect.Descriptor instead.
func (*GetResourceContent) ProtoMessage ¶
func (*GetResourceContent) ProtoMessage()
func (*GetResourceContent) ProtoReflect ¶
func (x *GetResourceContent) ProtoReflect() protoreflect.Message
func (*GetResourceContent) Reset ¶
func (x *GetResourceContent) Reset()
func (*GetResourceContent) String ¶
func (x *GetResourceContent) String() string
type GetResourceContent_Request ¶
type GetResourceContent_Request struct {
ResourceType string `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
Schema *BodySchema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
Option *GetModuleContentOption `protobuf:"bytes,3,opt,name=option,proto3" json:"option,omitempty"`
// contains filtered or unexported fields
}
func (*GetResourceContent_Request) Descriptor
deprecated
func (*GetResourceContent_Request) Descriptor() ([]byte, []int)
Deprecated: Use GetResourceContent_Request.ProtoReflect.Descriptor instead.
func (*GetResourceContent_Request) GetOption ¶
func (x *GetResourceContent_Request) GetOption() *GetModuleContentOption
func (*GetResourceContent_Request) GetResourceType ¶
func (x *GetResourceContent_Request) GetResourceType() string
func (*GetResourceContent_Request) GetSchema ¶
func (x *GetResourceContent_Request) GetSchema() *BodySchema
func (*GetResourceContent_Request) ProtoMessage ¶
func (*GetResourceContent_Request) ProtoMessage()
func (*GetResourceContent_Request) ProtoReflect ¶
func (x *GetResourceContent_Request) ProtoReflect() protoreflect.Message
func (*GetResourceContent_Request) Reset ¶
func (x *GetResourceContent_Request) Reset()
func (*GetResourceContent_Request) String ¶
func (x *GetResourceContent_Request) String() string
type GetResourceContent_Response ¶
type GetResourceContent_Response struct {
Content *BodyContent `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
// contains filtered or unexported fields
}
func (*GetResourceContent_Response) Descriptor
deprecated
func (*GetResourceContent_Response) Descriptor() ([]byte, []int)
Deprecated: Use GetResourceContent_Response.ProtoReflect.Descriptor instead.
func (*GetResourceContent_Response) GetContent ¶
func (x *GetResourceContent_Response) GetContent() *BodyContent
func (*GetResourceContent_Response) ProtoMessage ¶
func (*GetResourceContent_Response) ProtoMessage()
func (*GetResourceContent_Response) ProtoReflect ¶
func (x *GetResourceContent_Response) ProtoReflect() protoreflect.Message
func (*GetResourceContent_Response) Reset ¶
func (x *GetResourceContent_Response) Reset()
func (*GetResourceContent_Response) String ¶
func (x *GetResourceContent_Response) String() string
type GetRuleNames ¶
type GetRuleNames struct {
// contains filtered or unexported fields
}
func (*GetRuleNames) Descriptor
deprecated
func (*GetRuleNames) Descriptor() ([]byte, []int)
Deprecated: Use GetRuleNames.ProtoReflect.Descriptor instead.
func (*GetRuleNames) ProtoMessage ¶
func (*GetRuleNames) ProtoMessage()
func (*GetRuleNames) ProtoReflect ¶
func (x *GetRuleNames) ProtoReflect() protoreflect.Message
func (*GetRuleNames) Reset ¶
func (x *GetRuleNames) Reset()
func (*GetRuleNames) String ¶
func (x *GetRuleNames) String() string
type GetRuleNames_Request ¶
type GetRuleNames_Request struct {
// contains filtered or unexported fields
}
func (*GetRuleNames_Request) Descriptor
deprecated
func (*GetRuleNames_Request) Descriptor() ([]byte, []int)
Deprecated: Use GetRuleNames_Request.ProtoReflect.Descriptor instead.
func (*GetRuleNames_Request) ProtoMessage ¶
func (*GetRuleNames_Request) ProtoMessage()
func (*GetRuleNames_Request) ProtoReflect ¶
func (x *GetRuleNames_Request) ProtoReflect() protoreflect.Message
func (*GetRuleNames_Request) Reset ¶
func (x *GetRuleNames_Request) Reset()
func (*GetRuleNames_Request) String ¶
func (x *GetRuleNames_Request) String() string
type GetRuleNames_Response ¶
type GetRuleNames_Response struct {
Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
// contains filtered or unexported fields
}
func (*GetRuleNames_Response) Descriptor
deprecated
func (*GetRuleNames_Response) Descriptor() ([]byte, []int)
Deprecated: Use GetRuleNames_Response.ProtoReflect.Descriptor instead.
func (*GetRuleNames_Response) GetNames ¶
func (x *GetRuleNames_Response) GetNames() []string
func (*GetRuleNames_Response) ProtoMessage ¶
func (*GetRuleNames_Response) ProtoMessage()
func (*GetRuleNames_Response) ProtoReflect ¶
func (x *GetRuleNames_Response) ProtoReflect() protoreflect.Message
func (*GetRuleNames_Response) Reset ¶
func (x *GetRuleNames_Response) Reset()
func (*GetRuleNames_Response) String ¶
func (x *GetRuleNames_Response) String() string
type GetRuleSetName ¶
type GetRuleSetName struct {
// contains filtered or unexported fields
}
func (*GetRuleSetName) Descriptor
deprecated
func (*GetRuleSetName) Descriptor() ([]byte, []int)
Deprecated: Use GetRuleSetName.ProtoReflect.Descriptor instead.
func (*GetRuleSetName) ProtoMessage ¶
func (*GetRuleSetName) ProtoMessage()
func (*GetRuleSetName) ProtoReflect ¶
func (x *GetRuleSetName) ProtoReflect() protoreflect.Message
func (*GetRuleSetName) Reset ¶
func (x *GetRuleSetName) Reset()
func (*GetRuleSetName) String ¶
func (x *GetRuleSetName) String() string
type GetRuleSetName_Request ¶
type GetRuleSetName_Request struct {
// contains filtered or unexported fields
}
func (*GetRuleSetName_Request) Descriptor
deprecated
func (*GetRuleSetName_Request) Descriptor() ([]byte, []int)
Deprecated: Use GetRuleSetName_Request.ProtoReflect.Descriptor instead.
func (*GetRuleSetName_Request) ProtoMessage ¶
func (*GetRuleSetName_Request) ProtoMessage()
func (*GetRuleSetName_Request) ProtoReflect ¶
func (x *GetRuleSetName_Request) ProtoReflect() protoreflect.Message
func (*GetRuleSetName_Request) Reset ¶
func (x *GetRuleSetName_Request) Reset()
func (*GetRuleSetName_Request) String ¶
func (x *GetRuleSetName_Request) String() string
type GetRuleSetName_Response ¶
type GetRuleSetName_Response struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*GetRuleSetName_Response) Descriptor
deprecated
func (*GetRuleSetName_Response) Descriptor() ([]byte, []int)
Deprecated: Use GetRuleSetName_Response.ProtoReflect.Descriptor instead.
func (*GetRuleSetName_Response) GetName ¶
func (x *GetRuleSetName_Response) GetName() string
func (*GetRuleSetName_Response) ProtoMessage ¶
func (*GetRuleSetName_Response) ProtoMessage()
func (*GetRuleSetName_Response) ProtoReflect ¶
func (x *GetRuleSetName_Response) ProtoReflect() protoreflect.Message
func (*GetRuleSetName_Response) Reset ¶
func (x *GetRuleSetName_Response) Reset()
func (*GetRuleSetName_Response) String ¶
func (x *GetRuleSetName_Response) String() string
type GetRuleSetVersion ¶
type GetRuleSetVersion struct {
// contains filtered or unexported fields
}
func (*GetRuleSetVersion) Descriptor
deprecated
func (*GetRuleSetVersion) Descriptor() ([]byte, []int)
Deprecated: Use GetRuleSetVersion.ProtoReflect.Descriptor instead.
func (*GetRuleSetVersion) ProtoMessage ¶
func (*GetRuleSetVersion) ProtoMessage()
func (*GetRuleSetVersion) ProtoReflect ¶
func (x *GetRuleSetVersion) ProtoReflect() protoreflect.Message
func (*GetRuleSetVersion) Reset ¶
func (x *GetRuleSetVersion) Reset()
func (*GetRuleSetVersion) String ¶
func (x *GetRuleSetVersion) String() string
type GetRuleSetVersion_Request ¶
type GetRuleSetVersion_Request struct {
// contains filtered or unexported fields
}
func (*GetRuleSetVersion_Request) Descriptor
deprecated
func (*GetRuleSetVersion_Request) Descriptor() ([]byte, []int)
Deprecated: Use GetRuleSetVersion_Request.ProtoReflect.Descriptor instead.
func (*GetRuleSetVersion_Request) ProtoMessage ¶
func (*GetRuleSetVersion_Request) ProtoMessage()
func (*GetRuleSetVersion_Request) ProtoReflect ¶
func (x *GetRuleSetVersion_Request) ProtoReflect() protoreflect.Message
func (*GetRuleSetVersion_Request) Reset ¶
func (x *GetRuleSetVersion_Request) Reset()
func (*GetRuleSetVersion_Request) String ¶
func (x *GetRuleSetVersion_Request) String() string
type GetRuleSetVersion_Response ¶
type GetRuleSetVersion_Response struct {
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
func (*GetRuleSetVersion_Response) Descriptor
deprecated
func (*GetRuleSetVersion_Response) Descriptor() ([]byte, []int)
Deprecated: Use GetRuleSetVersion_Response.ProtoReflect.Descriptor instead.
func (*GetRuleSetVersion_Response) GetVersion ¶
func (x *GetRuleSetVersion_Response) GetVersion() string
func (*GetRuleSetVersion_Response) ProtoMessage ¶
func (*GetRuleSetVersion_Response) ProtoMessage()
func (*GetRuleSetVersion_Response) ProtoReflect ¶
func (x *GetRuleSetVersion_Response) ProtoReflect() protoreflect.Message
func (*GetRuleSetVersion_Response) Reset ¶
func (x *GetRuleSetVersion_Response) Reset()
func (*GetRuleSetVersion_Response) String ¶
func (x *GetRuleSetVersion_Response) String() string
type GetVersionConstraint ¶
type GetVersionConstraint struct {
// contains filtered or unexported fields
}
func (*GetVersionConstraint) Descriptor
deprecated
func (*GetVersionConstraint) Descriptor() ([]byte, []int)
Deprecated: Use GetVersionConstraint.ProtoReflect.Descriptor instead.
func (*GetVersionConstraint) ProtoMessage ¶
func (*GetVersionConstraint) ProtoMessage()
func (*GetVersionConstraint) ProtoReflect ¶
func (x *GetVersionConstraint) ProtoReflect() protoreflect.Message
func (*GetVersionConstraint) Reset ¶
func (x *GetVersionConstraint) Reset()
func (*GetVersionConstraint) String ¶
func (x *GetVersionConstraint) String() string
type GetVersionConstraint_Request ¶
type GetVersionConstraint_Request struct {
// contains filtered or unexported fields
}
func (*GetVersionConstraint_Request) Descriptor
deprecated
func (*GetVersionConstraint_Request) Descriptor() ([]byte, []int)
Deprecated: Use GetVersionConstraint_Request.ProtoReflect.Descriptor instead.
func (*GetVersionConstraint_Request) ProtoMessage ¶
func (*GetVersionConstraint_Request) ProtoMessage()
func (*GetVersionConstraint_Request) ProtoReflect ¶
func (x *GetVersionConstraint_Request) ProtoReflect() protoreflect.Message
func (*GetVersionConstraint_Request) Reset ¶
func (x *GetVersionConstraint_Request) Reset()
func (*GetVersionConstraint_Request) String ¶
func (x *GetVersionConstraint_Request) String() string
type GetVersionConstraint_Response ¶
type GetVersionConstraint_Response struct {
Constraint string `protobuf:"bytes,1,opt,name=constraint,proto3" json:"constraint,omitempty"`
// contains filtered or unexported fields
}
func (*GetVersionConstraint_Response) Descriptor
deprecated
func (*GetVersionConstraint_Response) Descriptor() ([]byte, []int)
Deprecated: Use GetVersionConstraint_Response.ProtoReflect.Descriptor instead.
func (*GetVersionConstraint_Response) GetConstraint ¶
func (x *GetVersionConstraint_Response) GetConstraint() string
func (*GetVersionConstraint_Response) ProtoMessage ¶
func (*GetVersionConstraint_Response) ProtoMessage()
func (*GetVersionConstraint_Response) ProtoReflect ¶
func (x *GetVersionConstraint_Response) ProtoReflect() protoreflect.Message
func (*GetVersionConstraint_Response) Reset ¶
func (x *GetVersionConstraint_Response) Reset()
func (*GetVersionConstraint_Response) String ¶
func (x *GetVersionConstraint_Response) String() string
type ModuleCtxType ¶
type ModuleCtxType int32
ModuleCtxType specifies the module context for content retrieval.
const ( ModuleCtxType_MODULE_CTX_SELF ModuleCtxType = 0 ModuleCtxType_MODULE_CTX_ROOT ModuleCtxType = 1 ModuleCtxType_MODULE_CTX_ALL ModuleCtxType = 2 )
func (ModuleCtxType) Descriptor ¶
func (ModuleCtxType) Descriptor() protoreflect.EnumDescriptor
func (ModuleCtxType) Enum ¶
func (x ModuleCtxType) Enum() *ModuleCtxType
func (ModuleCtxType) EnumDescriptor
deprecated
func (ModuleCtxType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ModuleCtxType.Descriptor instead.
func (ModuleCtxType) Number ¶
func (x ModuleCtxType) Number() protoreflect.EnumNumber
func (ModuleCtxType) String ¶
func (x ModuleCtxType) String() string
func (ModuleCtxType) Type ¶
func (ModuleCtxType) Type() protoreflect.EnumType
type Position ¶
type Position struct {
Line int64 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"`
Column int64 `protobuf:"varint,2,opt,name=column,proto3" json:"column,omitempty"`
Byte int64 `protobuf:"varint,3,opt,name=byte,proto3" json:"byte,omitempty"`
// contains filtered or unexported fields
}
Position represents a position in source code.
func (*Position) Descriptor
deprecated
func (*Position) ProtoMessage ¶
func (*Position) ProtoMessage()
func (*Position) ProtoReflect ¶
func (x *Position) ProtoReflect() protoreflect.Message
type Range ¶
type Range struct {
Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
Start *Position `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
End *Position `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
// contains filtered or unexported fields
}
Range represents a source code range.
func (*Range) Descriptor
deprecated
func (*Range) GetFilename ¶
func (*Range) ProtoMessage ¶
func (*Range) ProtoMessage()
func (*Range) ProtoReflect ¶
func (x *Range) ProtoReflect() protoreflect.Message
type Rule ¶
type Rule struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
Severity Severity `protobuf:"varint,3,opt,name=severity,proto3,enum=tfbreak.Severity" json:"severity,omitempty"`
Link string `protobuf:"bytes,4,opt,name=link,proto3" json:"link,omitempty"`
// contains filtered or unexported fields
}
Rule represents a rule's metadata.
func (*Rule) Descriptor
deprecated
func (*Rule) GetEnabled ¶
func (*Rule) GetSeverity ¶
func (*Rule) ProtoMessage ¶
func (*Rule) ProtoMessage()
func (*Rule) ProtoReflect ¶
func (x *Rule) ProtoReflect() protoreflect.Message
type RuleConfig ¶
type RuleConfig struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
// body_bytes contains JSON-encoded HCL body for rule-specific configuration.
BodyBytes []byte `protobuf:"bytes,3,opt,name=body_bytes,json=bodyBytes,proto3" json:"body_bytes,omitempty"`
// contains filtered or unexported fields
}
RuleConfig represents configuration for a single rule.
func (*RuleConfig) Descriptor
deprecated
func (*RuleConfig) Descriptor() ([]byte, []int)
Deprecated: Use RuleConfig.ProtoReflect.Descriptor instead.
func (*RuleConfig) GetBodyBytes ¶
func (x *RuleConfig) GetBodyBytes() []byte
func (*RuleConfig) GetEnabled ¶
func (x *RuleConfig) GetEnabled() bool
func (*RuleConfig) GetName ¶
func (x *RuleConfig) GetName() string
func (*RuleConfig) ProtoMessage ¶
func (*RuleConfig) ProtoMessage()
func (*RuleConfig) ProtoReflect ¶
func (x *RuleConfig) ProtoReflect() protoreflect.Message
func (*RuleConfig) Reset ¶
func (x *RuleConfig) Reset()
func (*RuleConfig) String ¶
func (x *RuleConfig) String() string
type RuleSetClient ¶
type RuleSetClient interface {
// GetRuleSetName returns the name of the ruleset (e.g., "azurerm").
GetRuleSetName(ctx context.Context, in *GetRuleSetName_Request, opts ...grpc.CallOption) (*GetRuleSetName_Response, error)
// GetRuleSetVersion returns the version of the ruleset (e.g., "0.1.0").
GetRuleSetVersion(ctx context.Context, in *GetRuleSetVersion_Request, opts ...grpc.CallOption) (*GetRuleSetVersion_Response, error)
// GetRuleNames returns the names of all rules in this ruleset.
GetRuleNames(ctx context.Context, in *GetRuleNames_Request, opts ...grpc.CallOption) (*GetRuleNames_Response, error)
// GetVersionConstraint returns the tfbreak version constraint.
GetVersionConstraint(ctx context.Context, in *GetVersionConstraint_Request, opts ...grpc.CallOption) (*GetVersionConstraint_Response, error)
// GetConfigSchema returns the schema for plugin-specific configuration.
GetConfigSchema(ctx context.Context, in *GetConfigSchema_Request, opts ...grpc.CallOption) (*GetConfigSchema_Response, error)
// ApplyGlobalConfig applies global tfbreak configuration.
ApplyGlobalConfig(ctx context.Context, in *ApplyGlobalConfig_Request, opts ...grpc.CallOption) (*ApplyGlobalConfig_Response, error)
// ApplyConfig applies plugin-specific configuration.
ApplyConfig(ctx context.Context, in *ApplyConfig_Request, opts ...grpc.CallOption) (*ApplyConfig_Response, error)
// Check executes all enabled rules.
Check(ctx context.Context, in *Check_Request, opts ...grpc.CallOption) (*Check_Response, error)
}
RuleSetClient is the client API for RuleSet service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
RuleSet is the main plugin service. The host calls these methods to: - Query plugin metadata (name, version, rules) - Configure the plugin - Execute rules via Check
func NewRuleSetClient ¶
func NewRuleSetClient(cc grpc.ClientConnInterface) RuleSetClient
type RuleSetServer ¶
type RuleSetServer interface {
// GetRuleSetName returns the name of the ruleset (e.g., "azurerm").
GetRuleSetName(context.Context, *GetRuleSetName_Request) (*GetRuleSetName_Response, error)
// GetRuleSetVersion returns the version of the ruleset (e.g., "0.1.0").
GetRuleSetVersion(context.Context, *GetRuleSetVersion_Request) (*GetRuleSetVersion_Response, error)
// GetRuleNames returns the names of all rules in this ruleset.
GetRuleNames(context.Context, *GetRuleNames_Request) (*GetRuleNames_Response, error)
// GetVersionConstraint returns the tfbreak version constraint.
GetVersionConstraint(context.Context, *GetVersionConstraint_Request) (*GetVersionConstraint_Response, error)
// GetConfigSchema returns the schema for plugin-specific configuration.
GetConfigSchema(context.Context, *GetConfigSchema_Request) (*GetConfigSchema_Response, error)
// ApplyGlobalConfig applies global tfbreak configuration.
ApplyGlobalConfig(context.Context, *ApplyGlobalConfig_Request) (*ApplyGlobalConfig_Response, error)
// ApplyConfig applies plugin-specific configuration.
ApplyConfig(context.Context, *ApplyConfig_Request) (*ApplyConfig_Response, error)
// Check executes all enabled rules.
Check(context.Context, *Check_Request) (*Check_Response, error)
// contains filtered or unexported methods
}
RuleSetServer is the server API for RuleSet service. All implementations must embed UnimplementedRuleSetServer for forward compatibility.
RuleSet is the main plugin service. The host calls these methods to: - Query plugin metadata (name, version, rules) - Configure the plugin - Execute rules via Check
type RunnerClient ¶
type RunnerClient interface {
// GetOldModuleContent retrieves module content from the OLD (baseline) configuration.
GetOldModuleContent(ctx context.Context, in *GetModuleContent_Request, opts ...grpc.CallOption) (*GetModuleContent_Response, error)
// GetNewModuleContent retrieves module content from the NEW configuration.
GetNewModuleContent(ctx context.Context, in *GetModuleContent_Request, opts ...grpc.CallOption) (*GetModuleContent_Response, error)
// GetOldResourceContent retrieves resources from the OLD configuration.
GetOldResourceContent(ctx context.Context, in *GetResourceContent_Request, opts ...grpc.CallOption) (*GetResourceContent_Response, error)
// GetNewResourceContent retrieves resources from the NEW configuration.
GetNewResourceContent(ctx context.Context, in *GetResourceContent_Request, opts ...grpc.CallOption) (*GetResourceContent_Response, error)
// EmitIssue reports a finding from the rule.
EmitIssue(ctx context.Context, in *EmitIssue_Request, opts ...grpc.CallOption) (*EmitIssue_Response, error)
// DecodeRuleConfig retrieves and decodes rule configuration.
DecodeRuleConfig(ctx context.Context, in *DecodeRuleConfig_Request, opts ...grpc.CallOption) (*DecodeRuleConfig_Response, error)
}
RunnerClient is the client API for Runner service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Runner is the callback service that plugins use to: - Access old and new Terraform configurations - Emit issues when breaking changes are detected - Decode rule-specific configuration
DEVIATION FROM TFLINT (see ADR-0002): Runner provides GetOld* and GetNew* method pairs instead of single methods.
func NewRunnerClient ¶
func NewRunnerClient(cc grpc.ClientConnInterface) RunnerClient
type RunnerServer ¶
type RunnerServer interface {
// GetOldModuleContent retrieves module content from the OLD (baseline) configuration.
GetOldModuleContent(context.Context, *GetModuleContent_Request) (*GetModuleContent_Response, error)
// GetNewModuleContent retrieves module content from the NEW configuration.
GetNewModuleContent(context.Context, *GetModuleContent_Request) (*GetModuleContent_Response, error)
// GetOldResourceContent retrieves resources from the OLD configuration.
GetOldResourceContent(context.Context, *GetResourceContent_Request) (*GetResourceContent_Response, error)
// GetNewResourceContent retrieves resources from the NEW configuration.
GetNewResourceContent(context.Context, *GetResourceContent_Request) (*GetResourceContent_Response, error)
// EmitIssue reports a finding from the rule.
EmitIssue(context.Context, *EmitIssue_Request) (*EmitIssue_Response, error)
// DecodeRuleConfig retrieves and decodes rule configuration.
DecodeRuleConfig(context.Context, *DecodeRuleConfig_Request) (*DecodeRuleConfig_Response, error)
// contains filtered or unexported methods
}
RunnerServer is the server API for Runner service. All implementations must embed UnimplementedRunnerServer for forward compatibility.
Runner is the callback service that plugins use to: - Access old and new Terraform configurations - Emit issues when breaking changes are detected - Decode rule-specific configuration
DEVIATION FROM TFLINT (see ADR-0002): Runner provides GetOld* and GetNew* method pairs instead of single methods.
type SchemaMode ¶
type SchemaMode int32
SchemaMode specifies how schema matching behaves.
const ( SchemaMode_SCHEMA_MODE_DEFAULT SchemaMode = 0 SchemaMode_SCHEMA_MODE_JUST_ATTRIBUTES SchemaMode = 1 )
func (SchemaMode) Descriptor ¶
func (SchemaMode) Descriptor() protoreflect.EnumDescriptor
func (SchemaMode) Enum ¶
func (x SchemaMode) Enum() *SchemaMode
func (SchemaMode) EnumDescriptor
deprecated
func (SchemaMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use SchemaMode.Descriptor instead.
func (SchemaMode) Number ¶
func (x SchemaMode) Number() protoreflect.EnumNumber
func (SchemaMode) String ¶
func (x SchemaMode) String() string
func (SchemaMode) Type ¶
func (SchemaMode) Type() protoreflect.EnumType
type Severity ¶
type Severity int32
Severity represents issue severity levels.
func (Severity) Descriptor ¶
func (Severity) Descriptor() protoreflect.EnumDescriptor
func (Severity) EnumDescriptor
deprecated
func (Severity) Number ¶
func (x Severity) Number() protoreflect.EnumNumber
func (Severity) Type ¶
func (Severity) Type() protoreflect.EnumType
type UnimplementedRuleSetServer ¶
type UnimplementedRuleSetServer struct{}
UnimplementedRuleSetServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedRuleSetServer) ApplyConfig ¶
func (UnimplementedRuleSetServer) ApplyConfig(context.Context, *ApplyConfig_Request) (*ApplyConfig_Response, error)
func (UnimplementedRuleSetServer) ApplyGlobalConfig ¶
func (UnimplementedRuleSetServer) ApplyGlobalConfig(context.Context, *ApplyGlobalConfig_Request) (*ApplyGlobalConfig_Response, error)
func (UnimplementedRuleSetServer) Check ¶
func (UnimplementedRuleSetServer) Check(context.Context, *Check_Request) (*Check_Response, error)
func (UnimplementedRuleSetServer) GetConfigSchema ¶
func (UnimplementedRuleSetServer) GetConfigSchema(context.Context, *GetConfigSchema_Request) (*GetConfigSchema_Response, error)
func (UnimplementedRuleSetServer) GetRuleNames ¶
func (UnimplementedRuleSetServer) GetRuleNames(context.Context, *GetRuleNames_Request) (*GetRuleNames_Response, error)
func (UnimplementedRuleSetServer) GetRuleSetName ¶
func (UnimplementedRuleSetServer) GetRuleSetName(context.Context, *GetRuleSetName_Request) (*GetRuleSetName_Response, error)
func (UnimplementedRuleSetServer) GetRuleSetVersion ¶
func (UnimplementedRuleSetServer) GetRuleSetVersion(context.Context, *GetRuleSetVersion_Request) (*GetRuleSetVersion_Response, error)
func (UnimplementedRuleSetServer) GetVersionConstraint ¶
func (UnimplementedRuleSetServer) GetVersionConstraint(context.Context, *GetVersionConstraint_Request) (*GetVersionConstraint_Response, error)
type UnimplementedRunnerServer ¶
type UnimplementedRunnerServer struct{}
UnimplementedRunnerServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedRunnerServer) DecodeRuleConfig ¶
func (UnimplementedRunnerServer) DecodeRuleConfig(context.Context, *DecodeRuleConfig_Request) (*DecodeRuleConfig_Response, error)
func (UnimplementedRunnerServer) EmitIssue ¶
func (UnimplementedRunnerServer) EmitIssue(context.Context, *EmitIssue_Request) (*EmitIssue_Response, error)
func (UnimplementedRunnerServer) GetNewModuleContent ¶
func (UnimplementedRunnerServer) GetNewModuleContent(context.Context, *GetModuleContent_Request) (*GetModuleContent_Response, error)
func (UnimplementedRunnerServer) GetNewResourceContent ¶
func (UnimplementedRunnerServer) GetNewResourceContent(context.Context, *GetResourceContent_Request) (*GetResourceContent_Response, error)
func (UnimplementedRunnerServer) GetOldModuleContent ¶
func (UnimplementedRunnerServer) GetOldModuleContent(context.Context, *GetModuleContent_Request) (*GetModuleContent_Response, error)
func (UnimplementedRunnerServer) GetOldResourceContent ¶
func (UnimplementedRunnerServer) GetOldResourceContent(context.Context, *GetResourceContent_Request) (*GetResourceContent_Response, error)
type UnsafeRuleSetServer ¶
type UnsafeRuleSetServer interface {
// contains filtered or unexported methods
}
UnsafeRuleSetServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RuleSetServer will result in compilation errors.
type UnsafeRunnerServer ¶
type UnsafeRunnerServer interface {
// contains filtered or unexported methods
}
UnsafeRunnerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RunnerServer will result in compilation errors.