Documentation
¶
Index ¶
- Variables
- func NewClient(call goja.ConstructorCall, runtime *goja.Runtime) *goja.Object
- type Client
- func (c *Client) Call(namespace string, className string, method string, argsJSON string, ...) map[string]interface{}
- func (c *Client) Command(command string, opts interface{}) map[string]interface{}
- func (c *Client) Proc(executable string, args string, opts interface{}) map[string]interface{}
- func (c *Client) SetOptions(opts interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var Auth = goexec.AuthConstructors()
Auth exposes WMI authentication constructors.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a GoExec-backed WMI execution client.
func (*Client) Call ¶
func (c *Client) Call(namespace string, className string, method string, argsJSON string, opts interface{}) map[string]interface{}
Call invokes a WMI class method and returns the serialized method response.
func (*Client) SetOptions ¶
func (c *Client) SetOptions(opts interface{})
SetOptions updates default execution options for future client calls.
Click to show internal directories.
Click to hide internal directories.