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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//go:embed copy_api_credentials.sh
	CopyAPICredentials string
)

Functions

func ConfigFromSpec added in v0.2.0

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

ConfigFromSpec generates config.toml file from node spec

func SecretsFromSpec added in v0.2.0

func SecretsFromSpec(node *chainlinkv1alpha1.Node, homeDir string, client client.Client) (config string, err error)

SecretsFromSpec generates config.toml file from node spec

Types

type Config added in v0.2.0

type Config struct {
	RootDir   string
	P2P       P2P
	Log       Log
	WebServer WebServer
	// WebServerTLS WebServerTLS `toml:"WebServer.TLS,omitempty"`
	EVM   []EVM
	Nodes []Node `toml:"EVM.Nodes"`
}

type Database added in v0.2.0

type Database struct {
	URL string
}

type EVM added in v0.2.0

type EVM struct {
	ChainID             string
	LinkContractAddress string
	Nodes               []Node
}

type Log added in v0.2.0

type Log struct {
	Level string
}

type Node added in v0.2.0

type Node struct {
	Name    string
	WSURL   string
	HTTPURL string
}

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

type P2P added in v0.2.0

type P2P struct {
	V1 P2PV1
}

type P2PV1 added in v0.2.0

type P2PV1 struct {
	ListenPort uint
}

type Password added in v0.2.0

type Password struct {
	Keystore string
}

type SecretsConfig added in v0.2.0

type SecretsConfig struct {
	Database Database
	Password Password
}

type WebServer added in v0.2.0

type WebServer struct {
	AllowOrigins  string
	SecureCookies bool
	HTTPPort      uint
	TLS           WebServerTLS
}

type WebServerTLS added in v0.2.0

type WebServerTLS struct {
	HTTPSPort uint
	CertPath  string
	KeyPath   string
}

Jump to

Keyboard shortcuts

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