connshare

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: AGPL-3.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package connshare brokers invocation-scoped access to another plugin's resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service is bound to exactly one consumer process. Close retires all its calls.

func New

func New(consumer string, resources Resources, boundary *invocation.Boundary) *Service

func (*Service) Begin

func (s *Service) Begin(ctx context.Context, owner string, route v2.AccessRoute, grant config.ConnectionGrant, readonly bool, validate func() error) ([]byte, func(), error)

Begin pins one owner catalog and installs its authority on the admitted call. validate must check current manifests, owner process, connection state and grants.

func (*Service) Catalog

func (s *Service) Catalog(ctx context.Context, token []byte, owner string, req v2.CatalogRequest) (v2.Catalog, error)

func (*Service) Close

func (s *Service) Close()

func (*Service) Enumerate

func (s *Service) Enumerate(ctx context.Context, token []byte, owner, id string, req v2.EnumerateRequest) (v2.SourcePage, error)

func (*Service) Get

func (s *Service) Get(ctx context.Context, token []byte, owner, id string, req v2.GetRequest) (v2.Record, error)

func (*Service) GetSchemaDocument

func (s *Service) GetSchemaDocument(ctx context.Context, token []byte, owner string, route v2.AccessRoute, ref v2.SchemaDocumentReference) (v2.SchemaDocument, error)

func (*Service) ResolveTarget

func (*Service) RetireConnection

func (s *Service) RetireConnection(owner, connection string)

RetireConnection cancels every capability for a changing owner route.

func (*Service) RetireOwner

func (s *Service) RetireOwner(owner string)

RetireOwner cancels calls that borrowed a retired owner process.

func (*Service) Update

func (s *Service) Update(ctx context.Context, token []byte, owner, id string, req v2.MutationRequest) (v2.Record, error)

Jump to

Keyboard shortcuts

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