cbor

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: Apache-2.0, MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NonceRefForEntry

func NonceRefForEntry(entry iface.IPFSLogEntry) []byte

Types

type IOCbor

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

func IO

func IO(refEntry iface.IPFSLogEntry, refClock iface.IPFSLogLamportClock) (*IOCbor, error)

func (*IOCbor) ApplyOptions

func (i *IOCbor) ApplyOptions(options *Options) *IOCbor

func (*IOCbor) DecodeRawEntry

func (i *IOCbor) DecodeRawEntry(node format.Node, hash cid.Cid, p identityprovider.Interface) (iface.IPFSLogEntry, error)

func (*IOCbor) DecodeRawJSONLog

func (i *IOCbor) DecodeRawJSONLog(node format.Node) (*iface.JSONLog, error)
func (i *IOCbor) DecryptLinks(entry *jsonable.EntryV2) (*jsonable.EntryV2, error)

func (*IOCbor) PreSign

func (i *IOCbor) PreSign(entry iface.IPFSLogEntry) (iface.IPFSLogEntry, error)

func (*IOCbor) Read

func (i *IOCbor) Read(ctx context.Context, ipfs core_iface.CoreAPI, contentIdentifier cid.Cid) (format.Node, error)

Read reads a CBOR representation of a given object from IPFS' DAG.

func (*IOCbor) SetDebug

func (i *IOCbor) SetDebug(val bool)

func (*IOCbor) Write

func (i *IOCbor) Write(ctx context.Context, ipfs core_iface.CoreAPI, obj interface{}, opts *iface.WriteOpts) (cid.Cid, error)

WriteCBOR writes a CBOR representation of a given object in IPFS' DAG.

type Options

type Options struct {
	//ConstantIdentity *identityprovider.Identity
	LinkKey enc.SharedKey
}

Jump to

Keyboard shortcuts

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