Documentation ¶
Index ¶
- func App(ctx context.Context, app *apiv1.App, output chan<- Message, options *Options) error
- func Container(ctx context.Context, pod *corev1.Pod, name string, output chan<- Message, ...) (err error)
- func Output(ctx context.Context, c client.Client, name string, opts *client.LogOptions) error
- func Pod(ctx context.Context, pod *corev1.Pod, output chan<- Message, options *Options) error
- func SinceLogCheck(since string, msg v1.LogMessage) (bool, error)
- type DefaultLoggerImpl
- func (d *DefaultLoggerImpl) AppStatus(ready bool, msg string, app *apiv1.App)
- func (d *DefaultLoggerImpl) Container(timeStamp metav1.Time, containerName, line string)
- func (d *DefaultLoggerImpl) Errorf(format string, args ...interface{})
- func (d *DefaultLoggerImpl) Infof(format string, args ...interface{})
- type Message
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SinceLogCheck ¶
func SinceLogCheck(since string, msg v1.LogMessage) (bool, error)
Types ¶
type DefaultLoggerImpl ¶ added in v0.9.0
type DefaultLoggerImpl struct {
// contains filtered or unexported fields
}
func NewDefaultLogger ¶ added in v0.9.0
func NewDefaultLogger(ctx context.Context, c client.Client) *DefaultLoggerImpl
func (*DefaultLoggerImpl) AppStatus ¶ added in v0.9.0
func (d *DefaultLoggerImpl) AppStatus(ready bool, msg string, app *apiv1.App)
func (*DefaultLoggerImpl) Container ¶ added in v0.9.0
func (d *DefaultLoggerImpl) Container(timeStamp metav1.Time, containerName, line string)
func (*DefaultLoggerImpl) Errorf ¶ added in v0.9.0
func (d *DefaultLoggerImpl) Errorf(format string, args ...interface{})
func (*DefaultLoggerImpl) Infof ¶ added in v0.9.0
func (d *DefaultLoggerImpl) Infof(format string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.