pluginapiv1

package
v0.4.3-final-apache Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginService_GetSchema_FullMethodName      = "/pluginapi.v1.PluginService/GetSchema"
	PluginService_RetrieveData_FullMethodName   = "/pluginapi.v1.PluginService/RetrieveData"
	PluginService_ProvideContent_FullMethodName = "/pluginapi.v1.PluginService/ProvideContent"
	PluginService_Publish_FullMethodName        = "/pluginapi.v1.PluginService/Publish"
)

Variables

View Source
var (
	LocationEffect_name = map[int32]string{
		0: "LOCATION_EFFECT_UNSPECIFIED",
		1: "LOCATION_EFFECT_BEFORE",
		2: "LOCATION_EFFECT_AFTER",
	}
	LocationEffect_value = map[string]int32{
		"LOCATION_EFFECT_UNSPECIFIED": 0,
		"LOCATION_EFFECT_BEFORE":      1,
		"LOCATION_EFFECT_AFTER":       2,
	}
)

Enum value maps for LocationEffect.

View Source
var (
	InvocationOrder_name = map[int32]string{
		0: "INVOCATION_ORDER_UNSPECIFIED",
		2: "INVOCATION_ORDER_BEGIN",
		3: "INVOCATION_ORDER_END",
	}
	InvocationOrder_value = map[string]int32{
		"INVOCATION_ORDER_UNSPECIFIED": 0,
		"INVOCATION_ORDER_BEGIN":       2,
		"INVOCATION_ORDER_END":         3,
	}
)

Enum value maps for InvocationOrder.

View Source
var (
	OutputFormat_name = map[int32]string{
		0: "OUTPUT_FORMAT_UNSPECIFIED",
		1: "OUTPUT_FORMAT_MD",
		2: "OUTPUT_FORMAT_HTML",
		3: "OUTPUT_FORMAT_PDF",
	}
	OutputFormat_value = map[string]int32{
		"OUTPUT_FORMAT_UNSPECIFIED": 0,
		"OUTPUT_FORMAT_MD":          1,
		"OUTPUT_FORMAT_HTML":        2,
		"OUTPUT_FORMAT_PDF":         3,
	}
)

Enum value maps for OutputFormat.

View Source
var File_pluginapi_v1_content_proto protoreflect.FileDescriptor
View Source
var File_pluginapi_v1_cty_proto protoreflect.FileDescriptor
View Source
var File_pluginapi_v1_data_proto protoreflect.FileDescriptor
View Source
var File_pluginapi_v1_dataspec_proto protoreflect.FileDescriptor
View Source
var File_pluginapi_v1_hcl_proto protoreflect.FileDescriptor
View Source
var File_pluginapi_v1_plugin_proto protoreflect.FileDescriptor
View Source
var File_pluginapi_v1_schema_proto protoreflect.FileDescriptor
View Source
var PluginService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pluginapi.v1.PluginService",
	HandlerType: (*PluginServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetSchema",
			Handler:    _PluginService_GetSchema_Handler,
		},
		{
			MethodName: "RetrieveData",
			Handler:    _PluginService_RetrieveData_Handler,
		},
		{
			MethodName: "ProvideContent",
			Handler:    _PluginService_ProvideContent_Handler,
		},
		{
			MethodName: "Publish",
			Handler:    _PluginService_Publish_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pluginapi/v1/plugin.proto",
}

PluginService_ServiceDesc is the grpc.ServiceDesc for PluginService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func DecodeContent

func DecodeContent(src *Content) plugin.Content

func NewClient

func NewClient(name, binaryPath string, logger *slog.Logger) (p *plugin.Schema, closefn func() error, err error)

func RegisterPluginServiceServer

func RegisterPluginServiceServer(s grpc.ServiceRegistrar, srv PluginServiceServer)

func Serve

func Serve(schema *plugin.Schema)

Types

type Attr

type Attr struct {
	Name       string    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	NameRange  *Range    `protobuf:"bytes,2,opt,name=name_range,json=nameRange,proto3" json:"name_range,omitempty"`
	Value      *CtyValue `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	ValueRange *Range    `protobuf:"bytes,4,opt,name=value_range,json=valueRange,proto3" json:"value_range,omitempty"`
	Secret     bool      `protobuf:"varint,5,opt,name=secret,proto3" json:"secret,omitempty"`
	// contains filtered or unexported fields
}

func (*Attr) Descriptor deprecated

func (*Attr) Descriptor() ([]byte, []int)

Deprecated: Use Attr.ProtoReflect.Descriptor instead.

func (*Attr) GetName

func (x *Attr) GetName() string

func (*Attr) GetNameRange

func (x *Attr) GetNameRange() *Range

func (*Attr) GetSecret

func (x *Attr) GetSecret() bool

func (*Attr) GetValue

func (x *Attr) GetValue() *CtyValue

func (*Attr) GetValueRange

func (x *Attr) GetValueRange() *Range

func (*Attr) ProtoMessage

func (*Attr) ProtoMessage()

func (*Attr) ProtoReflect

func (x *Attr) ProtoReflect() protoreflect.Message

func (*Attr) Reset

func (x *Attr) Reset()

func (*Attr) String

func (x *Attr) String() string

type AttrSpec added in v0.4.2

type AttrSpec struct {
	Name         string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type         *CtyType    `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	DefaultVal   *CtyValue   `protobuf:"bytes,3,opt,name=default_val,json=defaultVal,proto3" json:"default_val,omitempty"`
	ExampleVal   *CtyValue   `protobuf:"bytes,4,opt,name=example_val,json=exampleVal,proto3" json:"example_val,omitempty"`
	Doc          string      `protobuf:"bytes,5,opt,name=doc,proto3" json:"doc,omitempty"`
	Constraints  uint32      `protobuf:"varint,7,opt,name=constraints,proto3" json:"constraints,omitempty"`
	OneOf        []*CtyValue `protobuf:"bytes,8,rep,name=one_of,json=oneOf,proto3" json:"one_of,omitempty"`
	MinInclusive *CtyValue   `protobuf:"bytes,9,opt,name=min_inclusive,json=minInclusive,proto3" json:"min_inclusive,omitempty"`
	MaxInclusive *CtyValue   `protobuf:"bytes,10,opt,name=max_inclusive,json=maxInclusive,proto3" json:"max_inclusive,omitempty"`
	Deprecated   string      `protobuf:"bytes,11,opt,name=deprecated,proto3" json:"deprecated,omitempty"`
	Secret       bool        `protobuf:"varint,12,opt,name=secret,proto3" json:"secret,omitempty"`
	// contains filtered or unexported fields
}

func (*AttrSpec) Descriptor deprecated added in v0.4.2

func (*AttrSpec) Descriptor() ([]byte, []int)

Deprecated: Use AttrSpec.ProtoReflect.Descriptor instead.

func (*AttrSpec) GetConstraints added in v0.4.2

func (x *AttrSpec) GetConstraints() uint32

func (*AttrSpec) GetDefaultVal added in v0.4.2

func (x *AttrSpec) GetDefaultVal() *CtyValue

func (*AttrSpec) GetDeprecated added in v0.4.2

func (x *AttrSpec) GetDeprecated() string

func (*AttrSpec) GetDoc added in v0.4.2

func (x *AttrSpec) GetDoc() string

func (*AttrSpec) GetExampleVal added in v0.4.2

func (x *AttrSpec) GetExampleVal() *CtyValue

func (*AttrSpec) GetMaxInclusive added in v0.4.2

func (x *AttrSpec) GetMaxInclusive() *CtyValue

func (*AttrSpec) GetMinInclusive added in v0.4.2

func (x *AttrSpec) GetMinInclusive() *CtyValue

func (*AttrSpec) GetName added in v0.4.2

func (x *AttrSpec) GetName() string

