Documentation ¶
Index ¶
- Constants
- 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 File
- type FileSystem
- type FileType
- type Host
- type HostType
- type NamedProgress
- type OSFS
- 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 RegisterCheck ¶
func RegisterFileType ¶
func RegisterFileType(f FileType)
Types ¶
type ContentType ¶
type ContentType string
type File ¶ added in v1.2.0
type File io.ReadCloser
type FileSystem ¶ added in v1.2.0
type FileSystem interface { // ReadDir reads the directory named by dirname and returns // a list of directory entries sorted by filename. // It's mocking the io/ioutil.ReadDir. ReadDir(string) ([]os.FileInfo, error) // Open opens the named file for reading. If successful, methods on // the returned file can be used for reading. // It's partially mocking the os.Open function. Open(string) (File, error) // Getwd returns a rooted path name corresponding to the // current directory. If the current directory can be // reached via multiple paths (due to symbolic links), // Getwd may return any one of them. // It's mocking os.Getwd. Getwd() (string, error) }
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. Paths []string Description string HostTypes map[HostType]struct{} }
func GetFileType ¶
type NamedProgress ¶
Click to show internal directories.
Click to hide internal directories.