btfs

package
v0.0.0-...-52eb507 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cat

func Cat(ctx context.Context, hash string) (content []byte, err error)

func Init

func Init() (err error)

Types

type AddOptions

type AddOptions struct {
	Pin bool `json:"pin"`
}

type AddResult

type AddResult struct {
	Hash string `json:"Hash"`
	Name string `json:"Name"`
	Size string `json:"Size"`
}

func Add

func Add(ctx context.Context, content []byte, name string, options *AddOptions) (result *AddResult, err error)

type Service

type Service interface {
	Add(ctx context.Context, content []byte, item string, options *AddOptions) (result *AddResult, err error)
	Cat(ctx context.Context, hash string) (content []byte, err error)
}

Jump to

Keyboard shortcuts

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