Documentation ¶
Index ¶
- type Client
- type Command
- type Error
- type EventStreamFunc
- type Events
- type Format
- type Jobs
- type Keys
- func (c *Keys) Accept(ctx context.Context, match string, fn MinionFunc) error
- func (c *Keys) Delete(ctx context.Context, match string) error
- func (c *Keys) ListAccepted(ctx context.Context, fn MinionFunc) error
- func (c *Keys) ListPending(ctx context.Context, fn MinionFunc) error
- func (c *Keys) ListRejected(ctx context.Context, fn MinionFunc) error
- type MinionFunc
- type Minions
- type Object
- type PingReturnFunc
- type Request
- type Response
- type ReturnFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Client *http.Client Headers map[string]string Server string Token string Events *Events Jobs *Jobs Keys *Keys Minions *Minions }
type Command ¶
type Command struct { Arguments []string `json:"arg,omitempty"` Client string `json:"client"` Function string `json:"fun"` Keywords Object `json:"kwarg,omitempty"` Match string `json:"match,omitempty"` Target string `json:"tgt,omitempty"` TargetType string `json:"tgt_type,omitempty"` Timeout int `json:"timeout,omitempty"` }
type EventStreamFunc ¶
type Keys ¶
type Keys struct {
*Client
}
func (*Keys) ListAccepted ¶
func (c *Keys) ListAccepted(ctx context.Context, fn MinionFunc) error
func (*Keys) ListPending ¶
func (c *Keys) ListPending(ctx context.Context, fn MinionFunc) error
func (*Keys) ListRejected ¶
func (c *Keys) ListRejected(ctx context.Context, fn MinionFunc) error
type MinionFunc ¶
type PingReturnFunc ¶
type ReturnFunc ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.