localmachine

package
v0.0.0-...-f1573f2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: AGPL-3.0 Imports: 8 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) MarshalEasyJSON

func (v Availability) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Availability) MarshalJSON

func (v Availability) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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

func (v *Availability) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Availability) UnmarshalJSON

func (v *Availability) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

func (v Group) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Group) MarshalJSON

func (v Group) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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

func (v *Group) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Group) UnmarshalJSON

func (v *Group) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

	UnprivilegedCollection bool `json:",omitempty"` // True if we know that the collector ran without admin rights, so some data will be missing

	Machine Machine `json:",omitempty"`
	// Hardware        shared.Hardware        `json:",omitempty"`
	Network NetworkInformation `json:",omitempty"`

	Availability    Availability    `json:",omitempty"`
	LoginPopularity LoginPopularity `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"`
}

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

func (v Info) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Info) MarshalJSON

func (v Info) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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

func (v *Info) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Info) UnmarshalJSON

func (v *Info) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

func (v LoginCount) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (LoginCount) MarshalJSON

func (v LoginCount) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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

func (v *LoginCount) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LoginCount) UnmarshalJSON

func (v *LoginCount) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

func (v LoginPopularity) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (LoginPopularity) MarshalJSON

func (v LoginPopularity) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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

func (v *LoginPopularity) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LoginPopularity) UnmarshalJSON

func (v *LoginPopularity) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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"`
	IsDomainJoined    bool   `json:",omitempty"`

	Architecture       string `json:",omitempty"`
	NumberOfProcessors int    `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"`
	MajorVersionNumber uint64 `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"`

	AppCache [][]byte `json:",omitempty"`

	SCCMLastValidMP string `json:",omitempty"`

	WUServer       string `json:",omitempty"`
	WUStatusServer string `json:",omitempty"`

	UACConsentPromptBehaviorAdmin    uint64 `json:",omitempty"`
	UACEnableLUA                     uint64 `json:",omitempty"`
	UACLocalAccountTokenFilterPolicy uint64 `json:",omitempty"`
	UACFilterAdministratorToken      uint64 `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) MarshalEasyJSON

func (v Machine) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Machine) MarshalJSON

func (v Machine) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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

func (v *Machine) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Machine) UnmarshalJSON

func (v *Machine) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

func (v Member) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Member) MarshalJSON

func (v Member) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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

func (v *Member) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Member) UnmarshalJSON

func (v *Member) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

func (v NetworkInformation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (NetworkInformation) MarshalJSON

func (v NetworkInformation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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

func (v *NetworkInformation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*NetworkInformation) UnmarshalJSON

func (v *NetworkInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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"`
	Flags      uint     `json:",omitempty"`
	Addresses  []string `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) MarshalEasyJSON

func (v NetworkInterfaceInfo) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (NetworkInterfaceInfo) MarshalJSON

func (v NetworkInterfaceInfo) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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

func (v *NetworkInterfaceInfo) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*NetworkInterfaceInfo) UnmarshalJSON

func (v *NetworkInterfaceInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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"`
	LogonType int    `json:",omitempty"`
	RunLevel  int    `json:",omitempty"`
	UserID    string `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) MarshalEasyJSON

func (v Principal) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Principal) MarshalJSON

func (v Principal) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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

func (v *Principal) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Principal) UnmarshalJSON

func (v *Principal) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

func (v Privilege) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Privilege) MarshalJSON

func (v Privilege) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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

func (v *Privilege) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Privilege) UnmarshalJSON

func (v *Privilege) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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 {
	Name           string         `json:",omitempty"`
	Path           string         `json:",omitempty"`
	Definition     TaskDefinition `json:",omitempty"`
	Enabled        bool           `json:",omitempty"`
	State          string         `json:",omitempty"`
	MissedRuns     uint           `json:",omitempty"`
	NextRunTime    time.Time      `json:",omitempty"`
	LastRunTime    time.Time      `json:",omitempty"`
	LastTaskResult uint32         `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) MarshalEasyJSON

func (v RegisteredTask) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RegisteredTask) MarshalJSON

func (v RegisteredTask) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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

func (v *RegisteredTask) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RegisteredTask) UnmarshalJSON

func (v *RegisteredTask) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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

func (v RegistrationInfo) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RegistrationInfo) MarshalJSON

func (v RegistrationInfo) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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

func (v *RegistrationInfo) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RegistrationInfo) UnmarshalJSON

