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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFromSpec

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

ConfigFromSpec generates config.toml file from node spec

Types

type API

type API struct {
	Enabled bool   `yaml:"enabled"`
	Address string `yaml:"address"`
}

type Base

type Base struct {
	Role     string   `yaml:"role"`
	DataDir  string   `yaml:"data_dir"`
	Waypoint Waypoint `yaml:"waypoint"`
}

type Config

type Config struct {
	Base              Base              `yaml:"base"`
	Execution         Execution         `yaml:"execution"`
	FullNodeNetworks  []Network         `yaml:"full_node_networks,omitempty"`
	API               API               `yaml:"api"`
	InspectionService InspectionService `yaml:"inspection_service"`
}

type Execution

type Execution struct {
	GenesisFileLocation string `yaml:"genesis_file_location"`
}

type Identity

type Identity struct {
	Type   string `yaml:"type"`
	Key    string `yaml:"key"`
	PeerId string `yaml:"peer_id"`
}

type InspectionService added in v0.2.0

type InspectionService struct {
	Port uint `yaml:"port"`
}

type Network

type Network struct {
	NetworkId       string          `yaml:"network_id"`
	DiscoveryMethod string          `yaml:"discovery_method"`
	ListenAddress   string          `yaml:"listen_address"`
	Identity        Identity        `yaml:"identity,omitempty"`
	Seeds           map[string]Peer `yaml:"seeds,omitempty"`
}

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)

func (*NodeReconciler) SetupWithManager

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

type Peer

type Peer struct {
	Addresses []string `yaml:"addresses"`
	Role      string   `yaml:"role"`
}

type Waypoint

type Waypoint struct {
	FromConfig string `yaml:"from_config,omitempty"`
	FromFile   string `yaml:"from_file,omitempty"`
}

Jump to

Keyboard shortcuts

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