Documentation ¶
Overview ¶
Common (and subpackages) contains interfaces that make it easier to avoid import cycles, swap out functionality for testing, etc.
In these packages, imports must be strictly limited.
Index ¶
- Variables
- type Credentialer
- type Credentials
- type FS
- type FileTransferer
- type Formatter
- type Fstaber
- type Mounter
- type Pather
- type PatherMock
- type PlatConfiger
- type PlatInfoer
- type PlatMock
- func (pm *PlatMock) BiosConfigTool() string
- func (pm *PlatMock) DeviceCodeName() string
- func (pm *PlatMock) DiagPorts() []int
- func (pm *PlatMock) IpmiConfigTool() string
- func (pm *PlatMock) IsPrototype() bool
- func (pm *PlatMock) MACPrefixes() [][]byte
- func (pm *PlatMock) SerNum() string
- func (pm *PlatMock) WANIndex() int
- type PlatNamer
- type SerNumer
- type StashData
- type TransferableVerifiableFile
- type Unit
- type Verifyer
Constants ¶
This section is empty.
Variables ¶
View Source
var ENil = errors.New("Nil impl")
Functions ¶
This section is empty.
Types ¶
type Credentialer ¶
type Credentialer interface { //set endpoint to use SetEP(ep string) //get credentials for unit with given id GetCredentials(ident string) Credentials }
type Credentials ¶
type Credentials struct {
OS, BIOS, IPMI string
}
set of credentials for a given unit
type FileTransferer ¶
type PatherMock ¶
type PatherMock string
func (*PatherMock) Path ¶
func (p *PatherMock) Path() string
type PlatConfiger ¶
type PlatInfoer ¶
type PlatMock ¶
type PlatMock struct { Diag []int MPs [][]byte Proto bool Wan int Ser string BConf, IConf string CodeName string }
func (*PlatMock) BiosConfigTool ¶
func (*PlatMock) DeviceCodeName ¶
func (*PlatMock) IpmiConfigTool ¶
func (*PlatMock) IsPrototype ¶
func (*PlatMock) MACPrefixes ¶
type StashData ¶
type StashData interface { //endpoint that may be used by Credentialer CredEP() string //list of files needed by Stasher StashFileList() []TransferableVerifiableFile }
Data needed for Stasher, that comes from mfgdata retrieved from server.
type TransferableVerifiableFile ¶
type TransferableVerifiableFile interface { FileTransferer Verifyer Basename() string Mode(m os.FileMode) }
type Unit ¶
type Unit struct {
Pri, Rec Pather
Platform PlatInfoer
}
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Interface for a mechanism storing data for use by factory restore
|
Interface for a mechanism storing data for use by factory restore |
Some sort of external mechanism recording details about units imaged.
|
Some sort of external mechanism recording details about units imaged. |
Interfaces related to setting up or mocking remote logging.
|
Interfaces related to setting up or mocking remote logging. |
Abstraction for strings that implementors will likely wish to change.
|
Abstraction for strings that implementors will likely wish to change. |
Click to show internal directories.
Click to hide internal directories.