Documentation ¶
Index ¶
- Constants
- type Addr
- type AddrMap
- type Command
- type CommandMap
- type DNS
- type DNSMap
- type File
- type FileMap
- type Gossfile
- type GossfileMap
- type Group
- type GroupMap
- type IDer
- type Package
- type PackageMap
- type Port
- type PortMap
- type Process
- type ProcessMap
- type Resource
- type Service
- type ServiceMap
- type TestResult
- type User
- type UserMap
Constants ¶
View Source
const ( Value = iota Values Contains )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addr ¶
type AddrMap ¶ added in v0.0.4
func (AddrMap) AppendSysResource ¶ added in v0.0.4
func (AddrMap) AppendSysResourceIfExists ¶ added in v0.0.4
func (*AddrMap) UnmarshalJSON ¶ added in v0.0.4
type Command ¶
type Command struct { Command string `json:"-"` ExitStatus string `json:"exit-status"` Stdout []string `json:"stdout"` Stderr []string `json:"stderr"` }
func NewCommand ¶
type CommandMap ¶ added in v0.0.4
func (CommandMap) AppendSysResource ¶ added in v0.0.4
func (CommandMap) AppendSysResourceIfExists ¶ added in v0.0.4
func (*CommandMap) UnmarshalJSON ¶ added in v0.0.4
func (r *CommandMap) UnmarshalJSON(data []byte) error
type DNS ¶
type DNSMap ¶ added in v0.0.4
func (DNSMap) AppendSysResource ¶ added in v0.0.4
func (DNSMap) AppendSysResourceIfExists ¶ added in v0.0.4
func (*DNSMap) UnmarshalJSON ¶ added in v0.0.4
type File ¶
type File struct { Path string `json:"-"` 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 FileMap ¶ added in v0.0.4
func (FileMap) AppendSysResource ¶ added in v0.0.4
func (FileMap) AppendSysResourceIfExists ¶ added in v0.0.4
func (*FileMap) UnmarshalJSON ¶ added in v0.0.4
type GossfileMap ¶ added in v0.0.4
func (GossfileMap) AppendSysResource ¶ added in v0.0.4
func (GossfileMap) AppendSysResourceIfExists ¶ added in v0.0.4
func (*GossfileMap) UnmarshalJSON ¶ added in v0.0.4
func (r *GossfileMap) UnmarshalJSON(data []byte) error
type Group ¶
type GroupMap ¶ added in v0.0.4
func (GroupMap) AppendSysResource ¶ added in v0.0.4
func (GroupMap) AppendSysResourceIfExists ¶ added in v0.0.4
func (*GroupMap) UnmarshalJSON ¶ added in v0.0.4
type Package ¶
type Package struct { Name string `json:"-"` Installed bool `json:"installed"` Versions []string `json:"versions,omitempty"` }
func NewPackage ¶
type PackageMap ¶ added in v0.0.4
func (PackageMap) AppendSysResource ¶ added in v0.0.4
func (PackageMap) AppendSysResourceIfExists ¶ added in v0.0.4
func (*PackageMap) UnmarshalJSON ¶ added in v0.0.4
func (r *PackageMap) UnmarshalJSON(data []byte) error
type Port ¶
type PortMap ¶ added in v0.0.4
func (PortMap) AppendSysResource ¶ added in v0.0.4
func (PortMap) AppendSysResourceIfExists ¶ added in v0.0.4
func (*PortMap) UnmarshalJSON ¶ added in v0.0.4
type Process ¶
func NewProcess ¶
type ProcessMap ¶ added in v0.0.4
func (ProcessMap) AppendSysResource ¶ added in v0.0.4
func (ProcessMap) AppendSysResourceIfExists ¶ added in v0.0.4
func (*ProcessMap) UnmarshalJSON ¶ added in v0.0.4
func (r *ProcessMap) UnmarshalJSON(data []byte) error
type Service ¶
type Service struct { Service string `json:"-"` Enabled bool `json:"enabled"` Running bool `json:"running"` }
func NewService ¶
type ServiceMap ¶ added in v0.0.4
func (ServiceMap) AppendSysResource ¶ added in v0.0.4
func (ServiceMap) AppendSysResourceIfExists ¶ added in v0.0.4
func (*ServiceMap) UnmarshalJSON ¶ added in v0.0.4
func (r *ServiceMap) UnmarshalJSON(data []byte) error
type TestResult ¶
type TestResult struct { Successful bool `json:"successful"` Title string `json:"title"` ResourceType string `json:"resource-type"` TestType int `json:"test-type"` Property string `json:"property"` Err error `json:"err"` Expected []string `json:"expected"` Found []string `json:"found"` Duration time.Duration `json:"duration"` }
func ValidateContains ¶
func ValidateValue ¶
func ValidateValue(res IDer, property string, expectedValue interface{}, method func() (interface{}, error)) TestResult
func ValidateValues ¶
type User ¶
type UserMap ¶ added in v0.0.4
func (UserMap) AppendSysResource ¶ added in v0.0.4
func (UserMap) AppendSysResourceIfExists ¶ added in v0.0.4
func (*UserMap) UnmarshalJSON ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.