Documentation
¶
Index ¶
- func DefaultConfig(service string) string
- func Indent(n int, s string) string
- func IndentLine(s string) string
- func NewCtl() *cobra.Command
- func NewDaemon() *cobra.Command
- func NewWorker() *cobra.Command
- func ParseConfig(configPath string, data any, envPrefix string, subKey string) (*viper.Viper, error)
- func ParseFilesToObjects(items []files.Item) (map[string][]v1.UnstructuredObject, error)
- func Register(cmd *cobra.Command, name string, short string, opts ...any) *cobra.Command
- type DaemonConfig
- type DaemonOption
- type Example
- type WorkerConfig
- type WorkerItemConfig
- type WorkerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
func IndentLine ¶
func ParseConfig ¶
func ParseFilesToObjects ¶
Types ¶
type DaemonConfig ¶
type DaemonConfig struct { Server server.Config `json:"server"` Logger wslog.Config `json:"logger,omitempty"` Database database.Config `json:"database,omitempty"` Queue queue.Config `json:"queue,omitempty"` Livelog livelog.Config `json:"livelog"` }
func (*DaemonConfig) Validate ¶
func (c *DaemonConfig) Validate() error
type DaemonOption ¶
type WorkerConfig ¶
type WorkerConfig struct { Logger wslog.Config `json:"logger,omitempty"` Workers []WorkerItemConfig `json:"workers,omitempty"` }
func (*WorkerConfig) Validate ¶
func (c *WorkerConfig) Validate() error
type WorkerItemConfig ¶
type WorkerOption ¶
Click to show internal directories.
Click to hide internal directories.