Documentation ¶
Overview ¶
Package deps provides the dependencies for the curio node.
Index ¶
- Constants
- func CreateMinerConfig(ctx context.Context, full v1api.FullNode, db *harmonydb.DB, miners []string, ...) error
- func GetConfig(cctx *cli.Context, db *harmonydb.DB) (*config.CurioConfig, error)
- func GetDefaultConfig(comment bool) (string, error)
- func LoadConfigWithUpgrades(text string, curioConfigWithDefaults *config.CurioConfig) (toml.MetaData, error)
- func MakeDB(cctx *cli.Context) (*harmonydb.DB, error)
- func StorageAuth(apiKey string) (sealer.StorageAuth, error)
- type Deps
- type JwtPayload
Constants ¶
View Source
const (
FlagRepoPath = "repo-path"
)
Variables ¶
This section is empty.
Functions ¶
func CreateMinerConfig ¶
func GetDefaultConfig ¶
func LoadConfigWithUpgrades ¶
func StorageAuth ¶
func StorageAuth(apiKey string) (sealer.StorageAuth, error)
Types ¶
type Deps ¶
type Deps struct { Layers []string Cfg *config.CurioConfig // values DB *harmonydb.DB // has itest capability Full api.FullNode Verif storiface.Verifier LW *sealer.LocalWorker As *multictladdr.MultiAddressSelector Maddrs map[dtypes.MinerAddress]bool ProofTypes map[abi.RegisteredSealProof]bool Stor *paths.Remote Si *paths.DBIndex LocalStore *paths.Local LocalPaths *paths.BasicLocalStorage ListenAddr string }
type JwtPayload ¶
type JwtPayload struct {
Allow []auth.Permission
}
Click to show internal directories.
Click to hide internal directories.