containercontract

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(containerID []byte, signature interop.Signature, token []byte)

func GetContainerSize added in v0.4.0

func GetContainerSize(id []byte) containerSizes

func List

func List(owner []byte) [][]byte

func ListContainerSizes added in v0.4.0

func ListContainerSizes(epoch int) [][]byte

func Migrate added in v0.4.0

func Migrate(script []byte, manifest []byte, data interface{}) bool

func NewEpoch added in v0.5.0

func NewEpoch(epochNum int)

func Owner

func Owner(containerID []byte) []byte

func Put

func Put(container []byte, signature interop.Signature, publicKey interop.PublicKey, token []byte)

func PutContainerSize added in v0.4.0

func PutContainerSize(epoch int, cid []byte, usedSize int, pubKey interop.PublicKey)

func SetEACL

func SetEACL(eACL []byte, signature interop.Signature, publicKey interop.PublicKey, token []byte)

func StartContainerEstimation added in v0.4.0

func StartContainerEstimation(epoch int)

func StopContainerEstimation added in v0.4.0

func StopContainerEstimation(epoch int)

func Version

func Version() int

Types

type Container added in v0.9.0

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

func Get

func Get(containerID []byte) Container

type ExtendedACL added in v0.9.0

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

func EACL

func EACL(containerID []byte) ExtendedACL

Jump to

Keyboard shortcuts

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