config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(data []byte) (agent.Info, error)

func Parse

func Parse(args []string) agent.Config

Types

type Opt

type Opt func(c *config)

func SetCmd

func SetCmd(h string) Opt

func SetHub

func SetHub(h string) Opt

func SetID

func SetID(id string) Opt

func SetInfo

func SetInfo(ifo agent.Info) Opt

func SetInsecure

func SetInsecure(h bool) Opt

func SetName

func SetName(name string) Opt

func SetPet

func SetPet(h bool) Opt

func SetReadOnly

func SetReadOnly(ro bool) Opt

func SetTags

func SetTags(tags []string) Opt

func SetURI

func SetURI() Opt

func SetVerbose

func SetVerbose(v bool) Opt

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