func (*AttrSpec) GetOneOf added in v0.4.2

func (x *AttrSpec) GetOneOf() []*CtyValue

func (*AttrSpec) GetSecret added in v0.4.2

func (x *AttrSpec) GetSecret() bool

func (*AttrSpec) GetType added in v0.4.2

func (x *AttrSpec) GetType() *CtyType

func (*AttrSpec) ProtoMessage added in v0.4.2

func (*AttrSpec) ProtoMessage()

func (*AttrSpec) ProtoReflect added in v0.4.2

func (x *AttrSpec) ProtoReflect() protoreflect.Message

func (*AttrSpec) Reset added in v0.4.2

func (x *AttrSpec) Reset()

func (*AttrSpec) String added in v0.4.2

func (x *AttrSpec) String() string

type Block

type Block struct {
	Header        []string         `protobuf:"bytes,1,rep,name=header,proto3" json:"header,omitempty"`
	HeaderRanges  []*Range         `protobuf:"bytes,2,rep,name=header_ranges,json=headerRanges,proto3" json:"header_ranges,omitempty"`
	Attributes    map[string]*Attr `` /* 147-byte string literal not displayed */
	Blocks        []*Block         `protobuf:"bytes,4,rep,name=blocks,proto3" json:"blocks,omitempty"`
	ContentsRange *Range           `protobuf:"bytes,5,opt,name=contents_range,json=contentsRange,proto3" json:"contents_range,omitempty"`
	// contains filtered or unexported fields
}

func (*Block) Descriptor deprecated

func (*Block) Descriptor() ([]byte, []int)

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetAttributes

func (x *Block) GetAttributes() map[string]*Attr

func (*Block) GetBlocks

func (x *Block) GetBlocks() []*Block

func (*Block) GetContentsRange

func (x *Block) GetContentsRange() *Range

func (*Block) GetHeader

func (x *Block) GetHeader() []string

func (*Block) GetHeaderRanges

func (x *Block) GetHeaderRanges() []*Range

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

func (x *Block) ProtoReflect() protoreflect.Message

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

type BlockSpec added in v0.4.2

