cli

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 48 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 InitAPIDeps added in v0.5.0

func InitAPIDeps(
	logger log.Logger,
	cfg config.Config,
	pgClient *postgres.Client,
	encryptor *secret.Crypto,
	queue notification.Queuer,
) (*api.Deps, map[string]notification.Notifier, error)

func New added in v0.5.0

func New() *cobra.Command

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