Documentation ¶
Index ¶
- Constants
- Variables
- func AgentAdd(a *models.Agent) error
- func AgentGet(host string) (*models.Agent, error)
- func AgentInstall(host string, binPath string) error
- func AgentList() ([]*models.Agent, error)
- func Init()
- func JobSchedule(host, job, config string) error
- func PluginAdd(host string, p *models.Plugin, binPath string) error
- func UserAdd(usr *models.User) error
- func UserDelete(usr string) error
- func UserList() (*drlm.UserListResponse, error)
- func UserLogin(usr, pwd string) (*drlm.UserLoginResponse, error)
- func UserTokenRenew() (*drlm.UserTokenRenewResponse, error)
Constants ¶
View Source
const API string = "v1.0.0"
API is the API version of the client
Variables ¶
View Source
var Client drlm.DRLMClient
Client is the DRLM Core client
Functions ¶
func AgentInstall ¶
AgentInstall installs the Agent binary to the server
func UserList ¶
func UserList() (*drlm.UserListResponse, error)
UserList lists all the users in DRLM Core
func UserLogin ¶
func UserLogin(usr, pwd string) (*drlm.UserLoginResponse, error)
UserLogin logs into DRLM Core
func UserTokenRenew ¶
func UserTokenRenew() (*drlm.UserTokenRenewResponse, error)
UserTokenRenew renews the token
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.