type BlockSpec struct {
	HeadersSpec                []*BlockSpec_NameMatcher `protobuf:"bytes,1,rep,name=headers_spec,json=headersSpec,proto3" json:"headers_spec,omitempty"`
	Required                   bool                     `protobuf:"varint,2,opt,name=required,proto3" json:"required,omitempty"`
	Repeatable                 bool                     `protobuf:"varint,3,opt,name=repeatable,proto3" json:"repeatable,omitempty"`
	Doc                        string                   `protobuf:"bytes,4,opt,name=doc,proto3" json:"doc,omitempty"`
	BlockSpecs                 []*BlockSpec             `protobuf:"bytes,5,rep,name=block_specs,json=blockSpecs,proto3" json:"block_specs,omitempty"`
	AttrSpecs                  []*AttrSpec              `protobuf:"bytes,6,rep,name=attr_specs,json=attrSpecs,proto3" json:"attr_specs,omitempty"`
	AllowUnspecifiedBlocks     bool                     `` /* 130-byte string literal not displayed */
	AllowUnspecifiedAttributes bool                     `` /* 142-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BlockSpec) Descriptor deprecated added in v0.4.2

func (*BlockSpec) Descriptor() ([]byte, []int)

Deprecated: Use BlockSpec.ProtoReflect.Descriptor instead.

func (*BlockSpec) GetAllowUnspecifiedAttributes

func (x *BlockSpec) GetAllowUnspecifiedAttributes() bool

func (*BlockSpec) GetAllowUnspecifiedBlocks

func (x *BlockSpec) GetAllowUnspecifiedBlocks() bool

func (*BlockSpec) GetAttrSpecs

func (x *BlockSpec) GetAttrSpecs() []*AttrSpec

func (*BlockSpec) GetBlockSpecs

func (x *BlockSpec) GetBlockSpecs() []*BlockSpec

func (*BlockSpec) GetDoc added in v0.4.2

func (x *BlockSpec) GetDoc() string

func (*BlockSpec) GetHeadersSpec

func (x *BlockSpec) GetHeadersSpec() []*BlockSpec_NameMatcher

func (*BlockSpec) GetRepeatable

func (x *BlockSpec) GetRepeatable() bool

func (*BlockSpec) GetRequired added in v0.4.2

func (x *BlockSpec) GetRequired() bool

func (*BlockSpec) ProtoMessage added in v0.4.2

func (*BlockSpec) ProtoMessage()

func (*BlockSpec) ProtoReflect added in v0.4.2

func (x *BlockSpec) ProtoReflect() protoreflect.Message

func (*BlockSpec) Reset added in v0.4.2

func (x *BlockSpec) Reset()

func (*BlockSpec) String added in v0.4.2

func (x *BlockSpec) String() string

type BlockSpec_NameMatcher

type BlockSpec_NameMatcher struct {

	// Types that are valid to be assigned to Matcher:
	//
	//	*BlockSpec_NameMatcher_Exact_
	Matcher isBlockSpec_NameMatcher_Matcher `protobuf_oneof:"matcher"`
	// contains filtered or unexported fields
}

func (*BlockSpec_NameMatcher) Descriptor deprecated

func (*BlockSpec_NameMatcher) Descriptor() ([]byte, []int)

Deprecated: Use BlockSpec_NameMatcher.ProtoReflect.Descriptor instead.

func (*BlockSpec_NameMatcher) GetExact

func (*BlockSpec_NameMatcher) GetMatcher

func (x *BlockSpec_NameMatcher) GetMatcher() isBlockSpec_NameMatcher_Matcher

func (*BlockSpec_NameMatcher) ProtoMessage

func (*BlockSpec_NameMatcher) ProtoMessage()

func (*BlockSpec_NameMatcher) ProtoReflect

func (x *BlockSpec_NameMatcher) ProtoReflect() protoreflect.Message

func (*BlockSpec_NameMatcher) Reset

func (x *BlockSpec_NameMatcher) Reset()

func (*BlockSpec_NameMatcher) String

func (x *BlockSpec_NameMatcher) String() string

type BlockSpec_NameMatcher_Exact

type BlockSpec_NameMatcher_Exact struct {
	Matches []string `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockSpec_NameMatcher_Exact) Descriptor deprecated

func (*BlockSpec_NameMatcher_Exact) Descriptor() ([]byte, []int)

Deprecated: Use BlockSpec_NameMatcher_Exact.ProtoReflect.Descriptor instead.

func (*BlockSpec_NameMatcher_Exact) GetMatches

func (x *BlockSpec_NameMatcher_Exact) GetMatches() []string

func (*BlockSpec_NameMatcher_Exact) ProtoMessage

func (*BlockSpec_NameMatcher_Exact) ProtoMessage()

func (*BlockSpec_NameMatcher_Exact) ProtoReflect

func (*BlockSpec_NameMatcher_Exact) Reset

func (x *BlockSpec_NameMatcher_Exact) Reset()

func (*BlockSpec_NameMatcher_Exact) String

func (x *BlockSpec_NameMatcher_Exact) String() string

type BlockSpec_NameMatcher_Exact_

type BlockSpec_NameMatcher_Exact_ struct {
	Exact *BlockSpec_NameMatcher_Exact `protobuf:"bytes,1,opt,name=exact,proto3,oneof"`
}

type Content

type Content struct {

	// Types that are valid to be assigned to Value:
	//
	//	*Content_Element
	//	*Content_Section
	//	*Content_Empty
	Value isContent_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func EncodeContent

func EncodeContent(src plugin.Content) *Content

func (*Content) Descriptor deprecated

func (*Content) Descriptor() ([]byte, []int)

Deprecated: Use Content.ProtoReflect.Descriptor instead.

func (*Content) GetElement added in v0.4.1

func (x *Content) GetElement() *ContentElement

func (*Content) GetEmpty added in v0.4.1

func (x *Content) GetEmpty() *ContentEmpty

func (*Content) GetSection added in v0.4.1

func (x *Content) GetSection() *ContentSection

func (*Content) GetValue added in v0.4.1

func (x *Content) GetValue() isContent_Value

func (*Content) ProtoMessage

func (*Content) ProtoMessage()

func (*Content) ProtoReflect

func (x *Content) ProtoReflect() protoreflect.Message

func (*Content) Reset

func (x *Content) Reset()

func (*Content) String

func (x *Content) String() string

type ContentElement added in v0.4.1

type ContentElement struct {
	Markdown []byte                `protobuf:"bytes,1,opt,name=markdown,proto3" json:"markdown,omitempty"`
	Ast      *v1.FabricContentNode `protobuf:"bytes,2,opt,name=ast,proto3,oneof" json:"ast,omitempty"`
	Meta     *v1.Metadata          `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*ContentElement) Descriptor deprecated added in v0.4.1

func (*ContentElement) Descriptor() ([]byte, []int)

Deprecated: Use ContentElement.ProtoReflect.Descriptor instead.

func (*ContentElement) GetAst

func (x *ContentElement) GetAst() *v1.FabricContentNode

func (*ContentElement) GetMarkdown added in v0.4.1

func (x *ContentElement) GetMarkdown() []byte

func (*ContentElement) GetMeta

func (x *ContentElement) GetMeta() *v1.Metadata

func (*ContentElement) ProtoMessage added in v0.4.1

func (*ContentElement) ProtoMessage()

func (*ContentElement) ProtoReflect added in v0.4.1

func (x *ContentElement) ProtoReflect() protoreflect.Message

func (*ContentElement) Reset added in v0.4.1

func (x *ContentElement) Reset()

func (*ContentElement) String added in v0.4.1

func (x *ContentElement) String() string

type ContentEmpty added in v0.4.1

type ContentEmpty struct {
	// contains filtered or unexported fields
}

func (*ContentEmpty) Descriptor deprecated added in v0.4.1

func (*ContentEmpty) Descriptor() ([]byte, []int)

Deprecated: Use ContentEmpty.ProtoReflect.Descriptor instead.

func (*ContentEmpty) ProtoMessage added in v0.4.1

func (*ContentEmpty) ProtoMessage()

func (*ContentEmpty) ProtoReflect added in v0.4.1

func (x *ContentEmpty) ProtoReflect() protoreflect.Message

func (*ContentEmpty) Reset added in v0.4.1

func (x *ContentEmpty) Reset()

func (*ContentEmpty) String added in v0.4.1

func (x *ContentEmpty) String() string

type ContentProviderSchema

type ContentProviderSchema struct {
	Args            *BlockSpec      `protobuf:"bytes,4,opt,name=args,proto3" json:"args,omitempty"`
	Config          *BlockSpec      `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"`
	InvocationOrder InvocationOrder `` /* 141-byte string literal not displayed */
	Doc             string          `protobuf:"bytes,6,opt,name=doc,proto3" json:"doc,omitempty"`
	Tags            []string        `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*ContentProviderSchema) Descriptor deprecated

func (*ContentProviderSchema) Descriptor() ([]byte, []int)

Deprecated: Use ContentProviderSchema.ProtoReflect.Descriptor instead.

func (*ContentProviderSchema) GetArgs

func (x *ContentProviderSchema) GetArgs() *BlockSpec

func (*ContentProviderSchema) GetConfig

func (x *ContentProviderSchema) GetConfig() *BlockSpec

func (*ContentProviderSchema) GetDoc added in v0.4.2

func (x *ContentProviderSchema) GetDoc() string

func (*ContentProviderSchema) GetInvocationOrder added in v0.4.1

func (x *ContentProviderSchema) GetInvocationOrder() InvocationOrder

func (*ContentProviderSchema) GetTags added in v0.4.2

func (x *ContentProviderSchema) GetTags() []string

func (*ContentProviderSchema) ProtoMessage

func (*ContentProviderSchema) ProtoMessage()

func (*ContentProviderSchema) ProtoReflect

func (x *ContentProviderSchema) ProtoReflect() protoreflect.Message

func (*ContentProviderSchema) Reset

func (x *ContentProviderSchema) Reset()

func (*ContentProviderSchema) String

func (x *ContentProviderSchema) String() string

type ContentResult added in v0.4.1

type ContentResult struct {
	Content  *Content  `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	Location *Location `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

func (*ContentResult) Descriptor deprecated added in v0.4.1

func (*ContentResult) Descriptor() ([]byte, []int)

Deprecated: Use ContentResult.ProtoReflect.Descriptor instead.

func (*ContentResult) GetContent added in v0.4.1

func (x *ContentResult) GetContent() *Content

func (*ContentResult) GetLocation added in v0.4.1

func (x *ContentResult) GetLocation() *Location

func (*ContentResult) ProtoMessage added in v0.4.1

func (*ContentResult) ProtoMessage()

func (*ContentResult) ProtoReflect added in v0.4.1

func (x *ContentResult) ProtoReflect() protoreflect.Message

func (*ContentResult) Reset added in v0.4.1

func (x *ContentResult) Reset()

func (*ContentResult) String added in v0.4.1

func (x *ContentResult) String() string

type ContentSection added in v0.4.1

type ContentSection struct {
	Children []*Content   `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty"`
	Meta     *v1.Metadata `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*ContentSection) Descriptor deprecated added in v0.4.1

func (*ContentSection) Descriptor() ([]byte, []int)

Deprecated: Use ContentSection.ProtoReflect.Descriptor instead.

func (*ContentSection) GetChildren added in v0.4.1

func (x *ContentSection) GetChildren() []*Content

func (*ContentSection) GetMeta

func (x *ContentSection) GetMeta() *v1.Metadata

func (*ContentSection) ProtoMessage added in v0.4.1

func (*ContentSection) ProtoMessage()

func (*ContentSection) ProtoReflect added in v0.4.1

func (x *ContentSection) ProtoReflect() protoreflect.Message

func (*ContentSection) Reset added in v0.4.1

func (x *ContentSection) Reset()

func (*ContentSection) String added in v0.4.1

func (x *ContentSection) String() string

type Content_Element added in v0.4.1

type Content_Element struct {
	Element *ContentElement `protobuf:"bytes,1,opt,name=element,proto3,oneof"`
}

type Content_Empty added in v0.4.1

type Content_Empty struct {
	Empty *ContentEmpty `protobuf:"bytes,3,opt,name=empty,proto3,oneof"`
}

type Content_Section added in v0.4.1

type Content_Section struct {
	Section *ContentSection `protobuf:"bytes,2,opt,name=section,proto3,oneof"`
}

type Cty added in v0.4.2

type Cty struct {

	// Cty with nil data is decoded as cty.NilVal
	//
	// Types that are valid to be assigned to Data:
	//
	//	*Cty_Primitive_
	//	*Cty_Object_
	//	*Cty_Map
	//	*Cty_List
	//	*Cty_Set
	//	*Cty_Tuple
	//	*Cty_Null
	//	*Cty_Caps
	//	*Cty_Unknown
	//	*Cty_Dyn
	Data isCty_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*Cty) Descriptor deprecated added in v0.4.2

func (*Cty) Descriptor() ([]byte, []int)

Deprecated: Use Cty.ProtoReflect.Descriptor instead.

func (*Cty) GetCaps added in v0.4.2

func (x *Cty) GetCaps() *Cty_Capsule

func (*Cty) GetData added in v0.4.2

func (x *Cty) GetData() isCty_Data

func (*Cty) GetDyn added in v0.4.2

func (x *Cty) GetDyn() *Cty_Dynamic

func (*Cty) GetList added in v0.4.2

func (x *Cty) GetList() *Cty_Sequence

func (*Cty) GetMap added in v0.4.2

func (x *Cty) GetMap() *Cty_Mapping

func (*Cty) GetNull added in v0.4.2

func (x *Cty) GetNull() *CtyType

func (*Cty) GetObject added in v0.4.2

func (x *Cty) GetObject() *Cty_Object

func (*Cty) GetPrimitive added in v0.4.2

func (x *Cty) GetPrimitive() *Cty_Primitive

func (*Cty) GetSet added in v0.4.2

func (x *Cty) GetSet() *Cty_Sequence

func (*Cty) GetTuple added in v0.4.2

func (x *Cty) GetTuple() *Cty_Sequence

func (*Cty) GetUnknown added in v0.4.2

func (x *Cty) GetUnknown() *CtyType

func (*Cty) ProtoMessage added in v0.4.2

func (*Cty) ProtoMessage()

func (*Cty) ProtoReflect added in v0.4.2

func (x *Cty) ProtoReflect() protoreflect.Message

func (*Cty) Reset added in v0.4.2

func (x *Cty) Reset()

func (*Cty) String added in v0.4.2

func (x *Cty) String() string

type CtyType

type CtyType struct {
	Type *Cty `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

Forces decoding of the inner Cty as a type

func (*CtyType) Descriptor deprecated

func (*CtyType) Descriptor() ([]byte, []int)

Deprecated: Use CtyType.ProtoReflect.Descriptor instead.

func (*CtyType) GetType added in v0.4.2

func (x *CtyType) GetType() *Cty

func (*CtyType) ProtoMessage

func (*CtyType) ProtoMessage()

func (*CtyType) ProtoReflect

func (x *CtyType) ProtoReflect() protoreflect.Message

func (*CtyType) Reset

func (x *CtyType) Reset()

func (*CtyType) String

func (x *CtyType) String() string

type CtyValue

type CtyValue struct {
	Value *Cty `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Forces decoding of the inner Cty as a value

func (*CtyValue) Descriptor deprecated

func (*CtyValue) Descriptor() ([]byte, []int)

Deprecated: Use CtyValue.ProtoReflect.Descriptor instead.

func (*CtyValue) GetValue added in v0.4.2

func (x *CtyValue) GetValue() *Cty

func (*CtyValue) ProtoMessage

func (*CtyValue) ProtoMessage()

func (*CtyValue) ProtoReflect

func (x *CtyValue) ProtoReflect() protoreflect.Message

func (*CtyValue) Reset

func (x *CtyValue) Reset()

func (*CtyValue) String

func (x *CtyValue) String() string

type Cty_Caps added in v0.4.2

type Cty_Caps struct {
	Caps *Cty_Capsule `protobuf:"bytes,8,opt,name=caps,proto3,oneof"`
}

type Cty_Capsule added in v0.4.2

type Cty_Capsule struct {

	// Types that are valid to be assigned to Data:
	//
	//	*Cty_Capsule_PluginData
	Data isCty_Capsule_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*Cty_Capsule) Descriptor deprecated added in v0.4.2

func (*Cty_Capsule) Descriptor() ([]byte, []int)

Deprecated: Use Cty_Capsule.ProtoReflect.Descriptor instead.

func (*Cty_Capsule) GetData added in v0.4.2

func (x *Cty_Capsule) GetData() isCty_Capsule_Data

func (*Cty_Capsule) GetPluginData added in v0.4.2

func (x *Cty_Capsule) GetPluginData() *Data

func (*Cty_Capsule) ProtoMessage added in v0.4.2

func (*Cty_Capsule) ProtoMessage()

func (*Cty_Capsule) ProtoReflect added in v0.4.2

func (x *Cty_Capsule) ProtoReflect() protoreflect.Message

func (*Cty_Capsule) Reset added in v0.4.2

func (x *Cty_Capsule) Reset()

func (*Cty_Capsule) String added in v0.4.2

func (x *Cty_Capsule) String() string

type Cty_Capsule_PluginData added in v0.4.2

type Cty_Capsule_PluginData struct {
	PluginData *Data `protobuf:"bytes,1,opt,name=plugin_data,json=pluginData,proto3,oneof"`
}

type Cty_Dyn added in v0.4.2

type Cty_Dyn struct {
	// DynamicPseudoType
	Dyn *Cty_Dynamic `protobuf:"bytes,10,opt,name=dyn,proto3,oneof"`
}

type Cty_Dynamic added in v0.4.2

type Cty_Dynamic struct {
	// contains filtered or unexported fields
}

func (*Cty_Dynamic) Descriptor deprecated added in v0.4.2

func (*Cty_Dynamic) Descriptor() ([]byte, []int)

Deprecated: Use Cty_Dynamic.ProtoReflect.Descriptor instead.

func (*Cty_Dynamic) ProtoMessage added in v0.4.2

func (*Cty_Dynamic) ProtoMessage()

func (*Cty_Dynamic) ProtoReflect added in v0.4.2

func (x *Cty_Dynamic) ProtoReflect() protoreflect.Message

func (*Cty_Dynamic) Reset added in v0.4.2

func (x *Cty_Dynamic) Reset()

func (*Cty_Dynamic) String added in v0.4.2

func (x *Cty_Dynamic) String() string

type Cty_List added in v0.4.2

type Cty_List struct {
	List *Cty_Sequence `protobuf:"bytes,4,opt,name=list,proto3,oneof"`
}

type Cty_Map added in v0.4.2

type Cty_Map struct {
	Map *Cty_Mapping `protobuf:"bytes,3,opt,name=map,proto3,oneof"`
}

type Cty_Mapping added in v0.4.2

type Cty_Mapping struct {
	Data map[string]*Cty `` /* 135-byte string literal not displayed */
	// Original map is empty, element was added to preserve the type
	OnlyType bool `protobuf:"varint,2,opt,name=only_type,json=onlyType,proto3" json:"only_type,omitempty"`
	// contains filtered or unexported fields
}

func (*Cty_Mapping) Descriptor deprecated added in v0.4.2

func (*Cty_Mapping) Descriptor() ([]byte, []int)

Deprecated: Use Cty_Mapping.ProtoReflect.Descriptor instead.

func (*Cty_Mapping) GetData added in v0.4.2

func (x *Cty_Mapping) GetData() map[string]*Cty

func (*Cty_Mapping) GetOnlyType added in v0.4.2

func (x *Cty_Mapping) GetOnlyType() bool

func (*Cty_Mapping) ProtoMessage added in v0.4.2

func (*Cty_Mapping) ProtoMessage()

func (*Cty_Mapping) ProtoReflect added in v0.4.2

func (x *Cty_Mapping) ProtoReflect() protoreflect.Message

func (*Cty_Mapping) Reset added in v0.4.2

func (x *Cty_Mapping) Reset()

func (*Cty_Mapping) String added in v0.4.2

func (x *Cty_Mapping) String() string

type Cty_Null added in v0.4.2

type Cty_Null struct {
	// Specifies type of null value
	Null *CtyType `protobuf:"bytes,7,opt,name=null,proto3,oneof"`
}

type Cty_Object added in v0.4.2

type Cty_Object struct {
	Data map[string]*Cty_Object_Attr `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Cty_Object) Descriptor deprecated added in v0.4.2

func (*Cty_Object) Descriptor() ([]byte, []int)

Deprecated: Use Cty_Object.ProtoReflect.Descriptor instead.

func (*Cty_Object) GetData added in v0.4.2

func (x *Cty_Object) GetData() map[string]*Cty_Object_Attr

func (*Cty_Object) ProtoMessage added in v0.4.2

func (*Cty_Object) ProtoMessage()

func (*Cty_Object) ProtoReflect added in v0.4.2

func (x *Cty_Object) ProtoReflect() protoreflect.Message

func (*Cty_Object) Reset added in v0.4.2

func (x *Cty_Object) Reset()

func (*Cty_Object) String added in v0.4.2

func (x *Cty_Object) String() string

type Cty_Object_ added in v0.4.2

type Cty_Object_ struct {
	Object *Cty_Object `protobuf:"bytes,2,opt,name=object,proto3,oneof"`
}

type Cty_Object_Attr added in v0.4.2

type Cty_Object_Attr struct {
	Data     *Cty `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Optional bool `protobuf:"varint,2,opt,name=optional,proto3" json:"optional,omitempty"`
	// contains filtered or unexported fields
}

func (*Cty_Object_Attr) Descriptor deprecated added in v0.4.2

func (*Cty_Object_Attr) Descriptor() ([]byte, []int)

Deprecated: Use Cty_Object_Attr.ProtoReflect.Descriptor instead.

func (*Cty_Object_Attr) GetData added in v0.4.2

func (x *Cty_Object_Attr) GetData() *Cty

func (*Cty_Object_Attr) GetOptional added in v0.4.2

func (x *Cty_Object_Attr) GetOptional() bool

func (*Cty_Object_Attr) ProtoMessage added in v0.4.2

func (*Cty_Object_Attr) ProtoMessage()

func (*Cty_Object_Attr) ProtoReflect added in v0.4.2

func (x *Cty_Object_Attr) ProtoReflect() protoreflect.Message

func (*Cty_Object_Attr) Reset added in v0.4.2

func (x *Cty_Object_Attr) Reset()

func (*Cty_Object_Attr) String added in v0.4.2

func (x *Cty_Object_Attr) String() string

type Cty_Primitive added in v0.4.2

type Cty_Primitive struct {

	// Types that are valid to be assigned to Data:
	//
	//	*Cty_Primitive_Str
	//	*Cty_Primitive_Num
	//	*Cty_Primitive_Bln
	Data isCty_Primitive_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*Cty_Primitive) Descriptor deprecated added in v0.4.2

func (*Cty_Primitive) Descriptor() ([]byte, []int)

Deprecated: Use Cty_Primitive.ProtoReflect.Descriptor instead.

func (*Cty_Primitive) GetBln added in v0.4.2

func (x *Cty_Primitive) GetBln() bool

func (*Cty_Primitive) GetData added in v0.4.2

func (x *Cty_Primitive) GetData() isCty_Primitive_Data

func (*Cty_Primitive) GetNum added in v0.4.2

func (x *Cty_Primitive) GetNum() []byte

func (*Cty_Primitive) GetStr added in v0.4.2

func (x *Cty_Primitive) GetStr() string

func (*Cty_Primitive) ProtoMessage added in v0.4.2

func (*Cty_Primitive) ProtoMessage()

func (*Cty_Primitive) ProtoReflect added in v0.4.2

func (x *Cty_Primitive) ProtoReflect() protoreflect.Message

func (*Cty_Primitive) Reset added in v0.4.2

func (x *Cty_Primitive) Reset()

func (*Cty_Primitive) String added in v0.4.2

func (x *Cty_Primitive) String() string

type Cty_Primitive_ added in v0.4.2

type Cty_Primitive_ struct {
	Primitive *Cty_Primitive `protobuf:"bytes,1,opt,name=primitive,proto3,oneof"`
}

type Cty_Primitive_Bln added in v0.4.2

type Cty_Primitive_Bln struct {
	Bln bool `protobuf:"varint,3,opt,name=bln,proto3,oneof"`
}

type Cty_Primitive_Num added in v0.4.2

type Cty_Primitive_Num struct {
	// empty value is used for marking the type
	Num []byte `protobuf:"bytes,2,opt,name=num,proto3,oneof"`
}

type Cty_Primitive_Str added in v0.4.2

type Cty_Primitive_Str struct {
	Str string `protobuf:"bytes,1,opt,name=str,proto3,oneof"`
}

type Cty_Sequence added in v0.4.2

type Cty_Sequence struct {
	Data []*Cty `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	// Original sequence is empty, element added to preserve the type
	// Not true for empty tuples, since they are valid values
	OnlyType bool `protobuf:"varint,2,opt,name=only_type,json=onlyType,proto3" json:"only_type,omitempty"`
	// contains filtered or unexported fields
}

func (*Cty_Sequence) Descriptor deprecated added in v0.4.2

func (*Cty_Sequence) Descriptor() ([]byte, []int)

Deprecated: Use Cty_Sequence.ProtoReflect.Descriptor instead.

func (*Cty_Sequence) GetData added in v0.4.2

func (x *Cty_Sequence) GetData() []*Cty

func (*Cty_Sequence) GetOnlyType added in v0.4.2

func (x *Cty_Sequence) GetOnlyType() bool

func (*Cty_Sequence) ProtoMessage added in v0.4.2

func (*Cty_Sequence) ProtoMessage()

func (*Cty_Sequence) ProtoReflect added in v0.4.2

func (x *Cty_Sequence) ProtoReflect() protoreflect.Message

func (*Cty_Sequence) Reset added in v0.4.2

func (x *Cty_Sequence) Reset()

func (*Cty_Sequence) String added in v0.4.2

func (x *Cty_Sequence) String() string

type Cty_Set added in v0.4.2

type Cty_Set struct {
	Set *Cty_Sequence `protobuf:"bytes,5,opt,name=set,proto3,oneof"`
}

type Cty_Tuple added in v0.4.2

type Cty_Tuple struct {
	Tuple *Cty_Sequence `protobuf:"bytes,6,opt,name=tuple,proto3,oneof"`
}

type Cty_Unknown added in v0.4.2

type Cty_Unknown struct {
	// Specifies type of the unknown value
	Unknown *CtyType `protobuf:"bytes,9,opt,name=unknown,proto3,oneof"`
}

type Data

type Data struct {

	// Types that are valid to be assigned to Data:
	//
	//	*Data_StringVal
	//	*Data_NumberVal
	//	*Data_BoolVal
	//	*Data_ListVal
	//	*Data_MapVal
	//	*Data_TimeVal
	Data isData_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*Data) Descriptor deprecated

func (*Data) Descriptor() ([]byte, []int)

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetBoolVal

func (x *Data) GetBoolVal() bool

func (*Data) GetData

func (x *Data) GetData() isData_Data

func (*Data) GetListVal

func (x *Data) GetListVal() *ListData

func (*Data) GetMapVal

func (x *Data) GetMapVal() *MapData

func (*Data) GetNumberVal

func (x *Data) GetNumberVal() float64

func (*Data) GetStringVal

func (x *Data) GetStringVal() string

func (*Data) GetTimeVal

func (x *Data) GetTimeVal() *timestamppb.Timestamp

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

func (x *Data) ProtoReflect() protoreflect.Message

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

type DataSourceSchema

type DataSourceSchema struct {
	Args   *BlockSpec `protobuf:"bytes,3,opt,name=args,proto3" json:"args,omitempty"`
	Config *BlockSpec `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
	Doc    string     `protobuf:"bytes,5,opt,name=doc,proto3" json:"doc,omitempty"`
	Tags   []string   `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*DataSourceSchema) Descriptor deprecated

func (*DataSourceSchema) Descriptor() ([]byte, []int)

Deprecated: Use DataSourceSchema.ProtoReflect.Descriptor instead.

func (*DataSourceSchema) GetArgs

func (x *DataSourceSchema) GetArgs() *BlockSpec

func (*DataSourceSchema) GetConfig

func (x *DataSourceSchema) GetConfig() *BlockSpec

func (*DataSourceSchema) GetDoc added in v0.4.2

func (x *DataSourceSchema) GetDoc() string

func (*DataSourceSchema) GetTags added in v0.4.2

func (x *DataSourceSchema) GetTags() []string

func (*DataSourceSchema) ProtoMessage

func (*DataSourceSchema) ProtoMessage()

func (*DataSourceSchema) ProtoReflect

func (x *DataSourceSchema) ProtoReflect() protoreflect.Message

func (*DataSourceSchema) Reset

func (x *DataSourceSchema) Reset()

func (*DataSourceSchema) String

func (x *DataSourceSchema) String() string

type Data_BoolVal

type Data_BoolVal struct {
	BoolVal bool `protobuf:"varint,3,opt,name=bool_val,json=boolVal,proto3,oneof"`
}

type Data_ListVal

type Data_ListVal struct {
	ListVal *ListData `protobuf:"bytes,4,opt,name=list_val,json=listVal,proto3,oneof"`
}

type Data_MapVal

type Data_MapVal struct {
	MapVal *MapData `protobuf:"bytes,5,opt,name=map_val,json=mapVal,proto3,oneof"`
}

type Data_NumberVal

type Data_NumberVal struct {
	NumberVal float64 `protobuf:"fixed64,2,opt,name=number_val,json=numberVal,proto3,oneof"`
}

type Data_StringVal

type Data_StringVal struct {
	StringVal string `protobuf:"bytes,1,opt,name=string_val,json=stringVal,proto3,oneof"`
}

type Data_TimeVal

type Data_TimeVal struct {
	TimeVal *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=time_val,json=timeVal,proto3,oneof"`
}

type Diagnostic

type Diagnostic struct {
	Severity int64  `protobuf:"varint,1,opt,name=severity,proto3" json:"severity,omitempty"`
	Summary  string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"`
	Detail   string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`
	Subject  *Range `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"`
	Context  *Range `protobuf:"bytes,5,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

func (*Diagnostic) Descriptor deprecated

func (*Diagnostic) Descriptor() ([]byte, []int)

Deprecated: Use Diagnostic.ProtoReflect.Descriptor instead.

func (*Diagnostic) GetContext

func (x *Diagnostic) GetContext() *Range

func (*Diagnostic) GetDetail

func (x *Diagnostic) GetDetail() string

func (*Diagnostic) GetSeverity

func (x *Diagnostic) GetSeverity() int64

func (*Diagnostic) GetSubject

func (x *Diagnostic) GetSubject() *Range

func (*Diagnostic) GetSummary

func (x *Diagnostic) GetSummary() string

func (*Diagnostic) ProtoMessage

func (*Diagnostic) ProtoMessage()

func (*Diagnostic) ProtoReflect

func (x *Diagnostic) ProtoReflect() protoreflect.Message

func (*Diagnostic) Reset

func (x *Diagnostic) Reset()

func (*Diagnostic) String

func (x *Diagnostic) String() string

type GetSchemaRequest

type GetSchemaRequest struct {
	// contains filtered or unexported fields
}

func (*GetSchemaRequest) Descriptor deprecated

func (*GetSchemaRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSchemaRequest.ProtoReflect.Descriptor instead.

func (*GetSchemaRequest) ProtoMessage

func (*GetSchemaRequest) ProtoMessage()

func (*GetSchemaRequest) ProtoReflect

func (x *GetSchemaRequest) ProtoReflect() protoreflect.Message

func (*GetSchemaRequest) Reset

func (x *GetSchemaRequest) Reset()

func (*GetSchemaRequest) String

func (x *GetSchemaRequest) String() string

type GetSchemaResponse

type GetSchemaResponse struct {
	Schema *Schema `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSchemaResponse) Descriptor deprecated

func (*GetSchemaResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetSchemaResponse.ProtoReflect.Descriptor instead.

func (*GetSchemaResponse) GetSchema

func (x *GetSchemaResponse) GetSchema() *Schema

func (*GetSchemaResponse) ProtoMessage

func (*GetSchemaResponse) ProtoMessage()

func (*GetSchemaResponse) ProtoReflect

func (x *GetSchemaResponse) ProtoReflect() protoreflect.Message

func (*GetSchemaResponse) Reset

func (x *GetSchemaResponse) Reset()

func (*GetSchemaResponse) String

func (x *GetSchemaResponse) String() string

type InvocationOrder added in v0.4.1

type InvocationOrder int32
const (
	InvocationOrder_INVOCATION_ORDER_UNSPECIFIED InvocationOrder = 0
	InvocationOrder_INVOCATION_ORDER_BEGIN       InvocationOrder = 2
	InvocationOrder_INVOCATION_ORDER_END         InvocationOrder = 3
)

func (InvocationOrder) Descriptor added in v0.4.1

func (InvocationOrder) Enum added in v0.4.1

func (x InvocationOrder) Enum() *InvocationOrder

func (InvocationOrder) EnumDescriptor deprecated added in v0.4.1

func (InvocationOrder) EnumDescriptor() ([]byte, []int)

Deprecated: Use InvocationOrder.Descriptor instead.

func (InvocationOrder) Number added in v0.4.1

func (InvocationOrder) String added in v0.4.1

func (x InvocationOrder) String() string

func (InvocationOrder) Type added in v0.4.1

type ListData

type ListData struct {
	Value []*Data `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ListData) Descriptor deprecated

func (*ListData) Descriptor() ([]byte, []int)

Deprecated: Use ListData.ProtoReflect.Descriptor instead.

func (*ListData) GetValue

func (x *ListData) GetValue() []*Data

func (*ListData) ProtoMessage

func (*ListData) ProtoMessage()

func (*ListData) ProtoReflect

func (x *ListData) ProtoReflect() protoreflect.Message

func (*ListData) Reset

func (x *ListData) Reset()

func (*ListData) String

func (x *ListData) String() string

type Location added in v0.4.1

type Location struct {
	Index  uint32         `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Effect LocationEffect `protobuf:"varint,2,opt,name=effect,proto3,enum=pluginapi.v1.LocationEffect" json:"effect,omitempty"`
	// contains filtered or unexported fields
}

func (*Location) Descriptor deprecated added in v0.4.1

func (*Location) Descriptor() ([]byte, []int)

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetEffect added in v0.4.1

func (x *Location) GetEffect() LocationEffect

func (*Location) GetIndex added in v0.4.1

func (x *Location) GetIndex() uint32

func (*Location) ProtoMessage added in v0.4.1

func (*Location) ProtoMessage()

func (*Location) ProtoReflect added in v0.4.1

func (x *Location) ProtoReflect() protoreflect.Message

func (*Location) Reset added in v0.4.1

func (x *Location) Reset()

func (*Location) String added in v0.4.1

func (x *Location) String() string

type LocationEffect added in v0.4.1

type LocationEffect int32
const (
	LocationEffect_LOCATION_EFFECT_UNSPECIFIED LocationEffect = 0
	LocationEffect_LOCATION_EFFECT_BEFORE      LocationEffect = 1
	LocationEffect_LOCATION_EFFECT_AFTER       LocationEffect = 2
)

func (LocationEffect) Descriptor added in v0.4.1

func (LocationEffect) Enum added in v0.4.1

func (x LocationEffect) Enum() *LocationEffect

func (LocationEffect) EnumDescriptor deprecated added in v0.4.1

func (LocationEffect) EnumDescriptor() ([]byte, []int)

Deprecated: Use LocationEffect.Descriptor instead.

func (LocationEffect) Number added in v0.4.1

func (LocationEffect) String added in v0.4.1

func (x LocationEffect) String() string

func (LocationEffect) Type added in v0.4.1

type MapData

type MapData struct {
	Value map[string]*Data `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MapData) Descriptor deprecated

func (*MapData) Descriptor() ([]byte, []int)

Deprecated: Use MapData.ProtoReflect.Descriptor instead.

func (*MapData) GetValue

func (x *MapData) GetValue() map[string]*Data

func (*MapData) ProtoMessage

func (*MapData) ProtoMessage()

func (*MapData) ProtoReflect

func (x *MapData) ProtoReflect() protoreflect.Message

func (*MapData) Reset

func (x *MapData) Reset()

func (*MapData) String

func (x *MapData) String() string

type OutputFormat added in v0.4.2

type OutputFormat int32
const (
	OutputFormat_OUTPUT_FORMAT_UNSPECIFIED OutputFormat = 0
	OutputFormat_OUTPUT_FORMAT_MD          OutputFormat = 1
	OutputFormat_OUTPUT_FORMAT_HTML        OutputFormat = 2
	OutputFormat_OUTPUT_FORMAT_PDF         OutputFormat = 3
)

func (OutputFormat) Descriptor added in v0.4.2

func (OutputFormat) Enum added in v0.4.2

func (x OutputFormat) Enum() *OutputFormat

func (OutputFormat) EnumDescriptor deprecated added in v0.4.2

func (OutputFormat) EnumDescriptor() ([]byte, []int)

Deprecated: Use OutputFormat.Descriptor instead.

func (OutputFormat) Number added in v0.4.2

func (OutputFormat) String added in v0.4.2

func (x OutputFormat) String() string

func (OutputFormat) Type added in v0.4.2

type PluginServiceClient

type PluginServiceClient interface {
	GetSchema(ctx context.Context, in *GetSchemaRequest, opts ...grpc.CallOption) (*GetSchemaResponse, error)
	RetrieveData(ctx context.Context, in *RetrieveDataRequest, opts ...grpc.CallOption) (*RetrieveDataResponse, error)
	ProvideContent(ctx context.Context, in *ProvideContentRequest, opts ...grpc.CallOption) (*ProvideContentResponse, error)
	Publish(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption) (*PublishResponse, error)
}

PluginServiceClient is the client API for PluginService 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.

type PluginServiceServer

type PluginServiceServer interface {
	GetSchema(context.Context, *GetSchemaRequest) (*GetSchemaResponse, error)
	RetrieveData(context.Context, *RetrieveDataRequest) (*RetrieveDataResponse, error)
	ProvideContent(context.Context, *ProvideContentRequest) (*ProvideContentResponse, error)
	Publish(context.Context, *PublishRequest) (*PublishResponse, error)
	// contains filtered or unexported methods
}

PluginServiceServer is the server API for PluginService service. All implementations must embed UnimplementedPluginServiceServer for forward compatibility.

type Pos

type Pos 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
}

func (*Pos) Descriptor deprecated

func (*Pos) Descriptor() ([]byte, []int)

Deprecated: Use Pos.ProtoReflect.Descriptor instead.

func (*Pos) GetByte

func (x *Pos) GetByte() int64

func (*Pos) GetColumn

func (x *Pos) GetColumn() int64

func (*Pos) GetLine

func (x *Pos) GetLine() int64

func (*Pos) ProtoMessage

func (*Pos) ProtoMessage()

func (*Pos) ProtoReflect

func (x *Pos) ProtoReflect() protoreflect.Message

func (*Pos) Reset

func (x *Pos) Reset()

func (*Pos) String

func (x *Pos) String() string

type ProvideContentRequest

type ProvideContentRequest struct {
	Provider    string   `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
	Args        *Block   `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
	Config      *Block   `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	DataContext *MapData `protobuf:"bytes,4,opt,name=data_context,json=dataContext,proto3" json:"data_context,omitempty"`
	ContentId   uint32   `protobuf:"varint,5,opt,name=content_id,json=contentId,proto3" json:"content_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ProvideContentRequest) Descriptor deprecated

func (*ProvideContentRequest) Descriptor() ([]byte, []int)

Deprecated: Use ProvideContentRequest.ProtoReflect.Descriptor instead.

func (*ProvideContentRequest) GetArgs

func (x *ProvideContentRequest) GetArgs() *Block

func (*ProvideContentRequest) GetConfig

func (x *ProvideContentRequest) GetConfig() *Block

func (*ProvideContentRequest) GetContentId added in v0.4.1

func (x *ProvideContentRequest) GetContentId() uint32

func (*ProvideContentRequest) GetDataContext

func (x *ProvideContentRequest) GetDataContext() *MapData

func (*ProvideContentRequest) GetProvider

func (x *ProvideContentRequest) GetProvider() string

func (*ProvideContentRequest) ProtoMessage

func (*ProvideContentRequest) ProtoMessage()

func (*ProvideContentRequest) ProtoReflect

func (x *ProvideContentRequest) ProtoReflect() protoreflect.Message

func (*ProvideContentRequest) Reset

func (x *ProvideContentRequest) Reset()

func (*ProvideContentRequest) String

func (x *ProvideContentRequest) String() string

type ProvideContentResponse

type ProvideContentResponse struct {
	Result      *ContentResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	Diagnostics []*Diagnostic  `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"`
	// contains filtered or unexported fields
}

func (*ProvideContentResponse) Descriptor deprecated

func (*ProvideContentResponse) Descriptor() ([]byte, []int)

Deprecated: Use ProvideContentResponse.ProtoReflect.Descriptor instead.

func (*ProvideContentResponse) GetDiagnostics

func (x *ProvideContentResponse) GetDiagnostics() []*Diagnostic

func (*ProvideContentResponse) GetResult added in v0.4.1

func (x *ProvideContentResponse) GetResult() *ContentResult

func (*ProvideContentResponse) ProtoMessage

func (*ProvideContentResponse) ProtoMessage()

func (*ProvideContentResponse) ProtoReflect

func (x *ProvideContentResponse) ProtoReflect() protoreflect.Message

func (*ProvideContentResponse) Reset

func (x *ProvideContentResponse) Reset()

func (*ProvideContentResponse) String

func (x *ProvideContentResponse) String() string

type PublishRequest added in v0.4.2

type PublishRequest struct {
	Publisher    string       `protobuf:"bytes,1,opt,name=publisher,proto3" json:"publisher,omitempty"`
	Args         *Block       `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
	Config       *Block       `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	DataContext  *MapData     `protobuf:"bytes,4,opt,name=data_context,json=dataContext,proto3" json:"data_context,omitempty"`
	Format       OutputFormat `protobuf:"varint,5,opt,name=format,proto3,enum=pluginapi.v1.OutputFormat" json:"format,omitempty"`
	DocumentName string       `protobuf:"bytes,6,opt,name=document_name,json=documentName,proto3" json:"document_name,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishRequest) Descriptor deprecated added in v0.4.2

func (*PublishRequest) Descriptor() ([]byte, []int)

Deprecated: Use PublishRequest.ProtoReflect.Descriptor instead.

func (*PublishRequest) GetArgs added in v0.4.2

func (x *PublishRequest) GetArgs() *Block

func (*PublishRequest) GetConfig added in v0.4.2

func (x *PublishRequest) GetConfig() *Block

func (*PublishRequest) GetDataContext added in v0.4.2

func (x *PublishRequest) GetDataContext() *MapData

func (*PublishRequest) GetDocumentName

func (x *PublishRequest) GetDocumentName() string

func (*PublishRequest) GetFormat added in v0.4.2

func (x *PublishRequest) GetFormat() OutputFormat

func (*PublishRequest) GetPublisher added in v0.4.2

func (x *PublishRequest) GetPublisher() string

func (*PublishRequest) ProtoMessage added in v0.4.2

func (*PublishRequest) ProtoMessage()

func (*PublishRequest) ProtoReflect added in v0.4.2

func (x *PublishRequest) ProtoReflect() protoreflect.Message

func (*PublishRequest) Reset added in v0.4.2

func (x *PublishRequest) Reset()

func (*PublishRequest) String added in v0.4.2

func (x *PublishRequest) String() string

type PublishResponse added in v0.4.2

type PublishResponse struct {
	Diagnostics []*Diagnostic `protobuf:"bytes,1,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishResponse) Descriptor deprecated added in v0.4.2

func (*PublishResponse) Descriptor() ([]byte, []int)

Deprecated: Use PublishResponse.ProtoReflect.Descriptor instead.

func (*PublishResponse) GetDiagnostics added in v0.4.2

func (x *PublishResponse) GetDiagnostics() []*Diagnostic

func (*PublishResponse) ProtoMessage added in v0.4.2

func (*PublishResponse) ProtoMessage()

func (*PublishResponse) ProtoReflect added in v0.4.2

func (x *PublishResponse) ProtoReflect() protoreflect.Message

func (*PublishResponse) Reset added in v0.4.2

func (x *PublishResponse) Reset()

func (*PublishResponse) String added in v0.4.2

func (x *PublishResponse) String() string

type PublisherSchema added in v0.4.2

type PublisherSchema struct {
	Args           *BlockSpec     `protobuf:"bytes,1,opt,name=args,proto3" json:"args,omitempty"`
	Config         *BlockSpec     `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	Doc            string         `protobuf:"bytes,3,opt,name=doc,proto3" json:"doc,omitempty"`
	Tags           []string       `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"`
	AllowedFormats []OutputFormat `` /* 142-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*PublisherSchema) Descriptor deprecated added in v0.4.2

func (*PublisherSchema) Descriptor() ([]byte, []int)

Deprecated: Use PublisherSchema.ProtoReflect.Descriptor instead.

func (*PublisherSchema) GetAllowedFormats added in v0.4.2

func (x *PublisherSchema) GetAllowedFormats() []OutputFormat

func (*PublisherSchema) GetArgs added in v0.4.2

func (x *PublisherSchema) GetArgs() *BlockSpec

func (*PublisherSchema) GetConfig added in v0.4.2

func (x *PublisherSchema) GetConfig() *BlockSpec

func (*PublisherSchema) GetDoc added in v0.4.2

func (x *PublisherSchema) GetDoc() string

func (*PublisherSchema) GetTags added in v0.4.2

func (x *PublisherSchema) GetTags() []string

func (*PublisherSchema) ProtoMessage added in v0.4.2

func (*PublisherSchema) ProtoMessage()

func (*PublisherSchema) ProtoReflect added in v0.4.2

func (x *PublisherSchema) ProtoReflect() protoreflect.Message

func (*PublisherSchema) Reset added in v0.4.2

func (x *PublisherSchema) Reset()

func (*PublisherSchema) String added in v0.4.2

func (x *PublisherSchema) String() string

type Range

type Range struct {
	Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
	Start    *Pos   `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
	End      *Pos   `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
	// contains filtered or unexported fields
}

func (*Range) Descriptor deprecated

func (*Range) Descriptor() ([]byte, []int)

Deprecated: Use Range.ProtoReflect.Descriptor instead.

func (*Range) GetEnd

func (x *Range) GetEnd() *Pos

func (*Range) GetFilename

func (x *Range) GetFilename() string

func (*Range) GetStart

func (x *Range) GetStart() *Pos

func (*Range) ProtoMessage

func (*Range) ProtoMessage()

func (*Range) ProtoReflect

func (x *Range) ProtoReflect() protoreflect.Message

func (*Range) Reset

func (x *Range) Reset()

func (*Range) String

func (x *Range) String() string

type RetrieveDataRequest

type RetrieveDataRequest struct {
	Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Args   *Block `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
	Config *Block `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*RetrieveDataRequest) Descriptor deprecated

func (*RetrieveDataRequest) Descriptor() ([]byte, []int)

Deprecated: Use RetrieveDataRequest.ProtoReflect.Descriptor instead.

func (*RetrieveDataRequest) GetArgs

func (x *RetrieveDataRequest) GetArgs() *Block

func (*RetrieveDataRequest) GetConfig

func (x *RetrieveDataRequest) GetConfig() *Block

func (*RetrieveDataRequest) GetSource

func (x *RetrieveDataRequest) GetSource() string

func (*RetrieveDataRequest) ProtoMessage

func (*RetrieveDataRequest) ProtoMessage()

func (*RetrieveDataRequest) ProtoReflect

func (x *RetrieveDataRequest) ProtoReflect() protoreflect.Message

func (*RetrieveDataRequest) Reset

func (x *RetrieveDataRequest) Reset()

func (*RetrieveDataRequest) String

func (x *RetrieveDataRequest) String() string

type RetrieveDataResponse

type RetrieveDataResponse struct {
	Data        *Data         `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Diagnostics []*Diagnostic `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"`
	// contains filtered or unexported fields
}

func (*RetrieveDataResponse) Descriptor deprecated

func (*RetrieveDataResponse) Descriptor() ([]byte, []int)

Deprecated: Use RetrieveDataResponse.ProtoReflect.Descriptor instead.

func (*RetrieveDataResponse) GetData

func (x *RetrieveDataResponse) GetData() *Data

func (*RetrieveDataResponse) GetDiagnostics

func (x *RetrieveDataResponse) GetDiagnostics() []*Diagnostic

func (*RetrieveDataResponse) ProtoMessage

func (*RetrieveDataResponse) ProtoMessage()

func (*RetrieveDataResponse) ProtoReflect

func (x *RetrieveDataResponse) ProtoReflect() protoreflect.Message

func (*RetrieveDataResponse) Reset

func (x *RetrieveDataResponse) Reset()

func (*RetrieveDataResponse) String

func (x *RetrieveDataResponse) String() string

type Schema

type Schema struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// Plugin components
	DataSources      map[string]*DataSourceSchema      `` /* 168-byte string literal not displayed */
	ContentProviders map[string]*ContentProviderSchema `` /* 183-byte string literal not displayed */
	Publishers       map[string]*PublisherSchema       `` /* 147-byte string literal not displayed */
	Doc              string                            `protobuf:"bytes,5,opt,name=doc,proto3" json:"doc,omitempty"`
	Tags             []string                          `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*Schema) Descriptor deprecated

func (*Schema) Descriptor() ([]byte, []int)

Deprecated: Use Schema.ProtoReflect.Descriptor instead.

func (*Schema) GetContentProviders

func (x *Schema) GetContentProviders() map[string]*ContentProviderSchema

func (*Schema) GetDataSources

func (x *Schema) GetDataSources() map[string]*DataSourceSchema

func (*Schema) GetDoc added in v0.4.2

func (x *Schema) GetDoc() string

func (*Schema) GetName

func (x *Schema) GetName() string

func (*Schema) GetPublishers added in v0.4.2

func (x *Schema) GetPublishers() map[string]*PublisherSchema

func (*Schema) GetTags added in v0.4.2

func (x *Schema) GetTags() []string

func (*Schema) GetVersion

func (x *Schema) GetVersion() string

func (*Schema) ProtoMessage

func (*Schema) ProtoMessage()

func (*Schema) ProtoReflect

func (x *Schema) ProtoReflect() protoreflect.Message

func (*Schema) Reset

func (x *Schema) Reset()

func (*Schema) String

func (x *Schema) String() string

type UnimplementedPluginServiceServer

type UnimplementedPluginServiceServer struct{}

UnimplementedPluginServiceServer 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 (UnimplementedPluginServiceServer) GetSchema

func (UnimplementedPluginServiceServer) ProvideContent

func (UnimplementedPluginServiceServer) Publish added in v0.4.2

func (UnimplementedPluginServiceServer) RetrieveData

type UnsafePluginServiceServer

type UnsafePluginServiceServer interface {
	// contains filtered or unexported methods
}

UnsafePluginServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PluginServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL