storage

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Endpoint = "http://139.162.111.178"
)

Functions

func Download

func Download(parcelID string, key keys.KeyEntry) ([]byte, error)

func Inspect

func Inspect(parcelID string) ([]byte, error)

XXX: nothing special, just to match the style with other API functions

func Remove

func Remove(parcelID string, key keys.KeyEntry) ([]byte, error)

func Upload

func Upload(data []byte, key keys.KeyEntry) ([]byte, error)

Types

type AuthBody

type AuthBody struct {
	User      string          `json:"user"`
	Operation json.RawMessage `json:"operation"`
}

type UploadBody

type UploadBody struct {
	Owner    string          `json:"owner"`
	Metadata json.RawMessage `json:"metadata"`
	Data     string          `json:"data"`
}

Jump to

Keyboard shortcuts

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