pblog

package
v0.0.0-...-b79a0d8 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package pblog is the client for a logger using gRPC. Additional non-logging functionality needed for provisioning is included. Including the additional functionality in this package rather than another is merely for convenience - in production implementations, it may be preferred to separate them.

The protocol buffer/grpc definitions are in the pb sub-package, and the server impl is in the server sub-package.

Index

Constants

View Source
const LogIdent = "PBLog"

Variables

This section is empty.

Functions

func UseRKeeper

func UseRKeeper()

func UseRLoggerSetup

func UseRLoggerSetup()

Types

type AllInOne

func AddPBLog

func AddPBLog(endpoint, sn string, flags flags.Flag) (AllInOne, error)

type Pbl

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

func (*Pbl) AddEntry

func (p *Pbl) AddEntry(e log.LogEntry)

Must be callable even when conn is not open, as something may try to log after Finalize() at shutdown.

func (*Pbl) Finalize

func (p *Pbl) Finalize()

func (*Pbl) ForwardTo

func (p *Pbl) ForwardTo(sl log.StackableLogger)

func (*Pbl) GetCredentials

func (p *Pbl) GetCredentials(ident string) common.Credentials

GetCredentials is part of imaging.Credentialer interface.

func (*Pbl) GetTime

func (p *Pbl) GetTime() string

func (*Pbl) Ident

func (p *Pbl) Ident() string

func (*Pbl) Next

func (p *Pbl) Next() log.StackableLogger

func (*Pbl) ReportCodename

func (p *Pbl) ReportCodename(c string)

func (*Pbl) ReportFailure

func (p *Pbl) ReportFailure(f string)

func (*Pbl) ReportFinished

func (p *Pbl) ReportFinished(f string)

func (*Pbl) ReportState

func (p *Pbl) ReportState(state string)

func (*Pbl) SetEP

func (*Pbl) SetEP(string)

SetEP is part of imaging.Credentialer interface. no-op.

func (*Pbl) SetUnit

func (p *Pbl) SetUnit(u common.Unit)

func (*Pbl) StoreDocument

func (p *Pbl) StoreDocument(name string, doctype rkeep.PrintedDocType, body []byte)

func (*Pbl) StoreIPMIMACs

func (p *Pbl) StoreIPMIMACs(im []string)

func (*Pbl) StoreMACs

func (p *Pbl) StoreMACs(m []string)

type RLogSetup

type RLogSetup struct{}

func (*RLogSetup) Setup

func (*RLogSetup) Setup(endpoint, id string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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