usnsource

package
Version: v0.0.0-...-5cdaeaf Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package usnsource describes source information for USN change journal records.

Index

Constants

This section is empty.

Variables

View Source
var FormatC = Format{
	DataManagement:              "USN_SOURCE_DATA_MANAGEMENT",
	AuxilaryData:                "USN_SOURCE_AUXILIARY_DATA",
	ReplicationManagement:       "USN_SOURCE_REPLICATION_MANAGEMENT",
	ClientReplicationManagement: "USN_SOURCE_CLIENT_REPLICATION_MANAGEMENT",
}

FormatC maps source information to C-style constant strings.

View Source
var FormatGo = Format{
	Local:                       "Local",
	DataManagement:              "DataManagement",
	AuxilaryData:                "AuxilaryData",
	ReplicationManagement:       "ReplicationManagement",
	ClientReplicationManagement: "ClientReplicationManagement",
}

FormatGo maps source information to Go-style constant strings.

View Source
var FormatShort = Format{
	Local:                       "LOCAL",
	DataManagement:              "OS",
	AuxilaryData:                "AUX",
	ReplicationManagement:       "REPL",
	ClientReplicationManagement: "CLOUD",
}

FormatShort maps source information to short strings.

Functions

This section is empty.

Types

type Format

type Format map[Info]string

Format describes a format for USN source information.

type Info

type Info uint32

Info encodes information about the source of USN change journal records.

const (
	Local                       Info = 0x00000000
	DataManagement              Info = 0x00000001 // USN_SOURCE_DATA_MANAGEMENT
	AuxilaryData                Info = 0x00000002 // USN_SOURCE_AUXILIARY_DATA
	ReplicationManagement       Info = 0x00000004 // USN_SOURCE_REPLICATION_MANAGEMENT
	ClientReplicationManagement Info = 0x00000008 // USN_SOURCE_CLIENT_REPLICATION_MANAGEMENT
)

USN Journal Source Info Codes

func (Info) Join

func (info Info) Join(sep string, format Format) string

Join returns a string representation of the source information using the given separator and format.

func (Info) Match

func (info Info) Match(c Info) bool

Match reports whether info contains all of the codes specified by c.

func (Info) String

func (info Info) String() string

String returns a string representation of info.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL