Documentation
¶
Index ¶
- type ApiCreds
- type ApiCtx
- func (ctx *ApiCtx) AppendSignal(sig types.SignalOccurence) error
- func (ctx *ApiCtx) Enroll(userID string) error
- func (ctx *ApiCtx) Flush() error
- func (ctx *ApiCtx) Init(cfg string, profile string) error
- func (ctx *ApiCtx) LoadConfig(cfg string) error
- func (ctx *ApiCtx) PullTop() ([]map[string]string, error)
- func (ctx *ApiCtx) RegisterMachine(machineID string, password string) error
- func (ctx *ApiCtx) ResetPassword(machineID string, password string) error
- func (ctx *ApiCtx) Signin() error
- func (ctx *ApiCtx) WriteConfig(cfg string) error
- type ApiResp
- type PullResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiCtx ¶
type ApiCtx struct {
/*config*/
ApiVersion string `yaml:"version"`
PullPath string `yaml:"pull_path"`
PushPath string `yaml:"push_path"`
SigninPath string `yaml:"signin_path"`
RegisterPath string `yaml:"register_path"`
ResetPwdPath string `yaml:"reset_pwd_path"`
EnrollPath string `yaml:"enroll_path"`
BaseURL string `yaml:"url"`
CfgUser string `yaml:"machine_id"`
CfgPassword string `yaml:"password"`
Creds ApiCreds `yaml:"-"`
Muted bool `yaml:"muted"`
DebugDump bool `yaml:"debug_dump"`
Http *sling.Sling `yaml:"-"`
// contains filtered or unexported fields
}
func (*ApiCtx) AppendSignal ¶
func (ctx *ApiCtx) AppendSignal(sig types.SignalOccurence) error
func (*ApiCtx) LoadConfig ¶
func (*ApiCtx) RegisterMachine ¶
func (*ApiCtx) ResetPassword ¶
func (*ApiCtx) WriteConfig ¶
Click to show internal directories.
Click to hide internal directories.