Documentation
¶
Index ¶
- func NewBundleCodec() providerapi.SchemaCodec
- func NewCollectionBehavior() providerapi.CollectionBehavior
- func NewPolicyCodec() providerapi.SchemaCodec
- func NewServerCodec() providerapi.SchemaCodec
- type BundleCodec
- type Decoder
- func (d *Decoder) BindExpectedCanonicalizer(schemas providerapi.SchemaCatalog) error
- func (d *Decoder) Decode(ctx context.Context, candidate providerapi.Candidate) ([]providerapi.Decoded, []diagnostic.Diagnostic)
- func (*Decoder) ID() basespec.DecoderID
- func (d *Decoder) Recognize(_ context.Context, candidate providerapi.Candidate) providerapi.Recognition
- func (*Decoder) RequiredSchemaKeys() []schema.Key
- func (*Decoder) Revision() string
- type PolicyCodec
- type Provider
- type ServerCodec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBundleCodec ¶
func NewBundleCodec() providerapi.SchemaCodec
func NewCollectionBehavior ¶
func NewCollectionBehavior() providerapi.CollectionBehavior
func NewPolicyCodec ¶
func NewPolicyCodec() providerapi.SchemaCodec
func NewServerCodec ¶
func NewServerCodec() providerapi.SchemaCodec
Types ¶
type BundleCodec ¶
type BundleCodec struct{}
func (BundleCodec) Canonicalize ¶
func (BundleCodec) Canonicalize( ctx context.Context, raw []byte, ) (schema.ParsedDocument, error)
func (BundleCodec) JSONSchema ¶
func (BundleCodec) JSONSchema() []byte
func (BundleCodec) Key ¶
func (BundleCodec) Key() schema.Key
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func NewDecoder ¶
func NewDecoder() *Decoder
func (*Decoder) BindExpectedCanonicalizer ¶
func (d *Decoder) BindExpectedCanonicalizer( schemas providerapi.SchemaCatalog, ) error
func (*Decoder) Decode ¶
func (d *Decoder) Decode( ctx context.Context, candidate providerapi.Candidate, ) ([]providerapi.Decoded, []diagnostic.Diagnostic)
func (*Decoder) Recognize ¶
func (d *Decoder) Recognize( _ context.Context, candidate providerapi.Candidate, ) providerapi.Recognition
func (*Decoder) RequiredSchemaKeys ¶
type PolicyCodec ¶
type PolicyCodec struct{}
func (PolicyCodec) Canonicalize ¶
func (PolicyCodec) Canonicalize( ctx context.Context, raw []byte, ) (schema.ParsedDocument, error)
func (PolicyCodec) JSONSchema ¶
func (PolicyCodec) JSONSchema() []byte
func (PolicyCodec) Key ¶
func (PolicyCodec) Key() schema.Key
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider registers the MCP Bundle collection behavior, portable schemas, and bundle decoder as one Artifact Store plugin.
func NewProvider ¶
func (*Provider) Descriptor ¶
func (p *Provider) Descriptor() providerapi.Descriptor
type ServerCodec ¶
type ServerCodec struct{}
func (ServerCodec) Canonicalize ¶
func (ServerCodec) Canonicalize( ctx context.Context, raw []byte, ) (schema.ParsedDocument, error)
func (ServerCodec) JSONSchema ¶
func (ServerCodec) JSONSchema() []byte
func (ServerCodec) Key ¶
func (ServerCodec) Key() schema.Key
Click to show internal directories.
Click to hide internal directories.