cabinet

package
v0.0.0-...-8c2001a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func New

func New(cabinet store.CabinetHub, signer service.Signer) *Controller

func (*Controller) AddBlob

func (c *Controller) AddBlob(uclaim *claim.Session, source, folder, file string, contents []byte) error

func (*Controller) AddFolder

func (c *Controller) AddFolder(uclaim *claim.Session, source, folder string) error

func (*Controller) DeleteBlob

func (c *Controller) DeleteBlob(uclaim *claim.Session, source, folder, file string) error

func (*Controller) GetBlob

func (c *Controller) GetBlob(uclaim *claim.Session, source, folder, file string) ([]byte, error)

func (*Controller) ListFolder

func (c *Controller) ListFolder(uclaim *claim.Session, source, folder string) ([]*store.BlobInfo, error)

func (*Controller) ListRoot

func (c *Controller) ListRoot(uclaim *claim.Session, source string) ([]string, error)

func (*Controller) NewFolderTicket

func (c *Controller) NewFolderTicket(uclaim *claim.Session, source, folder string) (string, error)

Jump to

Keyboard shortcuts

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