Documentation ¶
Index ¶
- type IndexProcessor
- func (m *IndexProcessor) AbstractAddition(_ context.Context, _ *artifact.Artifact, addition string) (*processor.Addition, error)
- func (m *IndexProcessor) AbstractMetadata(_ context.Context, _ *artifact.Artifact, _ []byte) error
- func (m *IndexProcessor) GetArtifactType(_ context.Context, _ *artifact.Artifact) string
- func (m *IndexProcessor) ListAdditionTypes(_ context.Context, _ *artifact.Artifact) []string
- type ManifestProcessor
- func (m *ManifestProcessor) AbstractAddition(_ context.Context, _ *artifact.Artifact, addition string) (*processor.Addition, error)
- func (m *ManifestProcessor) AbstractMetadata(ctx context.Context, artifact *artifact.Artifact, content []byte) error
- func (m *ManifestProcessor) GetArtifactType(_ context.Context, _ *artifact.Artifact) string
- func (m *ManifestProcessor) ListAdditionTypes(_ context.Context, _ *artifact.Artifact) []string
- func (m *ManifestProcessor) UnmarshalConfig(_ context.Context, repository string, manifest []byte, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexProcessor ¶
IndexProcessor is a base processor to process artifact enveloped by OCI index or docker manifest list Currently, it is just a null implementation
func NewIndexProcessor ¶
func NewIndexProcessor() *IndexProcessor
NewIndexProcessor creates a new base index processor.
func (*IndexProcessor) AbstractAddition ¶
func (m *IndexProcessor) AbstractAddition(_ context.Context, _ *artifact.Artifact, addition string) (*processor.Addition, error)
AbstractAddition abstracts the addition of artifact
func (*IndexProcessor) AbstractMetadata ¶
AbstractMetadata abstracts metadata of artifact
func (*IndexProcessor) GetArtifactType ¶
GetArtifactType returns the artifact type
func (*IndexProcessor) ListAdditionTypes ¶
ListAdditionTypes returns the supported addition types
type ManifestProcessor ¶
ManifestProcessor is a base processor to process artifact enveloped by OCI manifest or docker v2 manifest
func NewManifestProcessor ¶
func NewManifestProcessor(properties ...string) *ManifestProcessor
NewManifestProcessor creates a new base manifest processor. All metadata read from config layer will be populated if specifying no "properties"
func (*ManifestProcessor) AbstractAddition ¶
func (m *ManifestProcessor) AbstractAddition(_ context.Context, _ *artifact.Artifact, addition string) (*processor.Addition, error)
AbstractAddition abstracts the addition of artifact
func (*ManifestProcessor) AbstractMetadata ¶
func (m *ManifestProcessor) AbstractMetadata(ctx context.Context, artifact *artifact.Artifact, content []byte) error
AbstractMetadata abstracts metadata of artifact
func (*ManifestProcessor) GetArtifactType ¶
GetArtifactType returns the artifact type
func (*ManifestProcessor) ListAdditionTypes ¶
ListAdditionTypes returns the supported addition types
func (*ManifestProcessor) UnmarshalConfig ¶
func (m *ManifestProcessor) UnmarshalConfig(_ context.Context, repository string, manifest []byte, v interface{}) error
UnmarshalConfig unmarshal the config blob of the artifact into the specified object "v"