cli

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 53 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClientConfigNotFound = errors.New(heredoc.Doc(`
		Siren client config not found.
		Run "siren config init" to initialize a new client config or
		Run "siren help environment" for more information.
	`))
)

Functions

func InitDeps added in v0.5.6

func New added in v0.5.0

func New() *cobra.Command

func StartNotificationDLQHandlerWorker added in v0.5.3

func StartNotificationDLQHandlerWorker(ctx context.Context, cfg config.Config, cancelWorkerChan chan struct{}) error

func StartNotificationHandlerWorker added in v0.5.3

func StartNotificationHandlerWorker(ctx context.Context, cfg config.Config, cancelWorkerChan chan struct{}) error

func StartServer added in v0.5.0

func StartServer(ctx context.Context, cfg config.Config) error

func UploadRules added in v0.5.0

func UploadRules(client sirenv1beta1.SirenServiceClient, yamlFile []byte) ([]uint64, error)

func UploadTemplate added in v0.5.0

func UploadTemplate(client sirenv1beta1.SirenServiceClient, yamlFile []byte) (uint64, error)

Types

type ClientConfig added in v0.5.0

type ClientConfig struct {
	Host string `yaml:"host" cmdx:"host" default:"localhost:8080"`
}

Jump to

Keyboard shortcuts

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