Documentation ¶
Index ¶
Constants ¶
View Source
const ( LOCAL ClientType = "local" LOCAL_ASYNC = "local_async" LOCAL_BATCH = "local_batch" RUNNER = "runner" RUNNER_ASYNC = "runner_async" SSH = "ssh" WHEEL = "wheel" WHEEL_ASYNC = "wheel_async" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientType ¶
type ClientType string
type SaltClient ¶
type SaltClient struct { BaseUrl string Username string Password string Eauth string HttpClient *http.Client }
func NewClient ¶
func NewClient(url, username, password, eauth string) SaltClient
func (*SaltClient) Call ¶
func (c *SaltClient) Call(call calls.Call, clientType ClientType, tgt *target.SaltTarget) (data []byte, err error)
func (*SaltClient) Run ¶
func (c *SaltClient) Run(clilentType ClientType, fun string, tgt target.SaltTarget, args []interface{}, kwargs map[string]interface{}) (data *RunResult, err error)
Run: more info at:https://docs.saltproject.io/en/latest/ref/netapi/all/salt.netapi.rest_cherrypy.html#run
Click to show internal directories.
Click to hide internal directories.