Versions in this module Expand all Collapse all v0 v0.4.0 Nov 25, 2022 v0.3.0 Nov 25, 2022 Changes in this version + type Client interface + AcceptKey func(ctx context.Context, match string) ([]string, error) + DeleteKey func(ctx context.Context, match string) ([]string, error) + GetJob func(ctx context.Context, jid string) (*Job, error) + GetKeyFinger func(ctx context.Context, match string) (map[string]string, error) + GetKeyString func(ctx context.Context, match string) (map[string]string, error) + GetMinion func(ctx context.Context, mid string) (*Minion, error) + Hook func(ctx context.Context, id string, payload interface{}) error + ListJobs func(ctx context.Context) ([]Job, error) + ListKeys func(ctx context.Context) (*ListKeysReturn, error) + ListMinions func(ctx context.Context) ([]Minion, error) + LocalClient func(ctx context.Context, tgt, fun string, arg []string, opts ...RunOption) (map[string]LocalClientReturn, error) + LocalClientAsync func(ctx context.Context, tgt, fun string, arg []string, opts ...RunOption) (jid string, err error) + Login func(ctx context.Context, username, password, eauth string) error + Logout func(ctx context.Context) error + ManageStatus func(ctx context.Context) (*ManageStatusReturn, error) + RejectedKey func(ctx context.Context, match string) ([]string, error) + Stats func(ctx context.Context) (*stats, error) + type ClientOption func(options *clientOptions) + func WithInsecure() ClientOption + func WithTimeout(timeout time.Duration) ClientOption + type CommandClient string + const LocalAsyncClient + const LocalClient + const RunnerAsyncClient + const RunnerClient + const SSHClient + const WheelAsyncClient + const WheelClient type Job + Error string + JID string + Minions []string + Result map[string]jobResult + type ListKeysReturn struct + Local []string + Minions []string + MinionsDenied []string + MinionsPre []string + MinionsRejected []string + type LocalClientReturn struct + Jid string + Ret interface{} + Retcode int + type ManageStatusReturn struct + Down []string + UP []string type Minion + BiosReleaseDate string + BiosVersion string + CPUArch string + GroupName string + LSBDistribCodename string + LSBDistribID string + MDAdm []string + OSArch string + OSCodename string + OSFamily string + OSFullName string + OSMajorRelease int + OSRelease string + OSReleaseInfo []int + ProductName string + PythonExecutable string + PythonPath []string + PythonVersion []interface{} + SSDs []string + SaltPath string + SaltVersion string + SaltVersionInfo []int + SerialNumber string + SystemPath []string + type Request struct + BytesRead int + BytesWritten int + Client string + EndTime float64 + ProcessingTime float64 + RequestLine string + ResponseStatus string + StartTime float64 + type RunOption func(*commandRequest) + func WithTargetType(t TargetType) RunOption + type TargetType string + const Compound + const Glob + const Grain + const GrainPcre + const IPCidr + const List + const NodeGroup + const Pcre + const Pillar + const PillarPcre + const Range + type WorkerThread struct + BytesRead int + BytesWritten int + ReadThroughput float64 + Requests int + WorkTime float64 + WriteThroughput float64 v0.2.0 Mar 9, 2021 Changes in this version + const CP_APPLICATIONS + const CP_HTTPSERVER_PREFIX + type Applications struct + BytesReadRequest float64 + BytesReadSecond float64 + BytesWrittenRequest float64 + BytesWrittenSecond float64 + CurrentRequests int + CurrentTime float64 + Enabled bool + Requests struct{ ... } + RequestsSecond float64 + ServerVersion string + StartTime float64 + TotalBytesRead int + TotalBytesWritten int + TotalRequests int + TotalTime float64 + Uptime float64 + type AsyncRunRequest struct + Client string + Function string + Target string + type AsyncRunResponse struct + Links struct{ ... } + Return []struct{ ... } + type ExternalAuth struct + EAuth string + Password string + Username string + type HTTPServer struct + Accepts int + AcceptsSec float64 + BindAddress string + BytesRead int + BytesWritten int + Enabled bool + Queue int + ReadThroughput float64 + Requests int + RunTime int + SocketErrors int + Threads int + ThreadsIdle int + WorkTime int + WorkerThreads map[string]struct{ ... } + WriteThroughput float64 + type HookResponse struct + Message string + Status int + Success bool + type IClient interface + AsyncRun func(ctx context.Context, payload *AsyncRunRequest) (*AsyncRunResponse, error) + GetJob func(ctx context.Context, jid string) (*JobResponse, error) + GetKey func(ctx context.Context, mid string) (*KeyDetailResponse, error) + GetMinion func(ctx context.Context, mid string) (*MinionResponse, error) + Hook func(ctx context.Context, id string, payload interface{}) (*HookResponse, error) + ListJobs func(ctx context.Context) (*JobsResponse, error) + ListKeys func(ctx context.Context) (*KeysResponse, error) + ListMinions func(ctx context.Context) (*MinionResponse, error) + Login func(ctx context.Context, username, password, eauth string) error + Logout func(ctx context.Context) error + Run func(ctx context.Context, payload *RunRequest) (*RunResponse, error) + Stats func(ctx context.Context) (*StatsResponse, error) + func NewClient(baseAPI string, skipVerify bool) IClient + type Job struct + Arguments []string + Function string + StartTime string + Target interface{} + TargetType string + User string + type JobResponse struct + Info []struct{ ... } + Return []map[string]bool + type JobsResponse struct + Return []map[string]Job + type KeyDetailResponse struct + Return struct{ ... } + type KeysResponse struct + Return struct{ ... } + type LoginResponse struct + Return []struct{ ... } + type Minion struct + Biosreleasedate string + Biosversion string + CPUFlags []string + CPUModel string + CPUarch string + CWD string + DNS struct{ ... } + Disks []string + Domain string + FQDN string + FQDNIP4 []string + FQDNIP6 []string + FQDNs []string + GPUS []struct{ ... } + Gid int + Groupname string + HWAddrInterface map[string]string + Host string + ID string + IP4GW interface{} + IP4Interfaces map[string][]string + IP6GW interface{} + IP6Interfaces map[string][]string + IPGW interface{} + IPInterfaces map[string][]string + IPv4 []string + IPv6 []string + Init string + Kernel string + KernelParams [][]string + KernelRelease string + KernelVersion string + LocaleInfo struct{ ... } + Localhost string + LsbDistribCodename string + LsbDistribID string + Lvm map[string][]string + MachineID string + Manufacturer string + Master string + Mdadm []string + MemTotal int + NodeName string + NumCPUS int + NumGPUS int + OS string + OSFinger string + OsFamily string + Osarch string + Oscodename string + Osfullname string + Osmajorrelease int + Osrelease string + OsreleaseInfo []int + PS string + Path string + Pid int64 + Productname string + Pythonexecutable string + Pythonpath []string + Pythonversion []interface{} + Saltpath string + Saltversion string + Saltversioninfo []int + Selinux struct{ ... } + Serialnumber string + ServerID int64 + Shell string + Ssds []string + SwapTotal int + Systemd struct{ ... } + Systempath []string + UUID string + Uid int + Username string + Virtual string + ZFSFeatureFlags bool + ZFSSupport bool + ZMQVersion string + type MinionResponse struct + Return []map[string]Minion + type RunRequest struct + Arg []string + Client string + Function string + JID string + KwArg map[string]string + Target interface{} + type RunResponse struct + Return []map[string]interface{} + type StatsResponse struct + Applications Applications + HTTPServer HTTPServer + type TMPStats map[string]interface Other modules containing this package github.com/daixijun/go-salt/v2