Documentation
¶
Index ¶
- Constants
- func OpenFile(basePath string, typeName string) (rc io.ReadCloser, err error)
- func RegisterCheck(ci CheckInfo, c Check)
- func RegisterFileType(f FileType)
- func SendProg(p chan<- Progress, stage string, step int, count int)
- type Bundle
- type Check
- type CheckInfo
- type ContentType
- type Fact
- type FileType
- type Host
- type HostType
- type NamedProgress
- type Progress
- type Report
- type Status
Constants ¶
View Source
const ( SUndefined Status = "UNDEFINED" SOK = "OK" SProblem = "PROBLEM" )
View Source
const ( JSON ContentType = "JSON" Journal = "journal" Dmesg = "dmesg" )
View Source
const ( Master HostType = "master" Agent = "agent" PublicAgent = "public agent" )
Variables ¶
This section is empty.
Functions ¶
func OpenFile ¶
func OpenFile(basePath string, typeName string) (rc io.ReadCloser, err error)
OpenFile opens bundle file. Caller is responsible for closing the file.
func RegisterCheck ¶
func RegisterFileType ¶
func RegisterFileType(f FileType)
Types ¶
type ContentType ¶
type ContentType string
type FileType ¶
type FileType struct { Name string ContentType ContentType // If HostTypes is not empty, then Path is relative to the host's directory, // otherwise, it's relative to the bundle's root directory. Path string Description string HostTypes map[HostType]struct{} }
func GetFileType ¶
type NamedProgress ¶
Click to show internal directories.
Click to hide internal directories.