Documentation ¶
Index ¶
- type Disk
- type DiskConfig
- type EtcHosts
- type EtcHostsConfig
- type FSTab
- type FSTabConfig
- type Get
- type GetConfig
- type IPTables
- type IPTablesConfig
- type Info
- type InfoConfig
- type InfoStat
- type Memory
- type Network
- type NetworkConfig
- type NetworkInterface
- type OS
- type OSConfig
- type Partition
- type Proc
- type ProcFile
- type ProcFileConfig
- type Process
- type ProcessConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Disk ¶
type Disk struct { // Redactions includes any redactions to apply to the output of the runner. Redactions []*redact.Redact `json:"redactions"` // Timeout specifies the amount of time that the runner should be allowed to execute before cancellation. Timeout runner.Timeout `json:"timeout"` // contains filtered or unexported fields }
func NewDisk ¶
func NewDisk(cfg DiskConfig) *Disk
func NewDiskWithContext ¶ added in v0.5.0
func NewDiskWithContext(ctx context.Context, cfg DiskConfig) *Disk
type DiskConfig ¶ added in v0.5.0
type EtcHosts ¶
type EtcHosts struct { OS string `json:"os"` Redactions []*redact.Redact `json:"redactions"` Timeout runner.Timeout `json:"timeout"` // contains filtered or unexported fields }
func NewEtcHosts ¶
func NewEtcHosts(cfg EtcHostsConfig) *EtcHosts
func NewEtcHostsWithContext ¶ added in v0.5.0
func NewEtcHostsWithContext(ctx context.Context, cfg EtcHostsConfig) *EtcHosts
type EtcHostsConfig ¶ added in v0.5.0
type FSTab ¶
type FSTab struct { OS string `json:"os"` Shell runner.Runner `json:"shell"` Timeout runner.Timeout `json:"timeout"` // contains filtered or unexported fields }
FSTab accepts
func NewFSTab ¶
func NewFSTab(cfg FSTabConfig) (*FSTab, error)
NewFSTab takes FSTabConfig and returns a runnable FSTab.
func NewFSTabWithContext ¶ added in v0.5.0
func NewFSTabWithContext(ctx context.Context, cfg FSTabConfig) (*FSTab, error)
NewFSTabWithContext takes a Context and FSTabConfig and returns a runnable FSTab.
type FSTabConfig ¶ added in v0.5.0
type FSTabConfig struct { OS string `json:"os"` Timeout runner.Timeout `json:"timeout"` Redactions []*redact.Redact `json:"redactions"` }
FSTabConfig takes each parameter to configure an FSTab runner implementation.
type Get ¶
type Get struct { Path string `json:"path"` // Redactions includes any redactions to apply to the output of the runner. Redactions []*redact.Redact `json:"redactions"` // Timeout specifies the amount of time that the runner should be allowed to execute before cancellation. Timeout runner.Timeout `json:"timeout"` // contains filtered or unexported fields }
func NewGetWithContext ¶ added in v0.5.0
type IPTables ¶
type IPTables struct { OS string `json:"os"` Commands []string `json:"commands"` Redactions []*redact.Redact `json:"redactions"` Timeout runner.Timeout `json:"timeout"` // contains filtered or unexported fields }
func NewIPTables ¶
func NewIPTables(cfg IPTablesConfig) *IPTables
NewIPTables returns a runner configured to run several iptables commands
func NewIPTablesWithContext ¶ added in v0.5.0
func NewIPTablesWithContext(ctx context.Context, cfg IPTablesConfig) *IPTables
NewIPTablesWithContext returns a runner configured to run several iptables commands
type IPTablesConfig ¶ added in v0.5.0
type Info ¶
type Info struct { // Redactions includes any redactions to apply to the output of the runner. Redactions []*redact.Redact `json:"redactions"` // Timeout specifies the amount of time that the runner should be allowed to execute before cancellation. Timeout runner.Timeout `json:"timeout"` // contains filtered or unexported fields }
func NewInfo ¶
func NewInfo(cfg InfoConfig) *Info
func NewInfoWithContext ¶ added in v0.5.0
func NewInfoWithContext(ctx context.Context, cfg InfoConfig) *Info
type InfoConfig ¶ added in v0.5.0
type InfoStat ¶
type InfoStat struct { Hostname string `json:"hostname"` OS string `json:"os"` Platform string `json:"platform"` PlatformFamily string `json:"platformFamily"` PlatformVersion string `json:"platformVersion"` KernelVersion string `json:"kernelVersion"` KernelArch string `json:"kernelArch"` VirtualizationSystem string `json:"virtualizationSystem"` VirtualizationRole string `json:"virtualizationRole"` HostID string `json:"hostId"` Uptime uint64 `json:"uptime"` BootTime uint64 `json:"bootTime"` Procs uint64 `json:"procs"` }
InfoStat includes general information about the Host. It serves as the basis for the results produced by the Info runner.
type Memory ¶
type Memory struct { Timeout runner.Timeout `json:"timeout"` // contains filtered or unexported fields }
func NewMemoryWithContext ¶ added in v0.5.0
type Network ¶
type Network struct { // Redactions includes any redactions to apply to the output of the runner. Redactions []*redact.Redact `json:"redactions"` // Timeout specifies the amount of time that the runner should be allowed to execute before cancellation. Timeout runner.Timeout `json:"timeout"` // contains filtered or unexported fields }
func NewNetwork ¶
func NewNetwork(cfg NetworkConfig) *Network
func NewNetworkWithContext ¶ added in v0.5.0
func NewNetworkWithContext(ctx context.Context, cfg NetworkConfig) *Network
type NetworkConfig ¶ added in v0.5.0
type NetworkInterface ¶
type NetworkInterface struct { Index int `json:"index"` MTU int `json:"mtu"` Name string `json:"name"` Flags []string `json:"flags"` Addrs []string `json:"addrs"` }
NetworkInterface represents details about a network interface. This serves as the basis for the results produced by the Network runner.
type OS ¶
type OS struct { // OS is the operating system family of the host. OS string `json:"os"` // Command is the command that will execute to gather OS details. Command string `json:"command"` // Redactions includes any redactions to apply to the output of the runner. Redactions []*redact.Redact `json:"redactions"` // Timeout specifies the amount of time that the runner should be allowed to execute before cancellation. Timeout runner.Timeout `json:"timeout"` // contains filtered or unexported fields }
func NewOSWithContext ¶ added in v0.5.0
type OSConfig ¶ added in v0.5.0
type OSConfig struct { // OS is the operating system family of the host. OS string // Redactions includes any redactions to apply to the output of the runner. Redactions []*redact.Redact // Timeout specifies the amount of time that the runner should be allowed to execute before cancellation. Timeout time.Duration }
type Partition ¶
type Partition struct { Device string `json:"device"` Mountpoint string `json:"mountpoint"` Fstype string `json:"fstype"` Opts []string `json:"opts"` }
Partition includes details about a disk partition. This serves as the basis for the results produced by the Disk runner.
type ProcFile ¶
type ProcFile struct { OS string `json:"os"` Commands []string `json:"commands"` Redactions []*redact.Redact `json:"redactions"` Timeout runner.Timeout `json:"timeout"` // contains filtered or unexported fields }
func NewProcFile ¶
func NewProcFile(cfg ProcFileConfig) *ProcFile
func NewProcFileWithContext ¶ added in v0.5.0
func NewProcFileWithContext(ctx context.Context, cfg ProcFileConfig) *ProcFile
type ProcFileConfig ¶ added in v0.5.0
type Process ¶
type Process struct { // Redactions includes any redactions to apply to the output of the runner. Redactions []*redact.Redact `json:"redactions"` // Timeout specifies the amount of time that the runner should be allowed to execute before cancellation. Timeout runner.Timeout `json:"timeout"` // contains filtered or unexported fields }
Process represents a single OS Process
func NewProcess ¶
func NewProcess(cfg ProcessConfig) *Process
func NewProcessWithContext ¶ added in v0.5.0
func NewProcessWithContext(ctx context.Context, cfg ProcessConfig) *Process