node

package
v0.0.0-...-f6ce140 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 74 Imported by: 0

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