Documentation ¶
Index ¶
- type Addr
- type AddrSlice
- type Command
- type CommandSlice
- type DNS
- type DNSSlice
- type File
- type FileSlice
- type Gossfile
- type GossfileSlice
- type Group
- type GroupSlice
- type Package
- type PackageSlice
- type Port
- type PortSlice
- type Process
- type ProcessSlice
- type Resource
- type Service
- type ServiceSlice
- type TestResult
- type User
- type UserSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addr ¶
type AddrSlice ¶ added in v0.0.3
type AddrSlice []*Addr
func (*AddrSlice) AppendSysResource ¶ added in v0.0.3
type Command ¶
type Command struct { Command string `json:"command"` ExitStatus string `json:"exit-status"` Stdout []string `json:"stdout"` Stderr []string `json:"stderr"` }
func NewCommand ¶
type CommandSlice ¶ added in v0.0.3
type CommandSlice []*Command
func (*CommandSlice) Append ¶ added in v0.0.3
func (r *CommandSlice) Append(neles ...*Command) bool
func (*CommandSlice) AppendSysResource ¶ added in v0.0.3
func (*CommandSlice) AppendSysResourceIfExists ¶ added in v0.0.3
type DNS ¶
type DNSSlice ¶ added in v0.0.3
type DNSSlice []*DNS
func (*DNSSlice) AppendSysResource ¶ added in v0.0.3
type File ¶
type File struct { Path string `json:"path"` Exists bool `json:"exists"` Mode string `json:"mode,omitempty"` Owner string `json:"owner,omitempty"` Group string `json:"group,omitempty"` LinkedTo string `json:"linked-to,omitempty"` Filetype string `json:"filetype,omitempty"` Contains []string `json:"contains"` }
type FileSlice ¶ added in v0.0.3
type FileSlice []*File
func (*FileSlice) AppendSysResource ¶ added in v0.0.3
type GossfileSlice ¶ added in v0.0.3
type GossfileSlice []*Gossfile
func (*GossfileSlice) Append ¶ added in v0.0.3
func (r *GossfileSlice) Append(neles ...*Gossfile) bool
func (*GossfileSlice) AppendSysResource ¶ added in v0.0.3
func (*GossfileSlice) AppendSysResourceIfExists ¶ added in v0.0.3
type Group ¶
type GroupSlice ¶ added in v0.0.3
type GroupSlice []*Group
func (*GroupSlice) Append ¶ added in v0.0.3
func (r *GroupSlice) Append(neles ...*Group) bool
func (*GroupSlice) AppendSysResource ¶ added in v0.0.3
func (*GroupSlice) AppendSysResourceIfExists ¶ added in v0.0.3
type Package ¶
type Package struct { Name string `json:"name"` Installed bool `json:"installed"` Versions []string `json:"versions,omitempty"` }
func NewPackage ¶
type PackageSlice ¶ added in v0.0.3
type PackageSlice []*Package
func (*PackageSlice) Append ¶ added in v0.0.3
func (r *PackageSlice) Append(neles ...*Package) bool
func (*PackageSlice) AppendSysResource ¶ added in v0.0.3
func (*PackageSlice) AppendSysResourceIfExists ¶ added in v0.0.3
type Port ¶
type PortSlice ¶ added in v0.0.3
type PortSlice []*Port
func (*PortSlice) AppendSysResource ¶ added in v0.0.3
type Process ¶
func NewProcess ¶
type ProcessSlice ¶ added in v0.0.3
type ProcessSlice []*Process
func (*ProcessSlice) Append ¶ added in v0.0.3
func (r *ProcessSlice) Append(neles ...*Process) bool
func (*ProcessSlice) AppendSysResource ¶ added in v0.0.3
func (*ProcessSlice) AppendSysResourceIfExists ¶ added in v0.0.3
type Resource ¶
type Resource interface {
Validate(*system.System) []TestResult
}
type Service ¶
type Service struct { Service string `json:"service"` Enabled bool `json:"enabled"` Running bool `json:"running"` }
func NewService ¶
type ServiceSlice ¶ added in v0.0.3
type ServiceSlice []*Service
func (*ServiceSlice) Append ¶ added in v0.0.3
func (r *ServiceSlice) Append(neles ...*Service) bool
func (*ServiceSlice) AppendSysResource ¶ added in v0.0.3
func (*ServiceSlice) AppendSysResourceIfExists ¶ added in v0.0.3
type TestResult ¶
func ValidateContains ¶
func ValidateValue ¶
func ValidateValue(title, property, expectedValue interface{}, method func() (interface{}, error)) TestResult
func ValidateValues ¶
func ValidateValues(title, property string, expectedValues []string, method func() ([]string, error)) TestResult
type User ¶
type UserSlice ¶ added in v0.0.3
type UserSlice []*User
func (*UserSlice) AppendSysResource ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.