providerapi

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: MPL-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDecoders

func DefaultDecoders() []providerapi.Decoder

DefaultDecoders returns only the decoders owned by Workspace. Shared artifact-family decoders are registered by their owning providers.

func NewCollectionCodec

func NewCollectionCodec() providerapi.SchemaCodec

Types

type ContextDecoder

type ContextDecoder struct{}

func NewContextDecoder

func NewContextDecoder() *ContextDecoder

func (*ContextDecoder) Decode

func (*ContextDecoder) ID

func (*ContextDecoder) Recognize

func (*ContextDecoder) Revision

func (*ContextDecoder) Revision() string

type Provider

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

Provider registers Workspace's schema codec, context decoder, and collection-kind behavior as one Artifact Store plugin.

func NewProvider

func NewProvider(config ProviderConfig) (*Provider, error)

func (*Provider) Descriptor

func (p *Provider) Descriptor() providerapi.Descriptor

type ProviderConfig

type ProviderConfig struct {
	WorkspaceRootID         root.RootID
	Supports                []workspaceDomain.ArtifactSupport
	DiscoveryProfiles       workspaceDomain.DiscoveryProfiles
	DiscoveryPolicyRevision string
	SkillRoots              []basespec.Locator
}

ProviderConfig contains Workspace's inbound Artifact Store behavior configuration. It is supplied while Artifact Store providers are registered, before metadata is opened or a Workspace is refreshed.

func DefaultProviderConfig

func DefaultProviderConfig() ProviderConfig

DefaultProviderConfig returns the application Workspace provider behavior.

Jump to

Keyboard shortcuts

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