Documentation ¶
Index ¶
- func BootstrapLambda(ctx context.Context, id string, lambda *api.CreateLambda) error
- func BootstrapRuntime(ctx context.Context, id string, runtime *api.CreateRuntime) error
- func FindLambda(ctx context.Context, predicate func(val *api.Lambda) bool) (*api.Lambda, error)
- func GetLambda(ctx context.Context, id string) (*api.Lambda, error)
- func GetLambdas(ctx context.Context) ([]*api.Lambda, error)
- func GetRuntime(ctx context.Context, id string) (*api.Runtime, error)
- func GetRuntimes(ctx context.Context) ([]*api.Runtime, error)
- func SetLambda(ctx context.Context, lambda *api.Lambda) error
- func SetRuntime(ctx context.Context, runtime *api.Runtime) error
- func TarLambda(ctx context.Context, lambda string, runtime string) (io.Reader, error)
- func UploadTmp(ctx context.Context, file io.Reader) (string, error)
- type LambdaService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootstrapLambda ¶
func BootstrapRuntime ¶
func FindLambda ¶
Types ¶
type LambdaService ¶
type LambdaService interface { Init() error Stop(ctx context.Context) BootstrapRuntime(ctx context.Context, runtime *api.CreateRuntime) (*api.Runtime, error) BootstrapLambda(ctx context.Context, lambda *api.CreateLambda) (*api.Lambda, error) Start(ctx context.Context, id string) error Destroy(ctx context.Context, id string) error }
func CreateLambdaService ¶
func CreateLambdaService() (LambdaService, error)
Click to show internal directories.
Click to hide internal directories.