controllers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFromSpec

func ConfigFromSpec(node *stacksv1alpha1.Node, client client.Client) (config string, err error)

ConfigFromSpec generates config.toml file from node spec

Types

type BurnChain

type BurnChain struct {
	Chain    string `toml:"chain"`
	Mode     string `toml:"mode"`
	PeerHost string `toml:"peer_host"`
	Username string `toml:"username"`
	Password string `toml:"password"`
	RPCPort  uint   `toml:"rpc_port"`
	PeerPort uint   `toml:"peer_port"`
}

type Config

type Config struct {
	Node      Node      `toml:"node"`
	BurnChain BurnChain `toml:"burnchain"`
}

type Node

type Node struct {
	WorkingDir      string `toml:"working_dir"`
	RPCBind         string `toml:"rpc_bind"`
	P2PBind         string `toml:"p2p_bind"`
	Seed            string `toml:"seed,omitempty"`
	LocalPeerSeed   string `toml:"local_peer_seed"`
	Miner           bool   `toml:"miner"`
	MineMicroblocks bool   `toml:"mine_microblocks,omitempty"`
}

type NodeReconciler

type NodeReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

NodeReconciler reconciles a Node object

func (*NodeReconciler) Reconcile

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

func (*NodeReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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