Documentation ¶
Rendered for windows/amd64
Index ¶
- Constants
- Variables
- func CloneInstance(instance *wmi.Instance) (*wmi.Instance, error)
- func ConvertToPath(instance *wmi.Instance) (string, error)
- func CreateInstance(service *wmi.Service, className string, src interface{}) (*wmi.Instance, error)
- func CreateNumericArrayVariant(array interface{}, itemType ole.VT) (ole.VARIANT, error)
- func CreateStringArrayVariant(array []string) (ole.VARIANT, error)
- func FindFirstInstance(service *wmi.Service, wql string) (*wmi.Instance, error)
- func FindFirstObject(service *wmi.Service, wql string, target interface{}) error
- func FindFirstRelatedInstance(service *wmi.Service, objPath string, className string) (*wmi.Instance, error)
- func GetCimText(item *wmi.Instance) string
- func GetClassInstance(service *wmi.Service, obj *wmi.Instance) (*wmi.Instance, error)
- func GetObjectAsObject(service *wmi.Service, objPath string, target interface{}) error
- func GetPropertyAsUint(instance *wmi.Instance, name string) (uint, error)
- func GetSingletonInstance(service *wmi.Service, className string) (*wmi.Instance, error)
- func InstanceGetAll(instance *wmi.Instance, target interface{}) error
- func InstancePut(i *wmi.Instance, name string, value interface{}) (err error)
- func InstancePutAll(instance *wmi.Instance, src interface{}) error
- func IsReferenceProperty(instance *wmi.Instance, name string) (bool, error)
- func NewAutomationVariant(value interface{}) (ole.VARIANT, error)
- func NextObjectWithPath(enum *wmi.Enum, target interface{}) (bool, error)
- func RefetchObject(service *wmi.Service, instance *wmi.Instance) (*wmi.Instance, error)
- func SpawnInstance(service *wmi.Service, className string) (*wmi.Instance, error)
- func WaitJob(service *wmi.Service, job *wmi.Instance) error
- type JobError
- type MethodExecutor
Constants ¶
View Source
const (
WmiPathKey = "__PATH"
)
Variables ¶
View Source
var (
WindowsEpoch = time.Date(1601, 1, 1, 0, 0, 0, 0, time.UTC)
)
Functions ¶
func CreateInstance ¶
func CreateNumericArrayVariant ¶
func CreateNumericArrayVariant(array interface{}, itemType ole.VT) (ole.VARIANT, error)
func FindFirstInstance ¶
func FindFirstObject ¶
func GetCimText ¶
func GetClassInstance ¶
func GetObjectAsObject ¶
func GetSingletonInstance ¶
func InstanceGetAll ¶
func InstancePut ¶
Alternative impl of instance.Put that supports direct passing of variants Once this is contributed back to wmi, this func can go
func InstancePutAll ¶
func IsReferenceProperty ¶
func NewAutomationVariant ¶
func NewAutomationVariant(value interface{}) (ole.VARIANT, error)
func NextObjectWithPath ¶
Variant of Enum.NextObject that also sets object and class paths if present
func RefetchObject ¶
func SpawnInstance ¶
Types ¶
type MethodExecutor ¶
type MethodExecutor struct {
// contains filtered or unexported fields
}
func BeginInvoke ¶
func (*MethodExecutor) End ¶
func (e *MethodExecutor) End() error
func (*MethodExecutor) Error ¶
func (e *MethodExecutor) Error() error
func (*MethodExecutor) Execute ¶
func (e *MethodExecutor) Execute() *MethodExecutor
func (*MethodExecutor) Get ¶
func (e *MethodExecutor) Get(name string, value interface{}) *MethodExecutor
func (*MethodExecutor) Set ¶
func (e *MethodExecutor) Set(name string, value interface{}) *MethodExecutor
Click to show internal directories.
Click to hide internal directories.