repo

package
v0.2.2-buildfails Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2015 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInitialized

func IsInitialized(path string) bool

IsInitialized returns true if the path is home to an initialized IPFS repository.

Types

type Mock

type Mock struct {
	C config.Config
	D ds.ThreadSafeDatastore
}

Mock is not thread-safe

func (*Mock) Close

func (m *Mock) Close() error

func (*Mock) Config

func (m *Mock) Config() *config.Config

func (*Mock) Datastore

func (m *Mock) Datastore() ds.ThreadSafeDatastore

func (*Mock) GetConfigKey

func (m *Mock) GetConfigKey(key string) (interface{}, error)

func (*Mock) SetConfig

func (m *Mock) SetConfig(updated *config.Config) error

func (*Mock) SetConfigKey

func (m *Mock) SetConfigKey(key string, value interface{}) error

type Repo

type Repo interface {
	Config() *config.Config
	SetConfig(*config.Config) error

	SetConfigKey(key string, value interface{}) error
	GetConfigKey(key string) (interface{}, error)

	Datastore() datastore.ThreadSafeDatastore

	io.Closer
}

Directories

Path Synopsis
package config implements the ipfs config file datastructures and utilities.
package config implements the ipfs config file datastructures and utilities.
package fsrepo TODO explain the package roadmap...
package fsrepo TODO explain the package roadmap...

Jump to

Keyboard shortcuts

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