tar

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

Writer writes Upbound usage events for a single account to a usage report in a tar archive. Must be initialized with NewWriter(). Callers must call Close() on the writer when finished writing to it.

func NewWriter

func NewWriter(tw *tar.Writer, meta report.Meta) (*Writer, error)

NewWriter returns an initialized *Writer.

func (*Writer) Close

func (w *Writer) Close() error

Close closes the writer.

func (*Writer) Write

func (w *Writer) Write(e model.MXPGVKEvent) error

Write writes an Upbound usage event to a tar archive.

Jump to

Keyboard shortcuts

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