hyper

package
v0.0.0-...-bb0a428 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hyper

type Hyper struct {
	*client.Client
	FuncMap map[string]string // function name -> service ip
}

func New

func New() (*Hyper, error)

func (*Hyper) Create

func (hyper *Hyper) Create(name, image string, envs []string, config map[string]string) error

func (*Hyper) Delete

func (hyper *Hyper) Delete(name string) error

func (*Hyper) Inspect

func (hyper *Hyper) Inspect(name string) (*requests.Function, error)

func (*Hyper) List

func (hyper *Hyper) List() ([]requests.Function, error)

func (*Hyper) RefreshFuncMap

func (hyper *Hyper) RefreshFuncMap() error

func (*Hyper) Scale

func (hyper *Hyper) Scale(name string, replica uint64) error

type PrometheusQueryResponse

type PrometheusQueryResponse struct {
	Status string
	Data   struct {
		ResultType string
		Result     []struct {
			Metric struct {
				FunctionName string `json:"function_name"`
			}
			Value []interface{}
		}
	}
}

Jump to

Keyboard shortcuts

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