Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Description ¶
func RegisterLoggingConfigHandler ¶ added in v0.12.0
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 ¶ added in v0.12.0
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 github.com/open-component-model/ocm/pkg/cobrautils/logging.LoggingConfiguration, instead.
type LoggingHandler ¶ added in v0.12.0
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.