Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfigMediaType = "application/vnd.io.solo.wasm.config.v1+json" CodeMediaType = "application/vnd.io.solo.wasm.code.v1+wasm" )
media types stored in a Wasm Module image
View Source
const ( ConfigFilename = "config.json" CodeFilename = "filter.wasm" )
default filenames stored in a Wasm Module Image
Variables ¶
This section is empty.
Functions ¶
func GetDescriptor ¶
func GetDescriptor(filter Filter) (ocispec.Descriptor, error)
helper function to get the descriptor for a wasm binary
Types ¶
type Image ¶
type Image interface { // ref to the image Ref() string // get the image (Filter) descriptor Descriptor() (ocispec.Descriptor, error) // get the filter .wasm file from the image FetchFilter(ctx context.Context) (Filter, error) // get the filter config from the image FetchConfig(ctx context.Context) (*config.Config, error) }
represents the descriptors for an image, as well as accessors to the image contents
Click to show internal directories.
Click to hide internal directories.