cmd

package
v0.0.0-...-34eab2d Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "envoyctl",
	Short: "Envoyctl is an endpoint to control the Envoy service",
	Long: `A command line tool that accesses and controls the
	Envoy service. 
	Complete documentation is at http://envoyproject.com`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Client

type Client struct {
	//Address points to the address of the searchhead api
	Address string
	//HTTPClient is the client to use. Default will be used if not provided
	HTTPClient *http.Client
	//Token is the authentication token to be used for the requests
	Token string
}

Client stores the configuration of the client

func NewClient

func NewClient() (*Client, error)

NewClient creates a new client, and gets a secure token

type Request

type Request struct {
	Method string
	Path   string
	Values url.Values
	Body   io.Reader
}

Request this maps a new request

Jump to

Keyboard shortcuts

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