client

package
v0.0.0-...-91936fa Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

A Client implements the base client request and response handling used by all service clients.

func NewClient

func NewClient(config Config) (*Client, error)

NewClient

func (*Client) FcCreate

func (c *Client) FcCreate(fcCreateInput *FcCreateInput) (*FcCreateOutput, error)

func (*Client) FcDelete

func (c *Client) FcDelete(fcDeleteInput *FcDeleteInput) (*FcDeleteOutput, error)

func (*Client) FcGet

func (c *Client) FcGet(fcGetInput *FcGetInput) (*FcGetOutput, error)

func (*Client) FcInvoke

func (c *Client) FcInvoke(fcInvokeInput *FcInvokeInput) (*FcInvokeOutput, error)

func (*Client) FcList

func (c *Client) FcList() error

func (*Client) GetResourceMetrics

func (c *Client) GetResourceMetrics() (*strategy.ResourceMetrics, error)

type Config

type Config struct {
	Host string
}

Config holds managerAddr

type FcCreateInput

type FcCreateInput struct {
	FuncName   string
	Code       []byte
	Env        string
	Timeout    string
	MemorySize string
}

type FcCreateOutput

type FcCreateOutput struct {
	StatusCode int
	RespBody   []byte
}

type FcDeleteInput

type FcDeleteInput struct {
	FuncName string
}

type FcDeleteOutput

type FcDeleteOutput struct {
	StatusCode int
	RespBody   []byte
}

type FcGetInput

type FcGetInput struct {
	FuncName string
}

type FcGetOutput

type FcGetOutput struct {
}

type FcInvokeInput

type FcInvokeInput struct {
	FuncName     string
	Args         []byte
	EnableNative string
}

type FcInvokeOutput

type FcInvokeOutput struct {
	StatusCode int
	RespBody   []byte
}

type FcListInput

type FcListInput struct {
}

Jump to

Keyboard shortcuts

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