localmachine

package
v0.0.0-...-5584581 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Suffix = ".localmachine.json"

Variables

View Source
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) DecodeMsg

func (z *Group) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*Group) EncodeMsg

func (z *Group) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*Group) MarshalMsg

func (z *Group) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Group) Msgsize

func (z *Group) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Group) UnmarshalMsg

func (z *Group) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Groups

type Groups []Group

func (*Groups) DecodeMsg

func (z *Groups) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (Groups) EncodeMsg

func (z Groups) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (Groups) MarshalMsg

func (z Groups) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (Groups) Msgsize

func (z Groups) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Groups) UnmarshalMsg

func (z *Groups) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

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"`
	Shares     Shares             `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) DecodeMsg

func (z *Info) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*Info) EncodeMsg

func (z *Info) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*Info) MarshalMsg

func (z *Info) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Info) Msgsize

func (z *Info) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Info) UnmarshalMsg

func (z *Info) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

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) DecodeMsg

func (z *Machine) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*Machine) EncodeMsg

func (z *Machine) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*Machine) MarshalMsg

func (z *Machine) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Machine) Msgsize

func (z *Machine) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Machine) UnmarshalMsg

func (z *Machine) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Member

type Member struct {
	Name string `json:",omitempty"`
	SID  string `json:",omitempty"`
}

func (*Member) DecodeMsg

func (z *Member) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (Member) EncodeMsg

func (z Member) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (Member) MarshalMsg

func (z Member) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (Member) Msgsize

func (z Member) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Member) UnmarshalMsg

func (z *Member) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

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) DecodeMsg

func (z *Principal) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*Principal) EncodeMsg

func (z *Principal) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*Principal) MarshalMsg

func (z *Principal) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Principal) Msgsize

func (z *Principal) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Principal) UnmarshalMsg

func (z *Principal) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Privilege

type Privilege struct {
	Name         string   `json:",omitempty"`
	AssignedSIDs []string `json:",omitempty"`
}

func (*Privilege) DecodeMsg

func (z *Privilege) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*Privilege) EncodeMsg

func (z *Privilege) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*Privilege) MarshalMsg

func (z *Privilege) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Privilege) Msgsize

func (z *Privilege) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Privilege) UnmarshalMsg

func (z *Privilege) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

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

type RegistryData map[string]any

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) DecodeMsg

func (z *Service) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*Service) EncodeMsg

func (z *Service) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*Service) MarshalMsg

func (z *Service) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Service) Msgsize

func (z *Service) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Service) UnmarshalMsg

func (z *Service) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Services

type Services []Service

func (*Services) DecodeMsg

func (z *Services) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (Services) EncodeMsg

func (z Services) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (Services) MarshalMsg

func (z Services) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (Services) Msgsize

func (z Services) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Services) UnmarshalMsg

func (z *Services) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Share

type Share struct {
	Name        string `json:",omitempty"`
	Path        string `json:",omitempty"`
	Remark      string `json:",omitempty"`
	PathOwner   string `json:",omitempty"`
	DACL        []byte `json:",omitempty"`
	PathDACL    []byte `json:",omitempty"`
	Permissions int    `json:",omitempty"`
	Type        int    `json:",omitempty"`
}

func (*Share) DecodeMsg

func (z *Share) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*Share) EncodeMsg

func (z *Share) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*Share) MarshalMsg

func (z *Share) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Share) Msgsize

func (z *Share) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Share) UnmarshalMsg

func (z *Share) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Shares

type Shares []Share

func (*Shares) DecodeMsg

func (z *Shares) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (Shares) EncodeMsg

func (z Shares) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (Shares) MarshalMsg

func (z Shares) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (Shares) Msgsize

func (z Shares) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Shares) UnmarshalMsg

func (z *Shares) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

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) DecodeMsg

func (z *Software) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*Software) EncodeMsg

func (z *Software) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*Software) MarshalMsg

func (z *Software) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Software) Msgsize

func (z *Software) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Software) UnmarshalMsg

func (z *Software) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

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) DecodeMsg

func (z *User) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*User) EncodeMsg

func (z *User) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*User) MarshalMsg

func (z *User) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*User) Msgsize

func (z *User) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*User) UnmarshalMsg

func (z *User) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Users

type Users []User

func (*Users) DecodeMsg

func (z *Users) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (Users) EncodeMsg

func (z Users) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (Users) MarshalMsg

func (z Users) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (Users) Msgsize

func (z Users) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Users) UnmarshalMsg

func (z *Users) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL