Documentation
¶
Index ¶
- func DefaultDecoders() []providerapi.Decoder
- func NewCollectionCodec() providerapi.SchemaCodec
- type ContextDecoder
- func (*ContextDecoder) Decode(_ context.Context, candidate providerapi.Candidate) ([]providerapi.Decoded, []diagnostic.Diagnostic)
- func (*ContextDecoder) ID() basespec.DecoderID
- func (*ContextDecoder) Recognize(_ context.Context, candidate providerapi.Candidate) providerapi.Recognition
- func (*ContextDecoder) Revision() string
- type Provider
- type ProviderConfig
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) Decode( _ context.Context, candidate providerapi.Candidate, ) ([]providerapi.Decoded, []diagnostic.Diagnostic)
func (*ContextDecoder) ID ¶
func (*ContextDecoder) ID() basespec.DecoderID
func (*ContextDecoder) Recognize ¶
func (*ContextDecoder) Recognize( _ context.Context, candidate providerapi.Candidate, ) providerapi.Recognition
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.
Click to show internal directories.
Click to hide internal directories.