Versions in this module Expand all Collapse all v0 v0.2.3 Feb 27, 2015 v0.2.2 Feb 27, 2015 Changes in this version + const CheckError + const CheckIgnore + const CheckWarn + const CurrentVersionNumber + const DefaultConfigFile + const DefaultDataStoreDirectory + const DefaultPathRoot + const EnvDir + var DefaultBootstrapAddresses = []string + var DefaultSNRServers = []string + var ErrInvalidPeerAddr = errors.New("invalid peer address") + var ErrUnknownAutoUpdateSetting = errors.New("unknown value for AutoUpdate") + func BootstrapPeerStrings(bps []BootstrapPeer) []string + func DataStorePath(configroot string) (string, error) + func Filename(configroot string) (string, error) + func HumanOutput(value interface{}) ([]byte, error) + func Marshal(value interface{}) ([]byte, error) + func Path(configroot, extension string) (string, error) + func PathRoot() (string, error) + func ToMap(conf *Config) (map[string]interface{}, error) + type Addresses struct + API string + Gateway string + Swarm []string + type AutoUpdateSetting int + const AutoUpdateMajor + const AutoUpdateMinor + const AutoUpdateNever + const AutoUpdatePatch + func (s *AutoUpdateSetting) UnmarshalJSON(in []byte) error + func (s AutoUpdateSetting) MarshalJSON() ([]byte, error) + func (s AutoUpdateSetting) String() string + type BootstrapPeer iaddr.IPFSAddr + func DefaultBootstrapPeers() ([]BootstrapPeer, error) + func ParseBootstrapPeer(addr string) (BootstrapPeer, error) + func ParseBootstrapPeers(addrs []string) ([]BootstrapPeer, error) + type Config struct + Addresses Addresses + Bootstrap []string + Datastore Datastore + Gateway Gateway + Identity Identity + Log Log + Mounts Mounts + SupernodeRouting SupernodeClientConfig + Tour Tour + Version Version + func FromMap(v map[string]interface{}) (*Config, error) + func Init(out io.Writer, nBitsForKeypair int) (*Config, error) + func (c *Config) BootstrapPeers() ([]BootstrapPeer, error) + func (c *Config) SetBootstrapPeers(bps []BootstrapPeer) + type Datastore struct + Path string + Type string + type Gateway struct + RootRedirect string + Writable bool + type Identity struct + PeerID string + PrivKey string + func (i *Identity) DecodePrivateKey(passphrase string) (ic.PrivKey, error) + type Log struct + MaxAgeDays int + MaxBackups int + MaxSizeMB int + type Mounts struct + IPFS string + IPNS string + type SupernodeClientConfig struct + Servers []string + func (gcr *SupernodeClientConfig) ServerIPFSAddrs() ([]ipfsaddr.IPFSAddr, error) + type Tour struct + Last string + type Version struct + AutoUpdate AutoUpdateSetting + Check string + CheckDate time.Time + CheckPeriod string + Current string + func VersionDefaultValue() Version + func (v *Version) ShouldCheckForUpdate() bool