node

package
v0.0.0-...-5adb3e2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 74 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfigMissing   = errors.New("falcon config file path not specified")
	ErrRcPinnerMissing = errors.New("falcon node is created without rc pinner")
)
View Source
var (
	ErrBadContent = errors.New("bad content")
)
View Source
var (
	ErrCertNotFound = errors.New("certificate not found")
)
View Source
var (
	ErrSizeCapExceeded = errors.New("body size cap exceeded")
)

Functions

func ConfigOption

func ConfigOption() cmds.Option

func GatewayOption

func GatewayOption(paths ...string) corehttp.ServeOption

***********************************************************//

Copied from github.com/ipfs/kubo/core/corehttp/gateway.go
with code format. No logic change is made.

***********************************************************//

func GetArgsFromCtx

func GetArgsFromCtx(ctx context.Context) *http.Args

func GetNoAuthFromCtx

func GetNoAuthFromCtx(ctx context.Context) bool

func GetNoReportFromCtx

func GetNoReportFromCtx(ctx context.Context) bool

func HostnameOption

func HostnameOption() corehttp.ServeOption

func InitFalconAfterNodeConstruction

func InitFalconAfterNodeConstruction(
	req *cmds.Request,
	cctx *oldcmds.Context,
	nd *core.IpfsNode,
) (<-chan error, error)

InitFalconAfterNodeConstruction setups falcon initialization work after core.IpfsNode is constructed.

func InitFalconBeforeNodeConstruction

func InitFalconBeforeNodeConstruction(
	req *cmds.Request,
	rpath string,
	rpo repo.Repo,
) error

InitFalconBeforeNodeConstruction setups falcon preparation work before core.IpfsNode is constructed.

func VersionOption

func VersionOption() corehttp.ServeOption

func WithArgs

func WithArgs(ctx context.Context, args *http.Args) context.Context

func WithNoAuth

func WithNoAuth(ctx context.Context) context.Context

func WithNoReport

func WithNoReport(ctx context.Context) context.Context

Types

type Cert

type Cert struct {
	PrivateKey  string    `json:"priv_key"`
	Certificate string    `json:"cert"`
	At          time.Time `json:"time"`
}

type RegisterResult

type RegisterResult struct {
	Status            string `json:"status"`
	Cert              *Cert  `json:"certificate,omitempty"`
	RequireCertUpdate bool   `json:"require_cert_update"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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