Versions in this module Expand all Collapse all v0 v0.2.0 Jun 5, 2023 Changes in this version + var ErrSomeExportsFailed = errors.New("some exports failed") + var HandshakeConfig = plugin.HandshakeConfig + func ServeCommands(version Version, protocol PluginProtocol, commands ...ExportCommand) + func ToProtoVersion(v Version) *proto.Version + type CommandInfo struct + Description string + Name string + Summary string + Version Version + type ExportCommand interface + Export func(ExportCommandRequest) (ExportResponse, error) + Help func() (string, error) + Info func() (CommandInfo, error) + type ExportCommandRequest struct + OutputDirectory string + PluginArgs []string + SkipProviderOutput bool + type ExportPlugin interface + Export func(ExportPluginRequest) (ExportResponse, error) + Help func(string) (string, error) + Info func() (PluginInformation, error) + func NewExportPlugin(version Version, commands ...ExportCommand) ExportPlugin + type ExportPluginRequest struct + Name string + Request ExportCommandRequest + type ExportResponse struct + Directives []ImportDirective + type GRPCExportPlugin struct + Impl ExportPlugin + func (p *GRPCExportPlugin) GRPCClient(_ context.Context, _ *plugin.GRPCBroker, c *grpc.ClientConn) (any, error) + func (p *GRPCExportPlugin) GRPCServer(_ *plugin.GRPCBroker, s *grpc.Server) error + type ImportDirective struct + ID string + Name string + Resource string + func (i ImportDirective) String() string + type PluginInformation struct + Provides []CommandInfo + Version Version + type PluginProtocol uint8 + const GRPCProtocol + const RPCProtocol + type RPCExportPlugin struct + Impl ExportPlugin + func (p *RPCExportPlugin) Server(*plugin.MuxBroker) (any, error) + func (p RPCExportPlugin) Client(_ *plugin.MuxBroker, client *rpc.Client) (any, error) + type Version struct + BuildMetadata string + Major uint64 + Minor uint64 + Patch uint64 + Pre string + func FromProtoVersion(p *proto.Version) Version + func FromSemver(s semver.Version) Version + func FromString(s string) Version + func (v Version) String() string