cli

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 50 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

func InitDeps(
	ctx context.Context,
	logger saltlog.Logger,
	cfg config.Config,
	queue notification.Queuer,
	withProviderPlugin bool,
) (*api.Deps, *pgc.Client, map[string]notification.Notifier, *providers.PluginManager, error)

func New

func New() *cobra.Command

func StartNotificationDLQHandlerWorker

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

func StartNotificationHandlerWorker

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

func StartServer

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

func UploadRules

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

func UploadTemplate

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

TODO might be broken

Types

type ClientConfig

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