core

package
v0.0.0-...-8353e37 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const API string = "v1.0.0"

API is the API version of the client

Variables

Client is the DRLM Core client

Functions

func AgentAdd

func AgentAdd(a *models.Agent) error

AgentAdd adds a new Agent to DRLM Core

func AgentGet

func AgentGet(host string) (*models.Agent, error)

AgentGet returns the agent by it's host

func AgentInstall

func AgentInstall(host string, binPath string) error

AgentInstall installs the Agent binary to the server

func AgentList

func AgentList() ([]*models.Agent, error)

AgentList returns all the agents in DRLM

func Init

func Init()

Init initializes the DRLM Core client

func JobSchedule

func JobSchedule(host, job, config string) error

JobSchedule schedules a new job

func PluginAdd

func PluginAdd(host string, p *models.Plugin, binPath string) error

PluginAdd adds a plugin to a DRLM Agent

func UserAdd

func UserAdd(usr *models.User) error

UserAdd adds a new User to DRLM Core

func UserDelete

func UserDelete(usr string) error

UserDelete removes an user from DRLM Core

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.

Jump to

Keyboard shortcuts

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