fns

package module
v0.0.0-...-656ad0d Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: MIT Imports: 9 Imported by: 0

README

fns

fns 是一个 FAAS。

特性

  • docker
  • 服务自动注册(traefik + 容器 labels 实现)
  • cli 开发工具
  • sdk
    • nodejs
    • go
    • wasm
  • 文档

LICENSE

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Machine

type Machine struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func GetMachine

func GetMachine() *Machine

func (*Machine) Inspect

func (m *Machine) Inspect(ctx context.Context, containerId string) (types.ContainerJSON, error)

func (*Machine) Install

func (m *Machine) Install(ctx context.Context, spec *fnspec.FunctionSpec) (string, error)

func (*Machine) Kill

func (m *Machine) Kill(ctx context.Context, containerId string) error

func (*Machine) List

func (m *Machine) List(ctx context.Context) ([]types.Container, error)

func (*Machine) Shutdown

func (m *Machine) Shutdown() error

func (*Machine) Spawn

func (m *Machine) Spawn(ctx context.Context, containerId string) error

func (*Machine) Uninstall

func (m *Machine) Uninstall(ctx context.Context, containerId string) error

Directories

Path Synopsis
cmd
fns

Jump to

Keyboard shortcuts

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