Documentation ¶
Overview ¶
Package repolog manages logs in the repository.
Index ¶
Constants ¶
View Source
const BlobPrefix = "_log_"
BlobPrefix is a prefix given to text logs stored in repository.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogManager ¶
type LogManager struct {
// contains filtered or unexported fields
}
LogManager manages writing encrypted log blobs to the repository.
func NewLogManager ¶
func NewLogManager(ctx context.Context, st blob.Storage, bc blobcrypto.Crypter) *LogManager
NewLogManager creates a new LogManager that will emit logs as repository blobs.
func (*LogManager) Close ¶
func (m *LogManager) Close(ctx context.Context)
Close closes the log manager.
func (*LogManager) Enable ¶
func (m *LogManager) Enable()
Enable enables writing any buffered logs to repository.
func (*LogManager) NewLogger ¶
func (m *LogManager) NewLogger() *zap.SugaredLogger
NewLogger creates new logger.
Click to show internal directories.
Click to hide internal directories.