Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Description ¶
func RegisterLoggingConfigHandler ¶
func RegisterLoggingConfigHandler(h LoggingHandler)
RegisterLoggingConfigHandler is used to register a configuration handler for logging configration passed by the OCM library. If standard mandelsoft logging is used, it can be adapted by adding the ananymous import of the ppi/logging package.
Types ¶
type LoggingConfiguration ¶
type LoggingConfiguration struct { LogFileName string `json:"logFileName"` LogConfig json.RawMessage `json:"logConfig"` Json bool `json:"json,omitempty"` }
LoggingConfiguration describes logging configuration for a slave executables like plugins. If mandelsoft logging is used please use ocm.software/ocm/api/utils/cobrautils/logging.LoggingConfiguration, instead.
type LoggingHandler ¶
type PluginCommand ¶
type PluginCommand struct {
// contains filtered or unexported fields
}
func NewPluginCommand ¶
func NewPluginCommand(p ppi.Plugin) *PluginCommand
func (*PluginCommand) Command ¶
func (p *PluginCommand) Command() *cobra.Command
func (*PluginCommand) Execute ¶
func (p *PluginCommand) Execute(args []string) error
Click to show internal directories.
Click to hide internal directories.