| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Network.IPFS.Git.RemoteHelper.Options
Synopsis
- data Options = Options {}
 - data RemoteUrl = RemoteUrl {}
 - data IpfsPath
 - type IpfsOptions = IpfsOptions' I
 - data IpfsOptions' f = IpfsOptions {
- ipfsApiUrl :: HKD f BaseUrl
 - ipfsMaxConns :: HKD f Int
 - ipfsMaxBlockSize :: HKD f Int
 
 - defaultIpfsOptions :: IpfsOptions
 - parseOptions :: Parser Options
 - remoteUrl :: ReadM RemoteUrl
 - getIpfsOptions :: HasCallStack => Options -> IO IpfsOptions
 
Documentation
Constructors
| Options | |
Fields  | |
Constructors
| RemoteUrl | |
Fields  | |
Constructors
| IpfsPathIpfs CID | |
| IpfsPathIpns Text | 
type IpfsOptions = IpfsOptions' I Source #
data IpfsOptions' f Source #
Constructors
| IpfsOptions | |
Fields 
  | |
Instances
getIpfsOptions :: HasCallStack => Options -> IO IpfsOptions Source #
Determine the IpfsOptions.
This must happen after parseOptions in order to support per-remote
 settings. The GIT_DIR environment variable must be set and point to a valid
 git repository (when the remote helper is invoked by git, this is the current
 repository).
IpfsOptions are configured using git-config(2). The precedence rules
 specified there apply. However, $XDG_CONFIG_HOMEgitconfig and
 $(prefix)etcgitconfig (i.e. --system) are not yet supported.
The available configuration keys are:
ipfs.apiurl
ipfs.maxconnections
ipfs.maxblocksize
ipfsApiUrl may be overridden per-remote using the key remote.<remote
 name>.ipfsapiurl (e.g. remote.origin.ipfsapiurl). If the environment
 variable IPFS_API_URL, it will be used instead of any git-config
 settings.