Documentation ¶
Index ¶
- Constants
- type FuncletClient
- func (f *FuncletClient) CoolDown(input *api.FuncletClientCoolDownInput) (out *api.ResetResponse, err error)
- func (f *FuncletClient) IDEWarmUp(input *api.FuncletClientWarmUpInput) (out *api.WarmUpResponse, err error)
- func (f *FuncletClient) Info(input *api.FuncletClientContainerInfoInput) (out *api.ContainerInfoResponse, err error)
- func (f *FuncletClient) List(input *api.FuncletClientListContainersInput) (out *api.ListContainersResponse, err error)
- func (f *FuncletClient) NodeInfo(input *api.FuncletClientListNodeInput) (out *api.FuncletNodeInfo, err error)
- func (f *FuncletClient) Reborn(input *api.FuncletClientRebornInput) (out *api.ResetResponse, err error)
- func (f *FuncletClient) WarmUp(input *api.FuncletClientWarmUpInput) (out *api.WarmUpResponse, err error)
- type FuncletClientOptions
- type FuncletInterface
Constants ¶
View Source
const DefaultFuncletApiSocket = "/var/run/faas/.funcletapi.sock"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FuncletClient ¶
type FuncletClient struct {
// contains filtered or unexported fields
}
FuncletClient is used to comm with funclet
func (*FuncletClient) CoolDown ¶
func (f *FuncletClient) CoolDown(input *api.FuncletClientCoolDownInput) (out *api.ResetResponse, err error)
func (*FuncletClient) IDEWarmUp ¶
func (f *FuncletClient) IDEWarmUp(input *api.FuncletClientWarmUpInput) (out *api.WarmUpResponse, err error)
func (*FuncletClient) Info ¶
func (f *FuncletClient) Info(input *api.FuncletClientContainerInfoInput) (out *api.ContainerInfoResponse, err error)
func (*FuncletClient) List ¶
func (f *FuncletClient) List(input *api.FuncletClientListContainersInput) (out *api.ListContainersResponse, err error)
func (*FuncletClient) NodeInfo ¶
func (f *FuncletClient) NodeInfo(input *api.FuncletClientListNodeInput) (out *api.FuncletNodeInfo, err error)
func (*FuncletClient) Reborn ¶
func (f *FuncletClient) Reborn(input *api.FuncletClientRebornInput) (out *api.ResetResponse, err error)
func (*FuncletClient) WarmUp ¶
func (f *FuncletClient) WarmUp(input *api.FuncletClientWarmUpInput) (out *api.WarmUpResponse, err error)
type FuncletClientOptions ¶
type FuncletClientOptions struct {
ApiSock string
}
func NewFuncletClientOptions ¶
func NewFuncletClientOptions() *FuncletClientOptions
func (*FuncletClientOptions) AddFuncletClientFlags ¶
func (o *FuncletClientOptions) AddFuncletClientFlags(fs *pflag.FlagSet)
AddFunctionCacheFlags xxx
type FuncletInterface ¶
type FuncletInterface interface { List(*api.FuncletClientListContainersInput) (*api.ListContainersResponse, error) Info(*api.FuncletClientContainerInfoInput) (*api.ContainerInfoResponse, error) IDEWarmUp(*api.FuncletClientWarmUpInput) (*api.WarmUpResponse, error) WarmUp(*api.FuncletClientWarmUpInput) (*api.WarmUpResponse, error) CoolDown(*api.FuncletClientCoolDownInput) (*api.ResetResponse, error) Reborn(*api.FuncletClientRebornInput) (*api.ResetResponse, error) NodeInfo(*api.FuncletClientListNodeInput) (*api.FuncletNodeInfo, error) }
func NewFuncletClient ¶
func NewFuncletClient(option *FuncletClientOptions) FuncletInterface
NewFuncletClient create a kubernetes client
Click to show internal directories.
Click to hide internal directories.