agent

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	ID   int
	UUID string `json:"id"`
	Name string `json:"name"`

	Credentials
	account.Account
}

func NewBlankAgent

func NewBlankAgent(name string, a account.Account) *Agent

func ParseAgentHeaders

func ParseAgentHeaders(headers map[string]string) (Agent, error)

func (Agent) Create

func (a Agent) Create() (*Agent, error)

func (Agent) LookupDetails

func (a Agent) LookupDetails() (Agent, error)

func (Agent) ValidateID

func (a Agent) ValidateID() (bool, error)

type AgentClient

type AgentClient struct {
	Config  config.Config
	Context context.Context
}

func NewAgent

func NewAgent(c config.Config) *AgentClient

func (AgentClient) Find

func (ac AgentClient) Find(a *Agent) error

type Agents

type Agents interface {
	Create() (*Agent, error)
	Delete(a Agent) error
}

type Credentials

type Credentials struct {
	Key    string `json:"key"`
	Secret string `json:"secret"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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