Documentation ¶
Index ¶
- Variables
- func GetPorts() map[string]map[string]string
- type Addr
- type Command
- type DNS
- type File
- func (f *File) Contains() (io.Reader, error)
- func (f *File) Exists() (interface{}, error)
- func (f *File) Filetype() (interface{}, error)
- func (f *File) Group() (interface{}, error)
- func (f *File) LinkedTo() (interface{}, error)
- func (f *File) Mode() (interface{}, error)
- func (f *File) Owner() (interface{}, error)
- func (f *File) Path() string
- type Gossfile
- type Group
- type Package
- type PackageDeb
- type PackageNull
- type PackageRpm
- type Port
- type Process
- type Resource
- 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 Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func (*Command) ExitStatus ¶
type DNS ¶
type DNS struct { Timeout int64 // contains filtered or unexported fields }
func (*DNS) Resolveable ¶
type Gossfile ¶
type Gossfile struct {
// contains filtered or unexported fields
}
func NewGossfile ¶
type Package ¶
type Package interface { Name() string Installed() (interface{}, error) Versions() ([]string, error) }
func NewPackageDeb ¶
func NewPackageNull ¶
func NewPackageRpm ¶
type PackageDeb ¶
type PackageDeb struct {
// contains filtered or unexported fields
}
func (*PackageDeb) Installed ¶
func (p *PackageDeb) Installed() (interface{}, error)
func (*PackageDeb) Name ¶
func (p *PackageDeb) Name() string
func (*PackageDeb) Versions ¶
func (p *PackageDeb) Versions() ([]string, error)
type PackageNull ¶
type PackageNull struct {
// contains filtered or unexported fields
}
func (*PackageNull) Installed ¶
func (p *PackageNull) Installed() (interface{}, error)
func (*PackageNull) Name ¶
func (p *PackageNull) Name() string
func (*PackageNull) Versions ¶
func (p *PackageNull) Versions() ([]string, error)
type PackageRpm ¶
type PackageRpm struct {
// contains filtered or unexported fields
}
func (*PackageRpm) Installed ¶
func (p *PackageRpm) Installed() (interface{}, error)
func (*PackageRpm) Name ¶
func (p *PackageRpm) Name() string
func (*PackageRpm) Versions ¶
func (p *PackageRpm) Versions() ([]string, error)
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
func NewProcess ¶
func (*Process) Executable ¶
type Service ¶
type Service interface { Service() string 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) 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) 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.