package cmd

import "codeberg.org/eris/eris-go/cmd"

Index

Functions

func AllowFromString

func AllowFromString(s string) (allow eris.AllowOps)

func AllowOps

func AllowOps(u *url.URL) (allow eris.AllowOps)

func CollectCaps

func CollectCaps(args []string) (caps []eris.ReadCapability, err error)

func CopyCBOR

func CopyCBOR(ctx context.Context, r io.Reader, args []string) (err error)

func Dumpfs

func Dumpfs(ctx context.Context, args []string) (err error)

func Get

func Get(ctx context.Context, w io.Writer, args []string) (err error)

func Mkfs

func Mkfs(ctx context.Context, w io.Writer, r io.Reader, args []string) (err error)

func OpenSimpleStoreByUrl

func OpenSimpleStoreByUrl(u *url.URL) (store eris.Store, err error)

If the URL schema is not supported then (nil, nil) is returned.

func ParseFlagsAndOpenStore

func ParseFlagsAndOpenStore(ctx context.Context, flagSet *flag.FlagSet, args []string) (store eris.Store, ep *coap.Endpoint, err error)

func PostServiceChannel

func PostServiceChannel(store eris.Store, name string) error

func Put

func Put(ctx context.Context, w io.Writer, r io.Reader, args []string) (err error)

func Serve

func Serve(ctx context.Context, args []string) (err error)

func ServeFuse

func ServeFuse(ctx context.Context, store eris.Store, mountpoint string) error

func StoreMerge

func StoreMerge(ctx context.Context, args []string) (err error)

func StoreVerify

func StoreVerify(ctx context.Context, args []string) (err error)

Types

type ErisFile

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

func (ErisFile) Attr

func (file ErisFile) Attr(ctx context.Context, a *fuse.Attr) error

func (ErisFile) Read

func (file ErisFile) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) (err error)

Source Files

copy_cbor.go dumpfs.go fuse.go get.go legacy.go mkfs.go parse_caps.go put.go server.go storemerge.go stores.go stores_legacy.go storeverify.go

Version
v0.0.0-20250117134628-64f8be33f6fe (latest)
Published
Jan 17, 2025
Platform
linux/amd64
Imports
28 packages
Last checked
1 day ago

Tools for package owners.