agent

package
v0.0.0-...-9bacab5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SparrowClient

type SparrowClient struct {
	*vnet.Client
	EntityID string
}

SparrowClient - struct to keep track of entity authentication information

func NewClient

func NewClient(address, versionStr string) *SparrowClient

NewClient - creates a new sparrow client

func (*SparrowClient) EntityAuth

func (ec *SparrowClient) EntityAuth(
	entityID, owner, secret string) (err error)

EntityAuth - authenticate the entity

func (*SparrowClient) InsertParamValue

func (ec *SparrowClient) InsertParamValue(
	value entity.ParamValue) (err error)

InsertParamValue - inserts parameter value into

func (*SparrowClient) ReadParamValue

func (ec *SparrowClient) ReadParamValue(paramID string) (
	val float32, err error)

func (*SparrowClient) RenewAuth

func (ec *SparrowClient) RenewAuth() (err error)

RenewAuth - renew auth token before it expires

Jump to

Keyboard shortcuts

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