Documentation
¶
Index ¶
- Constants
- Variables
- type Availability
- type Group
- type Groups
- type Info
- type LoginCount
- type LoginPopularity
- func (z *LoginPopularity) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *LoginPopularity) EncodeMsg(en *msgp.Writer) (err error)
- func (z *LoginPopularity) MarshalMsg(b []byte) (o []byte, err error)
- func (z *LoginPopularity) Msgsize() (s int)
- func (z *LoginPopularity) UnmarshalMsg(bts []byte) (o []byte, err error)
- type Machine
- type Member
- type NetworkInformation
- func (z *NetworkInformation) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *NetworkInformation) EncodeMsg(en *msgp.Writer) (err error)
- func (z *NetworkInformation) MarshalMsg(b []byte) (o []byte, err error)
- func (z *NetworkInformation) Msgsize() (s int)
- func (z *NetworkInformation) UnmarshalMsg(bts []byte) (o []byte, err error)
- type NetworkInterfaceInfo
- func (z *NetworkInterfaceInfo) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *NetworkInterfaceInfo) EncodeMsg(en *msgp.Writer) (err error)
- func (z *NetworkInterfaceInfo) MarshalMsg(b []byte) (o []byte, err error)
- func (z *NetworkInterfaceInfo) Msgsize() (s int)
- func (z *NetworkInterfaceInfo) UnmarshalMsg(bts []byte) (o []byte, err error)
- type Principal
- type Privilege
- type Privileges
- type RegisteredTask
- func (z *RegisteredTask) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *RegisteredTask) EncodeMsg(en *msgp.Writer) (err error)
- func (z *RegisteredTask) MarshalMsg(b []byte) (o []byte, err error)
- func (z *RegisteredTask) Msgsize() (s int)
- func (z *RegisteredTask) UnmarshalMsg(bts []byte) (o []byte, err error)
- type RegistrationInfo
- func (z *RegistrationInfo) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *RegistrationInfo) EncodeMsg(en *msgp.Writer) (err error)
- func (z *RegistrationInfo) MarshalMsg(b []byte) (o []byte, err error)
- func (z *RegistrationInfo) Msgsize() (s int)
- func (z *RegistrationInfo) UnmarshalMsg(bts []byte) (o []byte, err error)
- type RegistryData
- type Service
- type Services
- type Share
- type Shares
- type Software
- type TaskAction
- type TaskDefinition
- func (z *TaskDefinition) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *TaskDefinition) EncodeMsg(en *msgp.Writer) (err error)
- func (z *TaskDefinition) MarshalMsg(b []byte) (o []byte, err error)
- func (z *TaskDefinition) Msgsize() (s int)
- func (z *TaskDefinition) UnmarshalMsg(bts []byte) (o []byte, err error)
- type TaskSettings
- func (z *TaskSettings) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *TaskSettings) EncodeMsg(en *msgp.Writer) (err error)
- func (z *TaskSettings) MarshalMsg(b []byte) (o []byte, err error)
- func (z *TaskSettings) Msgsize() (s int)
- func (z *TaskSettings) UnmarshalMsg(bts []byte) (o []byte, err error)
- type User
- type Users
Constants ¶
const Suffix = ".localmachine.json"
Variables ¶
var ( InstalledSoftware = engine.NewAttribute("installedSoftware") MACAddress = engine.NewAttribute("mACAddress").Merge() )
Functions ¶
This section is empty.
Types ¶
type Availability ¶
type Availability struct { Day uint64 `json:",omitempty"` Week uint64 `json:",omitempty"` Month uint64 `json:",omitempty"` }
func (*Availability) DecodeMsg ¶
func (z *Availability) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (Availability) EncodeMsg ¶
func (z Availability) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (Availability) MarshalMsg ¶
func (z Availability) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (Availability) Msgsize ¶
func (z Availability) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*Availability) UnmarshalMsg ¶
func (z *Availability) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type Group ¶
type Group struct { Name string `json:",omitempty"` SID string `json:",omitempty"` Comment string `json:",omitempty"` Members []Member `json:",omitempty"` }
func (*Group) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Groups ¶
type Groups []Group
func (Groups) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Info ¶
type Info struct { basedata.Common RegistryData RegistryData `json:",omitempty"` Machine Machine `json:",omitempty"` LoginPopularity LoginPopularity `json:",omitempty"` // Hardware shared.Hardware `json:",omitempty"` Network NetworkInformation `json:",omitempty"` Users Users `json:",omitempty"` Groups Groups `json:",omitempty"` Services Services `json:",omitempty"` Software []Software `json:",omitempty"` Tasks []RegisteredTask `json:",omitempty"` Privileges Privileges `json:",omitempty"` // OperatingSystem shared.OperatingSystem `json:",omitempty"` // Memory shared.Memory `json:",omitempty"` Availability Availability `json:",omitempty"` UnprivilegedCollection bool `json:",omitempty"` // True if we know that the collector ran without admin rights, so some data will be missing }
func (*Info) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type LoginCount ¶
type LoginCount struct { Name string `json:",omitempty"` SID string `json:",omitempty"` Count uint64 `json:",omitempty"` }
func (*LoginCount) DecodeMsg ¶
func (z *LoginCount) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (LoginCount) EncodeMsg ¶
func (z LoginCount) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (LoginCount) MarshalMsg ¶
func (z LoginCount) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (LoginCount) Msgsize ¶
func (z LoginCount) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*LoginCount) UnmarshalMsg ¶
func (z *LoginCount) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type LoginPopularity ¶
type LoginPopularity struct { Day []LoginCount Week []LoginCount Month []LoginCount }
func (*LoginPopularity) DecodeMsg ¶
func (z *LoginPopularity) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*LoginPopularity) EncodeMsg ¶
func (z *LoginPopularity) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*LoginPopularity) MarshalMsg ¶
func (z *LoginPopularity) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*LoginPopularity) Msgsize ¶
func (z *LoginPopularity) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*LoginPopularity) UnmarshalMsg ¶
func (z *LoginPopularity) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type Machine ¶
type Machine struct { Name string `json:",omitempty"` LocalSID string `json:",omitempty"` Domain string `json:",omitempty"` ComputerDomainSID string `json:",omitempty"` Architecture string `json:",omitempty"` ProductName string `json:",omitempty"` ProductType string `json:",omitempty"` ProductSuite string `json:",omitempty"` EditionID string `json:",omitempty"` ReleaseID string `json:",omitempty"` BuildBranch string `json:",omitempty"` Version string `json:",omitempty"` BuildNumber string `json:",omitempty"` DefaultUsername string `json:",omitempty"` DefaultDomain string `json:",omitempty"` AltDefaultUsername string `json:",omitempty"` AltDefaultDomain string `json:",omitempty"` SCCMLastValidMP string `json:",omitempty"` WUServer string `json:",omitempty"` WUStatusServer string `json:",omitempty"` AppCache [][]byte `json:",omitempty"` NumberOfProcessors int `json:",omitempty"` MajorVersionNumber uint64 `json:",omitempty"` IsDomainJoined bool `json:",omitempty"` }
func (*Machine) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Member ¶
func (Member) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type NetworkInformation ¶
type NetworkInformation struct { InternetConnectivity string `json:",omitempty"` NetworkInterfaces []NetworkInterfaceInfo `json:",omitempty"` }
func (*NetworkInformation) DecodeMsg ¶
func (z *NetworkInformation) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*NetworkInformation) EncodeMsg ¶
func (z *NetworkInformation) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*NetworkInformation) MarshalMsg ¶
func (z *NetworkInformation) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*NetworkInformation) Msgsize ¶
func (z *NetworkInformation) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*NetworkInformation) UnmarshalMsg ¶
func (z *NetworkInformation) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type NetworkInterfaceInfo ¶
type NetworkInterfaceInfo struct { // Hardware net.Interface Name string `json:",omitempty"` MACAddress string `json:",omitempty"` Addresses []string `json:",omitempty"` Flags uint `json:",omitempty"` }
func (*NetworkInterfaceInfo) DecodeMsg ¶
func (z *NetworkInterfaceInfo) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*NetworkInterfaceInfo) EncodeMsg ¶
func (z *NetworkInterfaceInfo) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*NetworkInterfaceInfo) MarshalMsg ¶
func (z *NetworkInterfaceInfo) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*NetworkInterfaceInfo) Msgsize ¶
func (z *NetworkInterfaceInfo) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*NetworkInterfaceInfo) UnmarshalMsg ¶
func (z *NetworkInterfaceInfo) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type Principal ¶
type Principal struct { Name string `json:",omitempty"` GroupID string `json:",omitempty"` ID string `json:",omitempty"` UserID string `json:",omitempty"` LogonType int `json:",omitempty"` RunLevel int `json:",omitempty"` }
func (*Principal) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Privilege ¶
func (*Privilege) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Privileges ¶
type Privileges []Privilege
func (*Privileges) DecodeMsg ¶
func (z *Privileges) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (Privileges) EncodeMsg ¶
func (z Privileges) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (Privileges) MarshalMsg ¶
func (z Privileges) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (Privileges) Msgsize ¶
func (z Privileges) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*Privileges) UnmarshalMsg ¶
func (z *Privileges) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type RegisteredTask ¶
type RegisteredTask struct { NextRunTime time.Time `json:",omitempty"` LastRunTime time.Time `json:",omitempty"` Definition TaskDefinition `json:",omitempty"` Name string `json:",omitempty"` Path string `json:",omitempty"` State string `json:",omitempty"` MissedRuns uint `json:",omitempty"` LastTaskResult uint32 `json:",omitempty"` Enabled bool `json:",omitempty"` }
func (*RegisteredTask) DecodeMsg ¶
func (z *RegisteredTask) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*RegisteredTask) EncodeMsg ¶
func (z *RegisteredTask) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*RegisteredTask) MarshalMsg ¶
func (z *RegisteredTask) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*RegisteredTask) Msgsize ¶
func (z *RegisteredTask) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*RegisteredTask) UnmarshalMsg ¶
func (z *RegisteredTask) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type RegistrationInfo ¶
type RegistrationInfo struct { Author string `json:",omitempty"` Date time.Time `json:",omitempty"` Description string `json:",omitempty"` Documentation string `json:",omitempty"` SecurityDescriptor string `json:",omitempty"` Source string `json:",omitempty"` URI string `json:",omitempty"` Version string `json:",omitempty"` }
func (*RegistrationInfo) DecodeMsg ¶
func (z *RegistrationInfo) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*RegistrationInfo) EncodeMsg ¶
func (z *RegistrationInfo) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*RegistrationInfo) MarshalMsg ¶
func (z *RegistrationInfo) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*RegistrationInfo) Msgsize ¶
func (z *RegistrationInfo) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*RegistrationInfo) UnmarshalMsg ¶
func (z *RegistrationInfo) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type RegistryData ¶
func (*RegistryData) DecodeMsg ¶
func (z *RegistryData) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (RegistryData) EncodeMsg ¶
func (z RegistryData) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (RegistryData) MarshalMsg ¶
func (z RegistryData) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (RegistryData) Msgsize ¶
func (z RegistryData) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*RegistryData) UnmarshalMsg ¶
func (z *RegistryData) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type Service ¶
type Service struct { RegistryOwner string `json:",omitempty"` Name string `json:",omitempty"` DisplayName string `json:",omitempty"` Description string `json:",omitempty"` ImagePath string `json:",omitempty"` ImageExecutable string `json:",omitempty"` ImageExecutableOwner string `json:",omitempty"` Account string `json:",omitempty"` AccountSID string `json:",omitempty"` RegistryDACL []byte `json:",omitempty"` ImageExecutableDACL []byte `json:",omitempty"` RequiredPrivileges []string `json:",omitempty"` Start int `json:",omitempty"` Type int `json:",omitempty"` }
func (*Service) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Services ¶
type Services []Service
func (Services) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Share ¶
type Share struct {}
func (*Share) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Shares ¶
type Shares []Share
func (Shares) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Software ¶
type Software struct { InstallDate time.Time `json:"installDate"` DisplayName string `json:"displayName"` DisplayVersion string `json:"displayVersion"` Arch string `json:"arch"` Publisher string `json:"publisher"` Contact string `json:"Contact"` HelpLink string `json:"HelpLink"` InstallSource string `json:"InstallSource"` InstallLocation string `json:"InstallLocation"` UninstallString string `json:"UninstallString"` EstimatedSize uint64 `json:"estimatedSize"` VersionMajor uint64 `json:"VersionMajor"` VersionMinor uint64 `json:"VersionMinor"` }
func (*Software) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type TaskAction ¶
type TaskAction struct { Type string `json:",omitempty"` PathOwner string `json:",omitempty"` Path string `json:",omitempty"` Args string `json:",omitempty"` WorkingDir string `json:",omitempty"` PathDACL []byte `json:",omitempty"` }
func (*TaskAction) DecodeMsg ¶
func (z *TaskAction) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*TaskAction) EncodeMsg ¶
func (z *TaskAction) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*TaskAction) MarshalMsg ¶
func (z *TaskAction) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*TaskAction) Msgsize ¶
func (z *TaskAction) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*TaskAction) UnmarshalMsg ¶
func (z *TaskAction) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type TaskDefinition ¶
type TaskDefinition struct { RegistrationInfo RegistrationInfo `json:",omitempty"` Principal Principal `json:",omitempty"` Context string `json:",omitempty"` Data string `json:",omitempty"` XMLText string `json:",omitempty"` Settings TaskSettings `json:",omitempty"` Actions []TaskAction `json:",omitempty"` Triggers []string `json:",omitempty"` }
func (*TaskDefinition) DecodeMsg ¶
func (z *TaskDefinition) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*TaskDefinition) EncodeMsg ¶
func (z *TaskDefinition) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*TaskDefinition) MarshalMsg ¶
func (z *TaskDefinition) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*TaskDefinition) Msgsize ¶
func (z *TaskDefinition) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*TaskDefinition) UnmarshalMsg ¶
func (z *TaskDefinition) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type TaskSettings ¶
type TaskSettings struct { DeleteExpiredTaskAfter string `json:",omitempty"` TimeLimit string `json:",omitempty"` RestartInterval string `json:",omitempty"` Priority uint `json:",omitempty"` RestartCount uint `json:",omitempty"` AllowDemandStart bool `json:",omitempty"` AllowHardTerminate bool `json:",omitempty"` DontStartOnBatteries bool `json:",omitempty"` Enabled bool `json:",omitempty"` Hidden bool `json:",omitempty"` RunOnlyIfIdle bool `json:",omitempty"` RunOnlyIfNetworkAvailable bool `json:",omitempty"` StartWhenAvailable bool `json:",omitempty"` StopIfGoingOnBatteries bool `json:",omitempty"` WakeToRun bool `json:",omitempty"` }
func (*TaskSettings) DecodeMsg ¶
func (z *TaskSettings) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*TaskSettings) EncodeMsg ¶
func (z *TaskSettings) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*TaskSettings) MarshalMsg ¶
func (z *TaskSettings) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*TaskSettings) Msgsize ¶
func (z *TaskSettings) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*TaskSettings) UnmarshalMsg ¶
func (z *TaskSettings) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type User ¶
type User struct { PasswordLastSet time.Time `json:",omitempty"` LastLogon time.Time `json:",omitempty"` LastLogoff time.Time `json:",omitempty"` Name string `json:",omitempty"` SID string `json:",omitempty"` FullName string `json:",omitempty"` BadPasswordCount int `json:",omitempty"` NumberOfLogins int `json:",omitempty"` IsEnabled bool `json:",omitempty"` IsLocked bool `json:",omitempty"` IsAdmin bool `json:",omitempty"` PasswordNeverExpires bool `json:",omitempty"` NoChangePassword bool `json:",omitempty"` }
func (*User) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Users ¶
type Users []User
func (Users) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler