Documentation
¶
Index ¶
- func ErrSection(err error) fmt.Stringer
- func Log(ctx context.Context, operation Operation, status Status, obj client.Object, ...)
- func Section(name string, args ...any) fmt.Stringer
- func WithLogger(ctx context.Context, logger Logger) context.Context
- func WithSink(ctx context.Context, sink Sink) context.Context
- type Logger
- type LoggerFunc
- type Operation
- type Sink
- type SinkFunc
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrSection ¶
Types ¶
type LoggerFunc ¶
type LoggerFunc func(context.Context, Operation, Status, client.Object, *color.Color, ...fmt.Stringer)
func NewLogger ¶
func NewLogger(test, scenario, step string) LoggerFunc
type Operation ¶
type Operation string
const ( Apply Operation = "APPLY" Assert Operation = "ASSERT" Catch Operation = "CATCH" Cleanup Operation = "CLEANUP" Command Operation = "CMD" Create Operation = "CREATE" Delete Operation = "DELETE" Error Operation = "ERROR" Finally Operation = "FINALLY" Get Operation = "GET" Internal Operation = "INTERNAL" Patch Operation = "PATCH" Script Operation = "SCRIPT" Sleep Operation = "SLEEP" Stderr Operation = "STDERR" Stdout Operation = "STDOUT" Try Operation = "TRY" Update Operation = "UPDATE" )
Click to show internal directories.
Click to hide internal directories.