cmd

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(vsn string)

Execute is entry point for cobra cli application

func WithService

func WithService(
	f func(cmd *cobra.Command, args []string, api Service) error,
) func(cmd *cobra.Command, args []string) error

Types

type Service

type Service interface {
	CheckHealthRegion(ctx context.Context, interval time.Duration) (*types.StatusRegion, error)
	CheckHealthNode(ctx context.Context, name string, interval time.Duration) (*types.StatusNode, error)
	ShowRegion(ctx context.Context) (*types.Region, error)
	ShowNode(ctx context.Context, name string, interval time.Duration) (*types.StatusNode, error)
}

Jump to

Keyboard shortcuts

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