Documentation ¶
Index ¶
Constants ¶
View Source
const Kind = "publish"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct { Provenance provenance.Contract `json:"provenance"` PublisherKind string `json:"publisherType"` PublisherMetadata metadata.Contract `json:"publisherMetadata"` // contains filtered or unexported fields }
Instance is the annotator-specific metadata.
func New ¶
func New(provenance provenance.Contract, publisherMetadata metadata.Contract) *Instance
New is a factory function that returns an initialized Instance.
func (*Instance) SetPublisherFactories ¶
func (i *Instance) SetPublisherFactories(publisherFactories []metadataFactory.Contract)
SetPublisherFactories provides for method injection of required factory to unmarshal metadata JSON.
func (*Instance) UnmarshalJSON ¶
UnmarshalJSON converts JSON into appropriate contract implementations.
Click to show internal directories.
Click to hide internal directories.