deps

package
v1.27.0-rc3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0, MIT Imports: 45 Imported by: 0

Documentation

Overview

Package deps provides the dependencies for the curio node.

Index

Constants

View Source
const (
	FlagRepoPath = "repo-path"
)

Variables

This section is empty.

Functions

func CreateMinerConfig

func CreateMinerConfig(ctx context.Context, full v1api.FullNode, db *harmonydb.DB, miners []string, info string) error

func GetConfig

func GetConfig(cctx *cli.Context, db *harmonydb.DB) (*config.CurioConfig, error)

func GetDefaultConfig

func GetDefaultConfig(comment bool) (string, error)

func LoadConfigWithUpgrades

func LoadConfigWithUpgrades(text string, curioConfigWithDefaults *config.CurioConfig) (toml.MetaData, error)

func MakeDB

func MakeDB(cctx *cli.Context) (*harmonydb.DB, error)

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
}

func GetDeps

func GetDeps(ctx context.Context, cctx *cli.Context) (*Deps, error)

func GetDepsCLI

func GetDepsCLI(ctx context.Context, cctx *cli.Context) (*Deps, error)

func (*Deps) PopulateRemainingDeps

func (deps *Deps) PopulateRemainingDeps(ctx context.Context, cctx *cli.Context, makeRepo bool) error

type JwtPayload

type JwtPayload struct {
	Allow []auth.Permission
}

Jump to

Keyboard shortcuts

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