Documentation ¶
Index ¶
- type Factory
- type Logger
- type NullLogger
- func (n *NullLogger) CreateBuildLogger(_ string) Logger
- func (n *NullLogger) CreateContainerLogger(_ string) Logger
- func (n *NullLogger) CreatePullLogger(_ string) Logger
- func (n *NullLogger) Err(_ []byte)
- func (n *NullLogger) ErrWriter() io.Writer
- func (n *NullLogger) Out(_ []byte)
- func (n *NullLogger) OutWriter() io.Writer
- type RawLogger
- func (r *RawLogger) CreateBuildLogger(_ string) Logger
- func (r *RawLogger) CreateContainerLogger(_ string) Logger
- func (r *RawLogger) CreatePullLogger(_ string) Logger
- func (r *RawLogger) Err(message []byte)
- func (r *RawLogger) ErrWriter() io.Writer
- func (r *RawLogger) Out(message []byte)
- func (r *RawLogger) OutWriter() io.Writer
- type Wrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory interface { CreateContainerLogger(name string) Logger CreateBuildLogger(name string) Logger CreatePullLogger(name string) Logger }
Factory defines methods a factory should implement, to create a Logger based on the specified container, image or service name.
type Logger ¶
type Logger interface { Out(bytes []byte) Err(bytes []byte) OutWriter() io.Writer ErrWriter() io.Writer }
Logger defines methods to implement for being a logger.
type NullLogger ¶
type NullLogger struct { }
NullLogger is a logger.Logger and logger.Factory implementation that does nothing.
func (*NullLogger) CreateBuildLogger ¶
func (n *NullLogger) CreateBuildLogger(_ string) Logger
CreateBuildLogger allows NullLogger to implement logger.Factory.
func (*NullLogger) CreateContainerLogger ¶
func (n *NullLogger) CreateContainerLogger(_ string) Logger
CreateContainerLogger allows NullLogger to implement logger.Factory.
func (*NullLogger) CreatePullLogger ¶
func (n *NullLogger) CreatePullLogger(_ string) Logger
CreatePullLogger allows NullLogger to implement logger.Factory.
func (*NullLogger) ErrWriter ¶
func (n *NullLogger) ErrWriter() io.Writer
ErrWriter returns the base writer
func (*NullLogger) OutWriter ¶
func (n *NullLogger) OutWriter() io.Writer
OutWriter returns the base writer
type RawLogger ¶
type RawLogger struct { }
RawLogger is a logger.Logger and logger.Factory implementation that prints raw data with no formatting.
func (*RawLogger) CreateBuildLogger ¶
CreateBuildLogger allows RawLogger to implement logger.Factory.
func (*RawLogger) CreateContainerLogger ¶
CreateContainerLogger allows RawLogger to implement logger.Factory.
func (*RawLogger) CreatePullLogger ¶
CreatePullLogger allows RawLogger to implement logger.Factory.