manifest

package
v8.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	Version uint64 // this is really u32, but cbor-gen can't deal with it
	Data    cid.Cid
	// contains filtered or unexported fields
}

func (*Manifest) Get

func (m *Manifest) Get(name string) (cid.Cid, bool)

func (*Manifest) Load

func (m *Manifest) Load(ctx context.Context, store adt8.Store) error

func (*Manifest) MarshalCBOR

func (t *Manifest) MarshalCBOR(w io.Writer) error

func (*Manifest) UnmarshalCBOR

func (t *Manifest) UnmarshalCBOR(r io.Reader) error

type ManifestData

type ManifestData struct {
	Entries []ManifestEntry
}

func (*ManifestData) MarshalCBOR

func (d *ManifestData) MarshalCBOR(w io.Writer) error

func (*ManifestData) UnmarshalCBOR

func (d *ManifestData) UnmarshalCBOR(r io.Reader) error

this is a flat tuple, so we need to write these by hand

type ManifestEntry

type ManifestEntry struct {
	Name string
	Code cid.Cid
}

func (*ManifestEntry) MarshalCBOR

func (t *ManifestEntry) MarshalCBOR(w io.Writer) error

func (*ManifestEntry) UnmarshalCBOR

func (t *ManifestEntry) UnmarshalCBOR(r io.Reader) error

Jump to

Keyboard shortcuts

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