Documentation ¶
Index ¶
Constants ¶
View Source
const (
FlagWalletRepo = "wallet-repo"
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type FsRepo ¶
type FsRepo struct {
// contains filtered or unexported fields
}
func (*FsRepo) APIEndpoint ¶
func (*FsRepo) Lock ¶
func (fsr *FsRepo) Lock() (LockedRepo, error)
func (*FsRepo) LockRO ¶
func (fsr *FsRepo) LockRO() (LockedRepo, error)
type LockedRepo ¶
type LockedRepo interface { // Close closes repo and removes lock. Close() error // CloseRO closes repo CloseRO() error // Datastore Returns datastore defined in this repo. // The supplied context must only be used to initialize the datastore. // The implementation should not retain the context for usage throughout // the lifecycle. Datastore(ctx context.Context) (datastore.Batching, error) // Path returns absolute path of the repo Path() string // Readonly returns true if the repo is readonly Readonly() bool // SetAPIEndpoint sets the endpoint of the current API SetAPIEndpoint(string) error SetAPIToken([]byte) error }
Click to show internal directories.
Click to hide internal directories.