agent

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

	Credentials
	account.Account
}

func NewAgent

func NewAgent(name string, account account.Account) *Agent

func ParseAgentHeaders

func ParseAgentHeaders(headers map[string]string, logger *zap.SugaredLogger) (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 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