func (v *RegistrationInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (*RegistrationInfo) UnmarshalMsg

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

UnmarshalMsg implements msgp.Unmarshaler

type Service

type Service struct {
	RegistryOwner string `json:",omitempty"`
	RegistryDACL  []byte `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"`
	ImageExecutableDACL  []byte `json:",omitempty"`

	Start int `json:",omitempty"`
	Type  int `json:",omitempty"`

	Account            string   `json:",omitempty"`
	AccountSID         string   `json:",omitempty"`
	RequiredPrivileges []string `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) MarshalEasyJSON

func (v Service) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Service) MarshalJSON

func (v Service) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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

func (v *Service) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Service) UnmarshalJSON

func (v *Service) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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"`
	Permissions int    `json:",omitempty"`
	Type        int    `json:",omitempty"`
	DACL        []byte `json:",omitempty"`
	PathDACL    []byte `json:",omitempty"`
	PathOwner   string `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) MarshalEasyJSON

func (v Share) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Share) MarshalJSON

func (v Share) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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

func (v *Share) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Share) UnmarshalJSON

func (v *Share) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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 {
	DisplayName     string    `json:"displayName"`
	DisplayVersion  string    `json:"displayVersion"`
	Arch            string    `json:"arch"`
	Publisher       string    `json:"publisher"`
	InstallDate     time.Time `json:"installDate"`
	EstimatedSize   uint64    `json:"estimatedSize"`
	Contact         string    `json:"Contact"`
	HelpLink        string    `json:"HelpLink"`
	InstallSource   string    `json:"InstallSource"`
	InstallLocation string    `json:"InstallLocation"`
	UninstallString string    `json:"UninstallString"`
	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) MarshalEasyJSON

func (v Software) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Software) MarshalJSON

func (v Software) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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

func (v *Software) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Software) UnmarshalJSON

func (v *Software) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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"`
	PathDACL   []byte `json:",omitempty"`
	PathOwner  string `json:",omitempty"`
	Path       string `json:",omitempty"`
	Args       string `json:",omitempty"`
	WorkingDir string `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) MarshalEasyJSON

func (v TaskAction) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TaskAction) MarshalJSON

func (v TaskAction) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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

func (v *TaskAction) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TaskAction) UnmarshalJSON

func (v *TaskAction) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (*TaskAction) UnmarshalMsg

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

UnmarshalMsg implements msgp.Unmarshaler

type TaskDefinition

type TaskDefinition struct {
	Actions          []TaskAction     `json:",omitempty"`
	Context          string           `json:",omitempty"`
	Data             string           `json:",omitempty"`
	Principal        Principal        `json:",omitempty"`
	RegistrationInfo RegistrationInfo `json:",omitempty"`
	Settings         TaskSettings     `json:",omitempty"`
	Triggers         []string         `json:",omitempty"`
	XMLText          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) MarshalEasyJSON

func (v TaskDefinition) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TaskDefinition) MarshalJSON

func (v TaskDefinition) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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

func (v *TaskDefinition) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TaskDefinition) UnmarshalJSON

func (v *TaskDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (*TaskDefinition) UnmarshalMsg

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

UnmarshalMsg implements msgp.Unmarshaler

type TaskSettings

type TaskSettings struct {
	AllowDemandStart          bool   `json:",omitempty"`
	AllowHardTerminate        bool   `json:",omitempty"`
	DeleteExpiredTaskAfter    string `json:",omitempty"`
	DontStartOnBatteries      bool   `json:",omitempty"`
	Enabled                   bool   `json:",omitempty"`
	TimeLimit                 string `json:",omitempty"`
	Hidden                    bool   `json:",omitempty"`
	Priority                  uint   `json:",omitempty"`
	RestartCount              uint   `json:",omitempty"`
	RestartInterval           string `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) MarshalEasyJSON

func (v TaskSettings) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TaskSettings) MarshalJSON

func (v TaskSettings) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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

func (v *TaskSettings) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TaskSettings) UnmarshalJSON

func (v *TaskSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (*TaskSettings) UnmarshalMsg

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

UnmarshalMsg implements msgp.Unmarshaler

type User

type User struct {
	Name                 string    `json:",omitempty"`
	SID                  string    `json:",omitempty"`
	FullName             string    `json:",omitempty"`
	IsEnabled            bool      `json:",omitempty"`
	IsLocked             bool      `json:",omitempty"`
	IsAdmin              bool      `json:",omitempty"`
	PasswordNeverExpires bool      `json:",omitempty"`
	NoChangePassword     bool      `json:",omitempty"`
	PasswordLastSet      time.Time `json:",omitempty"`
	LastLogon            time.Time `json:",omitempty"`
	LastLogoff           time.Time `json:",omitempty"`
	BadPasswordCount     int       `json:",omitempty"`
	NumberOfLogins       int       `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) MarshalEasyJSON

func (v User) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (User) MarshalJSON

func (v User) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

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

func (v *User) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*User) UnmarshalJSON

func (v *User) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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