binary

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const CurrentVersion = uint64(2)

CurrentVersion describes the current binary log version number

View Source
const FileFormatLength = 32

FileFormatLength describes the length of the magic string. The non-used bytes need to be filled up with \000.

View Source
const FileFormatMagic string = "ContainerSSH-Auditlog"

FileFormatMagic is the magic string that needs to appear in the header.

Variables

This section is empty.

Functions

func NewDecoder

func NewDecoder() codec.Decoder

NewDecoder Creates a decoder for the CBOR+GZIP audit log format.

func NewEncoder

func NewEncoder(geoIPProvider geoipprovider.LookupProvider) codec.Encoder

NewEncoder creates an encoder that encodes messages in CBOR+GZIP format as documented

on https://containerssh.github.io/advanced/audit/format/

Types

type Header struct {
	Magic   []byte
	Version uint64
}

Header is the structure of the audit log header.

Jump to

Keyboard shortcuts

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