deps

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0, MIT Imports: 42 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(ctx context.Context, layers []string, 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
	Bstore     curiochain.CurioBlockstore
	Verif      storiface.Verifier
	As         *multictladdr.MultiAddressSelector
	Maddrs     map[dtypes.MinerAddress]bool
	ProofTypes map[abi.RegisteredSealProof]bool
	Stor       *paths.Remote
	Si         paths.SectorIndex
	LocalStore *paths.Local
	LocalPaths *paths.BasicLocalStorage
	ListenAddr string
	Name       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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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