salt

package
v0.0.44 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() backend.Backend

Types

type Salt

type Salt struct {
}

func (Salt) AcceptNode

func (s Salt) AcceptNode(node string, fingerprint string, ignored bool, ctxt string) (status bool, err error)

func (Salt) AddMonitoringPlugin

func (s Salt) AddMonitoringPlugin(pluginNames []string, nodes []string, master string, pluginMap map[string]map[string]string, ctxt string) (failed_nodes map[string]interface{}, err error)

func (Salt) AddNode

func (s Salt) AddNode(master string, node string, port uint, fingerprint string, username string, password string, ctxt string) (status bool, err error)

func (Salt) BootstrapNode

func (s Salt) BootstrapNode(master string, node string, port uint, fingerprint string, username string, password string, ctxt string) (finger string, err error)

func (Salt) DisableMonitoringPlugin

func (s Salt) DisableMonitoringPlugin(nodes []string, pluginName string, ctxt string) (failed_nodes map[string]string, err error)

func (Salt) DisableService

func (s Salt) DisableService(node string, service string, stop bool, ctxt string) (status bool, err error)

func (Salt) EnableMonitoringPlugin

func (s Salt) EnableMonitoringPlugin(nodes []string, pluginName string, ctxt string) (failed_nodes map[string]string, err error)

func (Salt) EnableService

func (s Salt) EnableService(node string, service string, start bool, ctxt string) (status bool, err error)

func (Salt) GetCpuMetricFromCollectd

func (s Salt) GetCpuMetricFromCollectd(nodes []string, ctxt string) (result map[string]models.CollectdCpuMetric, err error)

func (Salt) GetFingerPrint

func (s Salt) GetFingerPrint(node string, ctxt string) (fingerprint string, err error)

func (Salt) GetNodeCpu

func (s Salt) GetNodeCpu(node string, ctxt string) (cpu []models.Cpu, err error)

func (Salt) GetNodeDisk

func (s Salt) GetNodeDisk(node string, ctxt string) (disks []models.Disk, err error)

func (Salt) GetNodeID

func (s Salt) GetNodeID(node string, ctxt string) (id uuid.UUID, err error)

func (Salt) GetNodeMemory

func (s Salt) GetNodeMemory(node string, ctxt string) (memory models.Memory, err error)

func (Salt) GetNodeNetwork

func (s Salt) GetNodeNetwork(node string, ctxt string) (n models.Network, err error)

func (Salt) GetNodeOs

func (s Salt) GetNodeOs(node string, ctxt string) (os models.OperatingSystem, err error)

func (Salt) GetNodes

func (s Salt) GetNodes(ctxt string) (nodes backend.NodeList, err error)

func (Salt) GetSingleValuedMetricFromCollectd

func (s Salt) GetSingleValuedMetricFromCollectd(nodes []string, metricName string, ctxt string) (result map[string]models.CollectdSingleValuedMetric, err error)

func (Salt) IgnoreNode

func (s Salt) IgnoreNode(node string, ctxt string) (status bool, err error)

func (Salt) NodeUp

func (s Salt) NodeUp(node string, ctxt string) (status bool, err error)

func (Salt) NodeUptime

func (s Salt) NodeUptime(node string, ctxt string) (uptime string, err error)

func (Salt) RemoveMonitoringPlugin

func (s Salt) RemoveMonitoringPlugin(nodes []string, pluginName string, ctxt string) (failed_nodes map[string]string, err error)

func (Salt) SetupSkynetService

func (s Salt) SetupSkynetService(node string, ctxt string) (status bool, err error)

func (Salt) SyncModules

func (s Salt) SyncModules(node string, ctxt string) (status bool, err error)

func (Salt) UpdateMonitoringConfiguration

func (s Salt) UpdateMonitoringConfiguration(nodes []string, config []monitoring.Plugin, ctxt string) (failed_nodes map[string]string, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL