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
- func UseRKeeper()
- func UseRLoggerSetup()
- type AllInOne
- type Pbl
- func (p *Pbl) AddEntry(e log.LogEntry)
- func (p *Pbl) Finalize()
- func (p *Pbl) ForwardTo(sl log.StackableLogger)
- func (p *Pbl) GetCredentials(ident string) common.Credentials
- func (p *Pbl) GetTime() string
- func (p *Pbl) Ident() string
- func (p *Pbl) Next() log.StackableLogger
- func (p *Pbl) ReportCodename(c string)
- func (p *Pbl) ReportFailure(f string)
- func (p *Pbl) ReportFinished(f string)
- func (p *Pbl) ReportState(state string)
- func (*Pbl) SetEP(string)
- func (p *Pbl) SetUnit(u common.Unit)
- func (p *Pbl) StoreDocument(name string, doctype rkeep.PrintedDocType, body []byte)
- func (p *Pbl) StoreIPMIMACs(im []string)
- func (p *Pbl) StoreMACs(m []string)
- type RLogSetup
Constants ¶
View Source
const LogIdent = "PBLog"
Variables ¶
This section is empty.
Functions ¶
func UseRKeeper ¶
func UseRKeeper()
func UseRLoggerSetup ¶
func UseRLoggerSetup()
Types ¶
type AllInOne ¶
type AllInOne interface { log.StackableLogger rkeep.RecordKeeper common.Credentialer }
type Pbl ¶
type Pbl struct {
// contains filtered or unexported fields
}
func (*Pbl) AddEntry ¶
Must be callable even when conn is not open, as something may try to log after Finalize() at shutdown.
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) Next ¶
func (p *Pbl) Next() log.StackableLogger
func (*Pbl) ReportCodename ¶
func (*Pbl) ReportFailure ¶
func (*Pbl) ReportFinished ¶
func (*Pbl) ReportState ¶
func (*Pbl) StoreDocument ¶
func (p *Pbl) StoreDocument(name string, doctype rkeep.PrintedDocType, body []byte)
func (*Pbl) StoreIPMIMACs ¶
Click to show internal directories.
Click to hide internal directories.