blobcachecmd

package
v0.0.0-...-575026b Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: GPL-3.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

Main is the main function for the blobcache CLI. Usage is:

func main() {
    blobcachecmd.Main()
}

func Root

func Root() star.Command

Root returns the root command for the blobcache CLI.

func RunTest

func RunTest(t testing.TB, env map[string]string, calledAs string, args []string, stdin *bufio.Reader, stdout *bufio.Writer, stderr *bufio.Writer)

Types

type Service

type Service struct {
	APIAddr  string
	ExecPath string
}

func (*Service) Abort

func (s *Service) Abort(ctx context.Context, h blobcache.Handle) error

TxAPI

func (s *Service) AllowLink(ctx context.Context, h blobcache.Handle, subvol blobcache.Handle) error

func (*Service) Await

func (s *Service) Await(ctx context.Context, cond blobcache.Conditions) error

func (*Service) BeginTx

func (s *Service) BeginTx(ctx context.Context, volh blobcache.Handle, txp blobcache.TxParams) (*blobcache.Handle, error)

func (*Service) CloneVolume

func (s *Service) CloneVolume(ctx context.Context, caller *blobcache.PeerID, volh blobcache.Handle) (*blobcache.Handle, error)

func (*Service) Commit

func (s *Service) Commit(ctx context.Context, h blobcache.Handle) error

func (*Service) Copy

func (s *Service) Copy(ctx context.Context, h blobcache.Handle, cids []blobcache.CID, srcTxns []blobcache.Handle, success []bool) error

func (*Service) CreateVolume

func (s *Service) CreateVolume(ctx context.Context, host *blobcache.Endpoint, vspec blobcache.VolumeSpec) (*blobcache.Handle, error)

VolumeAPI

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, h blobcache.Handle, cids []blobcache.CID) error

func (*Service) Drop

func (s *Service) Drop(ctx context.Context, h blobcache.Handle) error

HandleAPI

func (*Service) Endpoint

func (s *Service) Endpoint(ctx context.Context) (ep blobcache.Endpoint, _ error)

func (*Service) Exists

func (s *Service) Exists(ctx context.Context, h blobcache.Handle, cids []blobcache.CID, dst []bool) error

func (*Service) Get

func (s *Service) Get(ctx context.Context, h blobcache.Handle, cid blobcache.CID, buf []byte, opts blobcache.GetOpts) (int, error)

func (*Service) InspectHandle

func (s *Service) InspectHandle(ctx context.Context, h blobcache.Handle) (*blobcache.HandleInfo, error)

func (*Service) InspectTx

func (s *Service) InspectTx(ctx context.Context, h blobcache.Handle) (*blobcache.TxInfo, error)

func (*Service) InspectVolume

func (s *Service) InspectVolume(ctx context.Context, h blobcache.Handle) (*blobcache.VolumeInfo, error)

func (*Service) IsVisited

func (s *Service) IsVisited(ctx context.Context, h blobcache.Handle, cids []blobcache.CID, yesVisited []bool) error

func (*Service) KeepAlive

func (s *Service) KeepAlive(ctx context.Context, hs []blobcache.Handle) error

func (*Service) Load

func (s *Service) Load(ctx context.Context, h blobcache.Handle, dst *[]byte) error

func (*Service) OpenFiat

func (s *Service) OpenFiat(ctx context.Context, x blobcache.OID, mask blobcache.ActionSet) (*blobcache.Handle, error)

Backward-compat shim to satisfy any stale interface checks

func (*Service) OpenFrom

func (*Service) Post

func (s *Service) Post(ctx context.Context, h blobcache.Handle, data []byte, opts blobcache.PostOpts) (blobcache.CID, error)

func (*Service) Save

func (s *Service) Save(ctx context.Context, h blobcache.Handle, src []byte) error

func (*Service) Share

func (*Service) Visit

func (s *Service) Visit(ctx context.Context, h blobcache.Handle, cids []blobcache.CID) error

Jump to

Keyboard shortcuts

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