client

package
v1.0.78 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentCreated

type AgentCreated struct {
	Status string `json:"_status"`
	ID     string `json:"_id"`
}

AgentCreated ...

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client ...

func NewHTTPClient

func NewHTTPClient() *Client

NewHTTPClient ...

func (*Client) AuthToken

func (c *Client) AuthToken() (string, error)

AuthToken get, save and set auth token

func (*Client) Do

func (c *Client) Do(req *http.Request) (*http.Response, error)

Do ...

func (*Client) RegisterAgents

func (c *Client) RegisterAgents() error

RegisterAgents create a new agent in server

Jump to

Keyboard shortcuts

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