cli

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Copyright 2022 Nethermind

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	NetworkMainnet = "mainnet"
	NetworkSepolia = "sepolia"
	NetworkGnosis  = "gnosis"
	NetworkChiado  = "chiado"
	NetworkHolesky = "holesky"
	NetworkCustom  = "custom"

	NodeTypeFullNode  = "full-node"
	NodeTypeExecution = "execution"
	NodeTypeConsensus = "consensus"
	NodeTypeValidator = "validator"

	Randomize = "randomize"

	SourceTypeExisting = "existing"
	SourceTypeCreate   = "create"
	SourceTypeSkip     = "skip"
	SourceTypeRandom   = "random"
)

Variables

View Source
var ErrCancelled = errors.New("cancelled by the user")
View Source
var ErrCustomFlagsUsedWithoutCustomNetwork = errors.New("custom flags used without --network custom")
View Source
var ErrInvalidNumberOfArguments = errors.New("invalid number of arguments")
View Source
var ErrMissingDependencies = errors.New("missing dependencies")

Functions

func CleanMonitoring added in v1.6.0

func CleanMonitoring(monitoringMgr MonitoringManager) error

CleanMonitoring stops and uninstalls the Monitoring Stack

func CleanSubCmd added in v1.6.0

func CleanSubCmd(mgr MonitoringManager) *cobra.Command

func CliCmd added in v0.5.0

func ClientsCmd added in v0.5.0

func ClientsCmd() *cobra.Command

func ConsensusSubCmd added in v1.0.0

func ConsensusSubCmd(sedgeAction actions.SedgeActions) *cobra.Command

func DefaultSubCmd added in v1.6.0

func DefaultSubCmd(mgr MonitoringManager, additionalServices []monitoring.ServiceAPI) *cobra.Command

func DependenciesCommand added in v1.0.0

func DependenciesCommand(depsMgr dependencies.DependenciesManager) *cobra.Command

func DownCmd added in v0.5.0

func ExecutionSubCmd added in v1.0.0

func ExecutionSubCmd(sedgeAction actions.SedgeActions) *cobra.Command

func FullNodeSubCmd added in v1.0.0

func FullNodeSubCmd(sedgeAction actions.SedgeActions) *cobra.Command

func GenerateCmd added in v1.0.0

func GenerateCmd(sedgeAction actions.SedgeActions) *cobra.Command

func ImportKeysCmd added in v1.0.0

func ImportKeysCmd(sedgeActions actions.SedgeActions, depsMgr dependencies.DependenciesManager) *cobra.Command

func InitMonitoring added in v1.6.0

func InitMonitoring(install, run bool, monitoringMgr MonitoringManager, additionalServices []monitoring.ServiceAPI) error

Init initializes the Monitoring Stack. If install is true, it will install the Monitoring Stack if it is not installed. If run is true, it will run the Monitoring Stack if it is not running.

func InitSubCmd added in v1.6.0

func InitSubCmd(mgr MonitoringManager) *cobra.Command

func KeysCmd added in v0.5.0

func KeysCmd(cmdRunner commands.CommandRunner, p ui.Prompter) *cobra.Command

func LidoStatusCmd added in v1.5.0

func LidoStatusCmd() *cobra.Command

func LidoSubCmd added in v1.6.0

func LidoSubCmd(mgr MonitoringManager, additionalServices []monitoring.ServiceAPI) *cobra.Command

func LogsCmd added in v0.5.0

func LogsCmd(composeManager compose.ComposeManager, cmdRunner commands.CommandRunner, sedgeActions actions.SedgeActions, depsMgr dependencies.DependenciesManager) *cobra.Command

func MevBoostSubCmd added in v1.0.0

func MevBoostSubCmd(sedgeAction actions.SedgeActions) *cobra.Command

func MonitoringCmd added in v1.6.0

func MonitoringCmd(mgr MonitoringManager) *cobra.Command

func NetworksCmd added in v0.5.0

func NetworksCmd() *cobra.Command

func OpFullNodeSubCmd added in v1.6.0

func OpFullNodeSubCmd(sedgeAction actions.SedgeActions) *cobra.Command

func RootCmd added in v0.5.0

func RootCmd() *cobra.Command

func RunCmd added in v1.0.0

func RunCmd(sedgeActions actions.SedgeActions, depsMgr dependencies.DependenciesManager) *cobra.Command

func ShowCmd added in v1.2.0

func ShowCmd(cmdRunner commands.CommandRunner, sedgeActions actions.SedgeActions, depsMgr dependencies.DependenciesManager) *cobra.Command

func SlashingExportCmd added in v1.0.0

func SlashingExportCmd(sedgeActions actions.SedgeActions, depsMgr dependencies.DependenciesManager) *cobra.Command

func SlashingImportCmd added in v1.0.0

func SlashingImportCmd(sedgeActions actions.SedgeActions, depsMgr dependencies.DependenciesManager) *cobra.Command

func ValidatorSubCmd added in v1.0.0

func ValidatorSubCmd(sedgeAction actions.SedgeActions) *cobra.Command

func VersionCmd added in v0.5.0

func VersionCmd() *cobra.Command

Types

type CliCmdOptions added in v1.0.0

type CliCmdOptions struct {
	// contains filtered or unexported fields
}

type CustomFlags added in v1.0.0

type CustomFlags struct {
	// contains filtered or unexported fields
}

type GenCmdFlags added in v1.0.0

type GenCmdFlags struct {
	CustomFlags
	OptimismFlags
	// contains filtered or unexported fields
}

GenCmdFlags is a struct that holds the flags of the generate command

type KeysCmdFlags added in v0.5.0

type KeysCmdFlags struct {
	// contains filtered or unexported fields
}

type MonitoringManager added in v1.6.0

type MonitoringManager interface {
	// Init initializes the monitoring stack. Assumes that the stack is already installed.
	Init() error

	// InstallStack installs the monitoring stack.
	InstallStack() error

	// AddTarget adds a new target to all services in the monitoring stack.
	// It also connects the target to the docker network of the monitoring stack if it isn't already connected.
	// The labels are added to the service's metrics.
	AddTarget(target types.MonitoringTarget, labels map[string]string, dockerNetwork string) error

	// RemoveTarget removes a target from the monitoring stack.
	RemoveTarget(endpoint string) error

	// Status returns the status of the monitoring stack.
	Status() (common.Status, error)

	// InstallationStatus returns the installation status of the monitoring stack.
	InstallationStatus() (common.Status, error)

	// Run runs the monitoring stack.
	Run() error

	// Stop stops the monitoring stack.
	Stop() error

	// Cleanup removes the monitoring stack.
	Cleanup() error

	// ServiceEndpoints returns the endpoints of the monitoring services.
	ServiceEndpoints() map[string]string

	// AddService adds a new service to the monitoring stack.
	AddService(service monitoring.ServiceAPI) error
}

type OptimismFlags added in v1.6.0

type OptimismFlags struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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