repolog

package
v0.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL