controllers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//go:embed copy_config_toml.sh
	CopyConfigToml string
)

Functions

func ConfigFromSpec

func ConfigFromSpec(node *filecoinv1alpha1.Node) (config string, err error)

ConfigFromSpec generates config.toml file from node spec

Types

type API

type API struct {
	ListenAddress  string
	RequestTimeout string
}

type Backup

type Backup struct {
	DisableMetadataLog bool
}

type Chainstore added in v0.2.0

type Chainstore struct {
	EnableSplitstore bool
}

type Client

type Client struct {
	UseIpfs             bool
	IpfsOnlineMode      bool
	IpfsMAddr           string
	IpfsUseForRetrieval bool
}

type Config

type Config struct {
	API        *API `toml:"API,omitempty"`
	Backup     Backup
	LibP2P     LibP2P `toml:"Libp2p"`
	Client     *Client
	Chainstore Chainstore
}

type LibP2P

type LibP2P struct {
	ListenAddresses []string
}

type NodeReconciler

type NodeReconciler struct {
	shared.Reconciler
}

NodeReconciler reconciles a Node object

func (*NodeReconciler) Reconcile

func (r *NodeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)

Reconcile reconciles Filecoin network node

func (*NodeReconciler) SetupWithManager

func (r *NodeReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager adds reconciler to the manager

Jump to

Keyboard shortcuts

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