Documentation ¶
Index ¶
- Variables
- func GetPorts(lookupPids bool) map[string]GOnetstat.Process
- func GetProcs() map[string][]ps.Process
- type Addr
- type Command
- type DNS
- type DebPackage
- type DefAddr
- type DefCommand
- type DefDNS
- type DefFile
- func (f *DefFile) Contains() (io.Reader, error)
- func (f *DefFile) Exists() (interface{}, error)
- func (f *DefFile) Filetype() (interface{}, error)
- func (f *DefFile) Group() (interface{}, error)
- func (f *DefFile) LinkedTo() (interface{}, error)
- func (f *DefFile) Mode() (interface{}, error)
- func (f *DefFile) Owner() (interface{}, error)
- func (f *DefFile) Path() string
- type DefGossfile
- type DefGroup
- type DefPort
- type DefProcess
- type DefUser
- type File
- type Gossfile
- type Group
- type NullPackage
- type Package
- type Port
- type Process
- type Resource
- type RpmPackage
- type Service
- type ServiceDbus
- type ServiceInit
- type System
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNullPackage = errors.New("Could not detect Package type on this system, please use --package flag to explicity set it")
Functions ¶
Types ¶
type Addr ¶
type Addr interface { Address() string Exists() (interface{}, error) Reachable() (interface{}, error) SetTimeout(int64) }
func NewDefAddr ¶ added in v0.0.4
type Command ¶
type Command interface { Command() string Exists() (interface{}, error) ExitStatus() (interface{}, error) Stdout() (io.Reader, error) Stderr() (io.Reader, error) }
func NewDefCommand ¶ added in v0.0.4
type DNS ¶
type DebPackage ¶ added in v0.0.4
type DebPackage struct {
// contains filtered or unexported fields
}
func (*DebPackage) Exists ¶ added in v0.0.4
func (p *DebPackage) Exists() (interface{}, error)
func (*DebPackage) Installed ¶ added in v0.0.4
func (p *DebPackage) Installed() (interface{}, error)
func (*DebPackage) Name ¶ added in v0.0.4
func (p *DebPackage) Name() string
func (*DebPackage) Versions ¶ added in v0.0.4
func (p *DebPackage) Versions() ([]string, error)
type DefAddr ¶ added in v0.0.4
type DefAddr struct { Timeout int64 // contains filtered or unexported fields }
func (*DefAddr) SetTimeout ¶ added in v0.0.4
type DefCommand ¶ added in v0.0.4
type DefCommand struct {
// contains filtered or unexported fields
}
func (*DefCommand) Command ¶ added in v0.0.4
func (c *DefCommand) Command() string
func (*DefCommand) Exists ¶ added in v0.0.4
func (c *DefCommand) Exists() (interface{}, error)
Stub out
func (*DefCommand) ExitStatus ¶ added in v0.0.4
func (c *DefCommand) ExitStatus() (interface{}, error)
type DefDNS ¶ added in v0.0.4
type DefDNS struct { Timeout int64 // contains filtered or unexported fields }
func (*DefDNS) Resolveable ¶ added in v0.0.4
func (*DefDNS) SetTimeout ¶ added in v0.0.4
type DefGossfile ¶ added in v0.0.4
type DefGossfile struct {
// contains filtered or unexported fields
}
func (*DefGossfile) Exists ¶ added in v0.0.4
func (g *DefGossfile) Exists() (interface{}, error)
Stub out
func (*DefGossfile) Path ¶ added in v0.0.4
func (g *DefGossfile) Path() string
type DefProcess ¶ added in v0.0.4
type DefProcess struct {
// contains filtered or unexported fields
}
func (*DefProcess) Executable ¶ added in v0.0.4
func (p *DefProcess) Executable() string
func (*DefProcess) Exists ¶ added in v0.0.4
func (p *DefProcess) Exists() (interface{}, error)
func (*DefProcess) Pids ¶ added in v0.0.4
func (p *DefProcess) Pids() ([]int, error)
func (*DefProcess) Running ¶ added in v0.0.4
func (p *DefProcess) Running() (interface{}, error)
type File ¶
type File interface { Path() string Exists() (interface{}, error) Contains() (io.Reader, error) Mode() (interface{}, error) Filetype() (interface{}, error) Owner() (interface{}, error) Group() (interface{}, error) LinkedTo() (interface{}, error) }
func NewDefFile ¶ added in v0.0.4
type Gossfile ¶
func NewDefGossfile ¶ added in v0.0.4
type Group ¶
type Group interface { Groupname() string Exists() (interface{}, error) Gid() (interface{}, error) }
func NewDefGroup ¶ added in v0.0.4
type NullPackage ¶ added in v0.0.4
type NullPackage struct {
// contains filtered or unexported fields
}
func (*NullPackage) Exists ¶ added in v0.0.4
func (p *NullPackage) Exists() (interface{}, error)
func (*NullPackage) Installed ¶ added in v0.0.4
func (p *NullPackage) Installed() (interface{}, error)
func (*NullPackage) Name ¶ added in v0.0.4
func (p *NullPackage) Name() string
func (*NullPackage) Versions ¶ added in v0.0.4
func (p *NullPackage) Versions() ([]string, error)
type Package ¶
type Package interface { Name() string Exists() (interface{}, error) Installed() (interface{}, error) Versions() ([]string, error) }
func NewDebPackage ¶ added in v0.0.4
func NewNullPackage ¶ added in v0.0.4
func NewRpmPackage ¶ added in v0.0.4
type Port ¶
type Port interface { Port() string Exists() (interface{}, error) Listening() (interface{}, error) IP() (interface{}, error) }
func NewDefPort ¶ added in v0.0.4
type Process ¶
type Process interface { Executable() string Exists() (interface{}, error) Running() (interface{}, error) Pids() ([]int, error) }
func NewDefProcess ¶ added in v0.0.4
type RpmPackage ¶ added in v0.0.4
type RpmPackage struct {
// contains filtered or unexported fields
}
func (*RpmPackage) Exists ¶ added in v0.0.4
func (p *RpmPackage) Exists() (interface{}, error)
func (*RpmPackage) Installed ¶ added in v0.0.4
func (p *RpmPackage) Installed() (interface{}, error)
func (*RpmPackage) Name ¶ added in v0.0.4
func (p *RpmPackage) Name() string
func (*RpmPackage) Versions ¶ added in v0.0.4
func (p *RpmPackage) Versions() ([]string, error)
type Service ¶
type Service interface { Service() string Exists() (interface{}, error) Enabled() (interface{}, error) Running() (interface{}, error) }
func NewServiceDbus ¶
func NewServiceInit ¶
type ServiceDbus ¶
type ServiceDbus struct {
// contains filtered or unexported fields
}
func (*ServiceDbus) Enabled ¶
func (s *ServiceDbus) Enabled() (interface{}, error)
func (*ServiceDbus) Exists ¶ added in v0.0.2
func (s *ServiceDbus) Exists() (interface{}, error)
func (*ServiceDbus) Running ¶
func (s *ServiceDbus) Running() (interface{}, error)
func (*ServiceDbus) Service ¶
func (s *ServiceDbus) Service() string
type ServiceInit ¶
type ServiceInit struct {
// contains filtered or unexported fields
}
func (*ServiceInit) Enabled ¶
func (s *ServiceInit) Enabled() (interface{}, error)
func (*ServiceInit) Exists ¶ added in v0.0.2
func (s *ServiceInit) Exists() (interface{}, error)
func (*ServiceInit) Running ¶
func (s *ServiceInit) Running() (interface{}, error)
func (*ServiceInit) Service ¶
func (s *ServiceInit) Service() string
type System ¶
type System struct { NewPackage func(string, *System) Package NewFile func(string, *System) File NewAddr func(string, *System) Addr NewPort func(string, *System) Port NewService func(string, *System) Service NewUser func(string, *System) User NewGroup func(string, *System) Group NewCommand func(string, *System) Command NewDNS func(string, *System) DNS NewProcess func(string, *System) Process NewGossfile func(string, *System) Gossfile Dbus *dbus.Conn // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.