memory

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

type Memory struct {
	// contains filtered or unexported fields
}

Memory implements the OCI interface for a generic set of bytes stored in memory.

func NewMemory

func NewMemory(data []byte, mt string, opts ...Option) *Memory

func (*Memory) Layers

func (m *Memory) Layers() ([]v1.Layer, error)

func (*Memory) Manifest

func (m *Memory) Manifest() (*v1.Manifest, error)

func (*Memory) MediaType

func (m *Memory) MediaType() string

func (*Memory) RawConfig

func (m *Memory) RawConfig() ([]byte, error)

type Option

type Option func(*Memory)

func WithAnnotations

func WithAnnotations(annotations map[string]string) Option

func WithConfig

func WithConfig(obj interface{}, mediaType string) Option

Jump to

Keyboard shortcuts

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