Documentation
¶
Index ¶
- Variables
- func InitAPIDeps(logger log.Logger, cfg config.Config, pgClient *pgc.Client, ...) (*api.Deps, map[string]notification.Notifier, error)
- func New() *cobra.Command
- func StartServer(ctx context.Context, cfg config.Config) error
- func UploadRules(client sirenv1beta1.SirenServiceClient, yamlFile []byte) ([]uint64, error)
- func UploadTemplate(client sirenv1beta1.SirenServiceClient, yamlFile []byte) (uint64, error)
- type ClientConfig
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 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"`
}
Click to show internal directories.
Click to hide internal directories.