wasm

package
v0.0.0-...-29bd094 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ArtifactTypeWASM is the artifact type for image
	ArtifactTypeWASM         = "WASM"
	AdditionTypeBuildHistory = "BUILD_HISTORY"

	// AnnotationVariantKey and AnnotationVariantValue is available key-value pair to identify an annotation fashion wasm artifact
	AnnotationVariantKey   = "module.wasm.image/variant"
	AnnotationVariantValue = "compat"

	// AnnotationHandlerKey and AnnotationHandlerValue is another available key-value pair to identify an annotation fashion wasm artifact
	AnnotationHandlerKey   = "run.oci.handler"
	AnnotationHandlerValue = "wasm"

	MediaType = "application/vnd.wasm.config.v1+json"
)

const definitions

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct {
	*base.ManifestProcessor
}

Processor processes image with OCI manifest and docker v2 manifest

func (*Processor) AbstractAddition

func (m *Processor) AbstractAddition(ctx context.Context, artifact *artifact.Artifact, addition string) (*processor.Addition, error)

func (*Processor) AbstractMetadata

func (m *Processor) AbstractMetadata(ctx context.Context, art *artifact.Artifact, manifestBody []byte) error

func (*Processor) GetArtifactType

func (m *Processor) GetArtifactType(_ context.Context, _ *artifact.Artifact) string

func (*Processor) ListAdditionTypes

func (m *Processor) ListAdditionTypes(_ context.Context, _ *artifact.Artifact) []string

Jump to

Keyboard shortcuts

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