Documentation ¶
Index ¶
- Constants
- func HumanOutcomes() map[int]string
- func Resources() map[string]Resource
- type Addr
- func (a *Addr) GetAddress() string
- func (a *Addr) GetMeta() meta
- func (a *Addr) GetTitle() string
- func (a *Addr) ID() string
- func (a *Addr) SetID(id string)
- func (a *Addr) SetSkip()
- func (a *Addr) TypeKey() string
- func (a *Addr) TypeName() string
- func (a *Addr) Validate(sys *system.System) []TestResult
- type AddrMap
- func (r AddrMap) AppendSysResource(sr string, sys *system.System, config util.Config) (*Addr, error)
- func (r AddrMap) AppendSysResourceIfExists(sr string, sys *system.System) (*Addr, system.Addr, bool, error)
- func (ret *AddrMap) UnmarshalJSON(data []byte) error
- func (ret *AddrMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
- type Command
- func (c *Command) GetExec() string
- func (c *Command) GetMeta() meta
- func (c *Command) GetTitle() string
- func (c *Command) ID() string
- func (c *Command) SetID(id string)
- func (c *Command) SetSkip()
- func (c *Command) TypeKey() string
- func (c *Command) TypeName() string
- func (c *Command) Validate(sys *system.System) []TestResult
- type CommandMap
- func (r CommandMap) AppendSysResource(sr string, sys *system.System, config util.Config) (*Command, error)
- func (r CommandMap) AppendSysResourceIfExists(sr string, sys *system.System) (*Command, system.Command, bool, error)
- func (ret *CommandMap) UnmarshalJSON(data []byte) error
- func (ret *CommandMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
- type DNS
- type DNSMap
- func (r DNSMap) AppendSysResource(sr string, sys *system.System, config util.Config) (*DNS, error)
- func (r DNSMap) AppendSysResourceIfExists(sr string, sys *system.System) (*DNS, system.DNS, bool, error)
- func (ret *DNSMap) UnmarshalJSON(data []byte) error
- func (ret *DNSMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
- type File
- func (f *File) GetMeta() meta
- func (f *File) GetPath() string
- func (f *File) GetTitle() string
- func (f *File) ID() string
- func (f *File) SetID(id string)
- func (f *File) SetSkip()
- func (f *File) TypeKey() string
- func (f *File) TypeName() string
- func (f *File) Validate(sys *system.System) []TestResult
- type FileMap
- func (r FileMap) AppendSysResource(sr string, sys *system.System, config util.Config) (*File, error)
- func (r FileMap) AppendSysResourceIfExists(sr string, sys *system.System) (*File, system.File, bool, error)
- func (ret *FileMap) UnmarshalJSON(data []byte) error
- func (ret *FileMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
- type Gossfile
- func (g *Gossfile) GetGossfile() string
- func (g *Gossfile) GetMeta() meta
- func (g *Gossfile) GetSkip() bool
- func (g *Gossfile) GetTitle() string
- func (g *Gossfile) ID() string
- func (g *Gossfile) SetID(id string)
- func (g *Gossfile) SetSkip()
- func (g *Gossfile) TypeKey() string
- func (g *Gossfile) TypeName() string
- func (g *Gossfile) Validate(sys *system.System) []TestResult
- type GossfileMap
- func (r GossfileMap) AppendSysResource(sr string, sys *system.System, config util.Config) (*Gossfile, error)
- func (r GossfileMap) AppendSysResourceIfExists(sr string, sys *system.System) (*Gossfile, system.Gossfile, bool, error)
- func (ret *GossfileMap) UnmarshalJSON(data []byte) error
- func (ret *GossfileMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
- type Group
- func (g *Group) GetGroupname() string
- func (g *Group) GetMeta() meta
- func (g *Group) GetTitle() string
- func (g *Group) ID() string
- func (g *Group) SetID(id string)
- func (g *Group) SetSkip()
- func (g *Group) TypeKey() string
- func (g *Group) TypeName() string
- func (g *Group) Validate(sys *system.System) []TestResult
- type GroupMap
- func (r GroupMap) AppendSysResource(sr string, sys *system.System, config util.Config) (*Group, error)
- func (r GroupMap) AppendSysResourceIfExists(sr string, sys *system.System) (*Group, system.Group, bool, error)
- func (ret *GroupMap) UnmarshalJSON(data []byte) error
- func (ret *GroupMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
- type HTTP
- type HTTPMap
- func (r HTTPMap) AppendSysResource(sr string, sys *system.System, config util.Config) (*HTTP, error)
- func (r HTTPMap) AppendSysResourceIfExists(sr string, sys *system.System) (*HTTP, system.HTTP, bool, error)
- func (ret *HTTPMap) UnmarshalJSON(data []byte) error
- func (ret *HTTPMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
- type Interface
- func (i *Interface) GetMeta() meta
- func (i *Interface) GetName() string
- func (i *Interface) GetTitle() string
- func (i *Interface) ID() string
- func (i *Interface) SetID(id string)
- func (i *Interface) SetSkip()
- func (i *Interface) TypeKey() string
- func (i *Interface) TypeName() string
- func (i *Interface) Validate(sys *system.System) []TestResult
- type InterfaceMap
- func (r InterfaceMap) AppendSysResource(sr string, sys *system.System, config util.Config) (*Interface, error)
- func (r InterfaceMap) AppendSysResourceIfExists(sr string, sys *system.System) (*Interface, system.Interface, bool, error)
- func (ret *InterfaceMap) UnmarshalJSON(data []byte) error
- func (ret *InterfaceMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
- type KernelParam
- func (k *KernelParam) GetMeta() meta
- func (k *KernelParam) GetName() string
- func (k *KernelParam) GetTitle() string
- func (k *KernelParam) ID() string
- func (a *KernelParam) SetID(id string)
- func (a *KernelParam) SetSkip()
- func (a *KernelParam) TypeKey() string
- func (a *KernelParam) TypeName() string
- func (k *KernelParam) Validate(sys *system.System) []TestResult
- type KernelParamMap
- func (r KernelParamMap) AppendSysResource(sr string, sys *system.System, config util.Config) (*KernelParam, error)
- func (r KernelParamMap) AppendSysResourceIfExists(sr string, sys *system.System) (*KernelParam, system.KernelParam, bool, error)
- func (ret *KernelParamMap) UnmarshalJSON(data []byte) error
- func (ret *KernelParamMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
- type Matching
- func (r *Matching) GetMeta() meta
- func (r *Matching) GetTitle() string
- func (a *Matching) ID() string
- func (a *Matching) SetID(id string)
- func (a *Matching) SetSkip()
- func (a *Matching) TypeKey() string
- func (a *Matching) TypeName() string
- func (a *Matching) Validate(sys *system.System) []TestResult
- type MatchingMap
- type Mount
- func (m *Mount) GetMeta() meta
- func (m *Mount) GetMountPoint() string
- func (m *Mount) GetTitle() string
- func (m *Mount) ID() string
- func (m *Mount) SetID(id string)
- func (m *Mount) SetSkip()
- func (m *Mount) TypeKey() string
- func (m *Mount) TypeName() string
- func (m *Mount) Validate(sys *system.System) []TestResult
- type MountMap
- func (r MountMap) AppendSysResource(sr string, sys *system.System, config util.Config) (*Mount, error)
- func (r MountMap) AppendSysResourceIfExists(sr string, sys *system.System) (*Mount, system.Mount, bool, error)
- func (ret *MountMap) UnmarshalJSON(data []byte) error
- func (ret *MountMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
- type Package
- func (p *Package) GetMeta() meta
- func (p *Package) GetName() string
- func (p *Package) GetTitle() string
- func (p *Package) ID() string
- func (p *Package) SetID(id string)
- func (p *Package) SetSkip()
- func (p *Package) TypeKey() string
- func (p *Package) TypeName() string
- func (p *Package) Validate(sys *system.System) []TestResult
- type PackageMap
- func (r PackageMap) AppendSysResource(sr string, sys *system.System, config util.Config) (*Package, error)
- func (r PackageMap) AppendSysResourceIfExists(sr string, sys *system.System) (*Package, system.Package, bool, error)
- func (ret *PackageMap) UnmarshalJSON(data []byte) error
- func (ret *PackageMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
- type Port
- func (p *Port) GetMeta() meta
- func (p *Port) GetPort() string
- func (p *Port) GetTitle() string
- func (p *Port) ID() string
- func (p *Port) SetID(id string)
- func (p *Port) SetSkip()
- func (p *Port) TypeKey() string
- func (p *Port) TypeName() string
- func (p *Port) Validate(sys *system.System) []TestResult
- type PortMap
- func (r PortMap) AppendSysResource(sr string, sys *system.System, config util.Config) (*Port, error)
- func (r PortMap) AppendSysResourceIfExists(sr string, sys *system.System) (*Port, system.Port, bool, error)
- func (ret *PortMap) UnmarshalJSON(data []byte) error
- func (ret *PortMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
- type Process
- func (p *Process) GetComm() string
- func (p *Process) GetMeta() meta
- func (p *Process) GetTitle() string
- func (p *Process) ID() string
- func (p *Process) SetID(id string)
- func (p *Process) SetSkip()
- func (p *Process) TypeKey() string
- func (p *Process) TypeName() string
- func (p *Process) Validate(sys *system.System) []TestResult
- type ProcessMap
- func (r ProcessMap) AppendSysResource(sr string, sys *system.System, config util.Config) (*Process, error)
- func (r ProcessMap) AppendSysResourceIfExists(sr string, sys *system.System) (*Process, system.Process, bool, error)
- func (ret *ProcessMap) UnmarshalJSON(data []byte) error
- func (ret *ProcessMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
- type Resource
- type ResourceRead
- type Service
- func (s *Service) GetMeta() meta
- func (s *Service) GetName() string
- func (s *Service) GetTitle() string
- func (s *Service) ID() string
- func (s *Service) SetID(id string)
- func (s *Service) SetSkip()
- func (s *Service) TypeKey() string
- func (s *Service) TypeName() string
- func (s *Service) Validate(sys *system.System) []TestResult
- type ServiceMap
- func (r ServiceMap) AppendSysResource(sr string, sys *system.System, config util.Config) (*Service, error)
- func (r ServiceMap) AppendSysResourceIfExists(sr string, sys *system.System) (*Service, system.Service, bool, error)
- func (ret *ServiceMap) UnmarshalJSON(data []byte) error
- func (ret *ServiceMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
- type TestResult
- type User
- func (u *User) GetMeta() meta
- func (u *User) GetTitle() string
- func (u *User) GetUsername() string
- func (u *User) ID() string
- func (u *User) SetID(id string)
- func (u *User) SetSkip()
- func (u *User) TypeKey() string
- func (u *User) TypeName() string
- func (u *User) Validate(sys *system.System) []TestResult
- type UserMap
- func (r UserMap) AppendSysResource(sr string, sys *system.System, config util.Config) (*User, error)
- func (r UserMap) AppendSysResourceIfExists(sr string, sys *system.System) (*User, system.User, bool, error)
- func (ret *UserMap) UnmarshalJSON(data []byte) error
- func (ret *UserMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
- type ValidateError
Constants ¶
View Source
const ( AddrResourceKey = "addr" AddResourceName = "Addr" )
View Source
const ( CommandResourceKey = "command" CommandResourceName = "Command" )
View Source
const ( DNSResourceKey = "dns" DNSResourceName = "DNS" )
View Source
const ( FileResourceKey = "file" FileResourceName = "File" )
View Source
const ( GossFileResourceKey = "gossfile" GossFileResourceName = "Gossfile" )
View Source
const ( GroupResourceKey = "group" GroupResourceName = "Group" )
View Source
const ( HTTPResourceKey = "http" HTTPResourceName = "HTTP" )
View Source
const ( InterfaceResourceKey = "interface" InterfaceResourceName = "Interface" )
View Source
const ( KernelParamResourceKey = "kernel-param" KernelParamResourceName = "KernelParam" )
View Source
const ( MatchingResourceKey = "mount" MatchingResourceName = "Mount" )
View Source
const ( MountResourceKey = "mount" MountResourceName = "Mount" )
View Source
const ( PackageResourceKey = "package" PackageResourceName = "Package" )
View Source
const ( PortResourceKey = "port" PortResourceName = "Port" )
View Source
const ( ProcessResourceKey = "process" ProcessResourceName = "Process" )
View Source
const ( ServiceResourceKey = "service" ServiceResourceName = "Service" )
View Source
const ( UserResourceKey = "user" UserResourceName = "User" )
View Source
const ( Value = iota Values Contains )
View Source
const ( SUCCESS = iota FAIL SKIP UNKNOWN )
View Source
const ( OutcomePass = "pass" OutcomeFail = "fail" OutcomeSkip = "skip" OutcomeUnknown = "unknown" )
Variables ¶
This section is empty.
Functions ¶
func HumanOutcomes ¶ added in v0.3.21
Types ¶
type Addr ¶
type Addr struct { Title string `json:"title,omitempty" yaml:"title,omitempty"` Meta meta `json:"meta,omitempty" yaml:"meta,omitempty"` Address string `json:"address,omitempty" yaml:"address,omitempty"` LocalAddress string `json:"local-address,omitempty" yaml:"local-address,omitempty"` Reachable matcher `json:"reachable" yaml:"reachable"` Timeout int `json:"timeout" yaml:"timeout"` Skip bool `json:"skip,omitempty" yaml:"skip,omitempty"` // contains filtered or unexported fields }
func (*Addr) GetAddress ¶ added in v0.4.0
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
func (*AddrMap) UnmarshalYAML ¶ added in v0.1.0
type Command ¶
type Command struct { Title string `json:"title,omitempty" yaml:"title,omitempty"` Meta meta `json:"meta,omitempty" yaml:"meta,omitempty"` Exec string `json:"exec,omitempty" yaml:"exec,omitempty"` ExitStatus matcher `json:"exit-status" yaml:"exit-status"` Stdout matcher `json:"stdout" yaml:"stdout"` Stderr matcher `json:"stderr" yaml:"stderr"` Timeout int `json:"timeout" yaml:"timeout"` Skip bool `json:"skip,omitempty" yaml:"skip,omitempty"` // contains filtered or unexported fields }
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 (ret *CommandMap) UnmarshalJSON(data []byte) error
func (*CommandMap) UnmarshalYAML ¶ added in v0.1.0
func (ret *CommandMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
type DNS ¶
type DNS struct { Title string `json:"title,omitempty" yaml:"title,omitempty"` Meta meta `json:"meta,omitempty" yaml:"meta,omitempty"` Resolve string `json:"resolve,omitempty" yaml:"resolve,omitempty"` Resolveable matcher `json:"resolveable,omitempty" yaml:"resolveable,omitempty"` Resolvable matcher `json:"resolvable" yaml:"resolvable"` Addrs matcher `json:"addrs,omitempty" yaml:"addrs,omitempty"` Timeout int `json:"timeout" yaml:"timeout"` Server string `json:"server,omitempty" yaml:"server,omitempty"` Skip bool `json:"skip,omitempty" yaml:"skip,omitempty"` // contains filtered or unexported fields }
func (*DNS) GetResolve ¶ added in v0.4.0
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
func (*DNSMap) UnmarshalYAML ¶ added in v0.1.0
type File ¶
type File struct { Title string `json:"title,omitempty" yaml:"title,omitempty"` Meta meta `json:"meta,omitempty" yaml:"meta,omitempty"` Path string `json:"path,omitempty" yaml:"path,omitempty"` Exists matcher `json:"exists" yaml:"exists"` Mode matcher `json:"mode,omitempty" yaml:"mode,omitempty"` Size matcher `json:"size,omitempty" yaml:"size,omitempty"` Owner matcher `json:"owner,omitempty" yaml:"owner,omitempty"` Uid matcher `json:"uid,omitempty" yaml:"uid,omitempty"` Group matcher `json:"group,omitempty" yaml:"group,omitempty"` Gid matcher `json:"gid,omitempty" yaml:"gid,omitempty"` LinkedTo matcher `json:"linked-to,omitempty" yaml:"linked-to,omitempty"` Filetype matcher `json:"filetype,omitempty" yaml:"filetype,omitempty"` Contains matcher `json:"contains,omitempty" yaml:"contains,omitempty"` Contents matcher `json:"contents" yaml:"contents"` Md5 matcher `json:"md5,omitempty" yaml:"md5,omitempty"` Sha256 matcher `json:"sha256,omitempty" yaml:"sha256,omitempty"` Sha512 matcher `json:"sha512,omitempty" yaml:"sha512,omitempty"` Skip bool `json:"skip,omitempty" yaml:"skip,omitempty"` // contains filtered or unexported fields }
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
func (*FileMap) UnmarshalYAML ¶ added in v0.1.0
type Gossfile ¶
type Gossfile struct { Title string `json:"title,omitempty" yaml:"title,omitempty"` Meta meta `json:"meta,omitempty" yaml:"meta,omitempty"` Path string `json:"-" yaml:"-"` Skip bool `json:"skip,omitempty" yaml:"skip,omitempty"` File string `json:"file,omitempty" yaml:"file,omitempty"` }
func NewGossfile ¶
func (*Gossfile) GetGossfile ¶ added in v0.3.21
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 (ret *GossfileMap) UnmarshalJSON(data []byte) error
func (*GossfileMap) UnmarshalYAML ¶ added in v0.1.0
func (ret *GossfileMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
type Group ¶
type Group struct { Title string `json:"title,omitempty" yaml:"title,omitempty"` Meta meta `json:"meta,omitempty" yaml:"meta,omitempty"` Groupname string `json:"groupname,omitempty" yaml:"groupname,omitempty"` Exists matcher `json:"exists" yaml:"exists"` GID matcher `json:"gid,omitempty" yaml:"gid,omitempty"` Skip bool `json:"skip,omitempty" yaml:"skip,omitempty"` // contains filtered or unexported fields }
func (*Group) GetGroupname ¶ added in v0.4.0
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
func (*GroupMap) UnmarshalYAML ¶ added in v0.1.0
type HTTP ¶ added in v0.1.10
type HTTP struct { Title string `json:"title,omitempty" yaml:"title,omitempty"` Meta meta `json:"meta,omitempty" yaml:"meta,omitempty"` URL string `json:"url,omitempty" yaml:"url,omitempty"` Method string `json:"method,omitempty" yaml:"method,omitempty"` Status matcher `json:"status" yaml:"status"` AllowInsecure bool `json:"allow-insecure" yaml:"allow-insecure"` NoFollowRedirects bool `json:"no-follow-redirects" yaml:"no-follow-redirects"` Timeout int `json:"timeout,omitempty" yaml:"timeout,omitempty"` RequestHeader []string `json:"request-headers,omitempty" yaml:"request-headers,omitempty"` RequestBody string `json:"request-body,omitempty" yaml:"request-body,omitempty"` Headers matcher `json:"headers,omitempty" yaml:"headers,omitempty"` Body matcher `json:"body,omitempty" yaml:"body,omitempty"` Username string `json:"username,omitempty" yaml:"username,omitempty"` Password string `json:"password,omitempty" yaml:"password,omitempty"` CAFile string `json:"ca-file,omitempty" yaml:"ca-file,omitempty"` CertFile string `json:"cert-file,omitempty" yaml:"cert-file,omitempty"` KeyFile string `json:"key-file,omitempty" yaml:"key-file,omitempty"` Skip bool `json:"skip,omitempty" yaml:"skip,omitempty"` Proxy string `json:"proxy,omitempty" yaml:"proxy,omitempty"` // contains filtered or unexported fields }
type HTTPMap ¶ added in v0.1.10
func (HTTPMap) AppendSysResource ¶ added in v0.1.10
func (HTTPMap) AppendSysResourceIfExists ¶ added in v0.1.10
func (*HTTPMap) UnmarshalJSON ¶ added in v0.1.10
func (*HTTPMap) UnmarshalYAML ¶ added in v0.1.10
type Interface ¶ added in v0.1.8
type Interface struct { Title string `json:"title,omitempty" yaml:"title,omitempty"` Meta meta `json:"meta,omitempty" yaml:"meta,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` Exists matcher `json:"exists" yaml:"exists"` Addrs matcher `json:"addrs,omitempty" yaml:"addrs,omitempty"` MTU matcher `json:"mtu,omitempty" yaml:"mtu,omitempty"` Skip bool `json:"skip,omitempty" yaml:"skip,omitempty"` // contains filtered or unexported fields }
func NewInterface ¶ added in v0.1.8
type InterfaceMap ¶ added in v0.1.8
func (InterfaceMap) AppendSysResource ¶ added in v0.1.8
func (InterfaceMap) AppendSysResourceIfExists ¶ added in v0.1.8
func (*InterfaceMap) UnmarshalJSON ¶ added in v0.1.8
func (ret *InterfaceMap) UnmarshalJSON(data []byte) error
func (*InterfaceMap) UnmarshalYAML ¶ added in v0.1.8
func (ret *InterfaceMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
type KernelParam ¶ added in v0.1.8
type KernelParam struct { Title string `json:"title,omitempty" yaml:"title,omitempty"` Meta meta `json:"meta,omitempty" yaml:"meta,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` Key string `json:"-" yaml:"-"` Value matcher `json:"value" yaml:"value"` Skip bool `json:"skip,omitempty" yaml:"skip,omitempty"` // contains filtered or unexported fields }
func NewKernelParam ¶ added in v0.1.8
func NewKernelParam(sysKernelParam system.KernelParam, config util.Config) (*KernelParam, error)
func (*KernelParam) GetMeta ¶ added in v0.1.8
func (k *KernelParam) GetMeta() meta
func (*KernelParam) GetName ¶ added in v0.4.0
func (k *KernelParam) GetName() string
func (*KernelParam) GetTitle ¶ added in v0.1.8
func (k *KernelParam) GetTitle() string
FIXME: Can this be refactored?
func (*KernelParam) ID ¶ added in v0.1.8
func (k *KernelParam) ID() string
func (*KernelParam) SetID ¶ added in v0.1.8
func (a *KernelParam) SetID(id string)
func (*KernelParam) SetSkip ¶ added in v0.3.21
func (a *KernelParam) SetSkip()
func (*KernelParam) TypeKey ¶ added in v0.3.21
func (a *KernelParam) TypeKey() string
func (*KernelParam) TypeName ¶ added in v0.3.21
func (a *KernelParam) TypeName() string
func (*KernelParam) Validate ¶ added in v0.1.8
func (k *KernelParam) Validate(sys *system.System) []TestResult
type KernelParamMap ¶ added in v0.1.8
type KernelParamMap map[string]*KernelParam
func (KernelParamMap) AppendSysResource ¶ added in v0.1.8
func (r KernelParamMap) AppendSysResource(sr string, sys *system.System, config util.Config) (*KernelParam, error)
func (KernelParamMap) AppendSysResourceIfExists ¶ added in v0.1.8
func (r KernelParamMap) AppendSysResourceIfExists(sr string, sys *system.System) (*KernelParam, system.KernelParam, bool, error)
func (*KernelParamMap) UnmarshalJSON ¶ added in v0.1.8
func (ret *KernelParamMap) UnmarshalJSON(data []byte) error
func (*KernelParamMap) UnmarshalYAML ¶ added in v0.1.8
func (ret *KernelParamMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
type Matching ¶ added in v0.3.3
type Matching struct { Title string `json:"title,omitempty" yaml:"title,omitempty"` Meta meta `json:"meta,omitempty" yaml:"meta,omitempty"` Content any `json:"content,omitempty" yaml:"content,omitempty"` AsReader bool `json:"as-reader,omitempty" yaml:"as-reader,omitempty"` Matches matcher `json:"matches" yaml:"matches"` Skip bool `json:"skip,omitempty" yaml:"skip,omitempty"` // contains filtered or unexported fields }
type MatchingMap ¶ added in v0.3.3
func (*MatchingMap) UnmarshalJSON ¶ added in v0.3.3
func (ret *MatchingMap) UnmarshalJSON(data []byte) error
func (*MatchingMap) UnmarshalYAML ¶ added in v0.3.3
func (ret *MatchingMap) UnmarshalYAML(unmarshal func(v any) error) error
type Mount ¶ added in v0.1.8
type Mount struct { Title string `json:"title,omitempty" yaml:"title,omitempty"` Meta meta `json:"meta,omitempty" yaml:"meta,omitempty"` MountPoint string `json:"mountpoint,omitempty" yaml:"mountpoint,omitempty"` Exists matcher `json:"exists" yaml:"exists"` Opts matcher `json:"opts,omitempty" yaml:"opts,omitempty"` VfsOpts matcher `json:"vfs-opts,omitempty" yaml:"vfs-opts,omitempty"` Source matcher `json:"source,omitempty" yaml:"source,omitempty"` Filesystem matcher `json:"filesystem,omitempty" yaml:"filesystem,omitempty"` Timeout int `json:"timeout" yaml:"timeout"` Skip bool `json:"skip,omitempty" yaml:"skip,omitempty"` Usage matcher `json:"usage,omitempty" yaml:"usage,omitempty"` // contains filtered or unexported fields }
func (*Mount) GetMountPoint ¶ added in v0.4.0
type MountMap ¶ added in v0.1.8
func (MountMap) AppendSysResource ¶ added in v0.1.8
func (MountMap) AppendSysResourceIfExists ¶ added in v0.1.8
func (*MountMap) UnmarshalJSON ¶ added in v0.1.8
func (*MountMap) UnmarshalYAML ¶ added in v0.1.8
type Package ¶
type Package struct { Title string `json:"title,omitempty" yaml:"title,omitempty"` Meta meta `json:"meta,omitempty" yaml:"meta,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` Installed matcher `json:"installed" yaml:"installed"` Versions matcher `json:"versions,omitempty" yaml:"versions,omitempty"` Skip bool `json:"skip,omitempty" yaml:"skip,omitempty"` // contains filtered or unexported fields }
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 (ret *PackageMap) UnmarshalJSON(data []byte) error
func (*PackageMap) UnmarshalYAML ¶ added in v0.1.0
func (ret *PackageMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
type Port ¶
type Port struct { Title string `json:"title,omitempty" yaml:"title,omitempty"` Meta meta `json:"meta,omitempty" yaml:"meta,omitempty"` Port string `json:"port,omitempty" yaml:"port,omitempty"` Listening matcher `json:"listening" yaml:"listening"` IP matcher `json:"ip,omitempty" yaml:"ip,omitempty"` Skip bool `json:"skip,omitempty" yaml:"skip,omitempty"` // contains filtered or unexported fields }
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
func (*PortMap) UnmarshalYAML ¶ added in v0.1.0
type Process ¶
type Process struct { Title string `json:"title,omitempty" yaml:"title,omitempty"` Meta meta `json:"meta,omitempty" yaml:"meta,omitempty"` Comm string `json:"comm,omitempty" yaml:"comm,omitempty"` Running matcher `json:"running" yaml:"running"` Skip bool `json:"skip,omitempty" yaml:"skip,omitempty"` // contains filtered or unexported fields }
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 (ret *ProcessMap) UnmarshalJSON(data []byte) error
func (*ProcessMap) UnmarshalYAML ¶ added in v0.1.0
func (ret *ProcessMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
type ResourceRead ¶ added in v0.1.1
type Service ¶
type Service struct { Title string `json:"title,omitempty" yaml:"title,omitempty"` Meta meta `json:"meta,omitempty" yaml:"meta,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` Enabled matcher `json:"enabled" yaml:"enabled"` Running matcher `json:"running" yaml:"running"` Skip bool `json:"skip,omitempty" yaml:"skip,omitempty"` RunLevels matcher `json:"runlevels,omitempty" yaml:"runlevels,omitempty"` // contains filtered or unexported fields }
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 (ret *ServiceMap) UnmarshalJSON(data []byte) error
func (*ServiceMap) UnmarshalYAML ¶ added in v0.1.0
func (ret *ServiceMap) UnmarshalYAML(unmarshal func(v interface{}) error) error
type TestResult ¶
type TestResult struct { Successful bool `json:"successful" yaml:"successful"` Skipped bool `json:"skipped" yaml:"skipped"` // Resource data ResourceId string `json:"resource-id" yaml:"resource-id"` ResourceType string `json:"resource-type" yaml:"resource-type"` Property string `json:"property" yaml:"property"` // User added info Title string `json:"title" yaml:"title"` Meta meta `json:"meta" yaml:"meta"` // Result Result int `json:"result" yaml:"result"` Err *ValidateError `json:"err" yaml:"err"` MatcherResult matchers.MatcherResult `json:"matcher-result" yaml:"matcher-result"` StartTime time.Time `json:"start-time" yaml:"start-time"` EndTime time.Time `json:"end-time" yaml:"end-time"` Duration time.Duration `json:"duration" yaml:"duration"` }
func ValidateGomegaValue ¶ added in v0.4.0
func ValidateGomegaValue(res ResourceRead, property string, expectedValue any, actual any, skip bool) TestResult
func ValidateValue ¶
func ValidateValue(res ResourceRead, property string, expectedValue any, actual any, skip bool) TestResult
func (TestResult) SortKey ¶ added in v0.4.0
func (t TestResult) SortKey() string
func (TestResult) ToOutcome ¶ added in v0.3.21
func (tr TestResult) ToOutcome() string
ToOutcome converts the enum to a human-friendly string.
type User ¶
type User struct { Title string `json:"title,omitempty" yaml:"title,omitempty"` Meta meta `json:"meta,omitempty" yaml:"meta,omitempty"` Username string `json:"username,omitempty" yaml:"username,omitempty"` Exists matcher `json:"exists" yaml:"exists"` UID matcher `json:"uid,omitempty" yaml:"uid,omitempty"` GID matcher `json:"gid,omitempty" yaml:"gid,omitempty"` Groups matcher `json:"groups,omitempty" yaml:"groups,omitempty"` Home matcher `json:"home,omitempty" yaml:"home,omitempty"` Shell matcher `json:"shell,omitempty" yaml:"shell,omitempty"` Skip bool `json:"skip,omitempty" yaml:"skip,omitempty"` // contains filtered or unexported fields }
func (*User) GetUsername ¶ added in v0.4.0
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
func (*UserMap) UnmarshalYAML ¶ added in v0.1.0
type ValidateError ¶ added in v0.3.21
type ValidateError string
func (ValidateError) Error ¶ added in v0.3.21
func (g ValidateError) Error() string
Click to show internal directories.
Click to hide internal directories.