agent

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(port, key string) (string, error)

Get sends a get request from a passphrase corresponding to the given key

func IsUp

func IsUp(port string) bool

IsUp checks whether the agent is running

func Run

func Run(port string) error

Run starts up the server at the given port

func Set

func Set(port, key, pass string, ttl int) error

Set sends a set request to store a key/passphrase mapping

func Stop

func Stop(port string) error

Stop sends a stop request to the agent

Types

type IsUpFunc

type IsUpFunc func(port string) bool

IsUpFunc describes a function for checking the status of the checker

type RunFunc

type RunFunc func(port string) error

RunFunc represents a function for starting the server

type SetFunc

type SetFunc func(port, key, pass string, ttl int) error

SetFunc describes a function for sending set request

type StopFunc

type StopFunc func(port string) error

StopFunc represents a function for stopping the server

Jump to

Keyboard shortcuts

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