Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAutoUpdateOn ¶ added in v0.4.0
func RunPing ¶
func RunPing() error
RunPing will ping the salt server if a salt call is not already running
func RunUpdate ¶
func RunUpdate() error
RunUpdate will run a salt update if one is not already running
func SetAutoUpdate ¶ added in v0.4.0
func WriteStateFile ¶ added in v0.7.0
possibly need file locks??
Types ¶
type SaltState ¶
type SaltState struct { RunningUpdate bool RunningArgs []string LastCallOut string LastCallSuccess bool LastCallNodegroup string LastCallArgs []string LastUpdate time.Time }
SaltState holds info of the current state of salt
func ReadStateFile ¶ added in v0.7.0
func RunPingSync ¶ added in v0.2.0
RunPingSync will make a synchronous ping call to the server
Click to show internal directories.
Click to hide internal directories.