Documentation
¶
Index ¶
- Constants
- type Client
- type Config
- type FnHandler
- type FnService
- func (fn *FnService) Create(ctx context.Context, fnName string, fnMod string, code *os.File) error
- func (fn *FnService) Delete(ctx context.Context, fnName string, fnMod string) error
- func (fn *FnService) Invoke(ctx context.Context, fnName string, fnMod string, ...) (pkg.IvkResult, error)
- func (fn *FnService) Update(ctx context.Context, fnName string, fnMod string, code *os.File, ...) error
- type InputValidator
- type InputValidatorHandler
- type ModHandler
- type ModService
- func (mod *ModService) Create(ctx context.Context, modName string) error
- func (mod *ModService) Delete(ctx context.Context, modName string) error
- func (mod *ModService) Get(ctx context.Context, modName string) (pkg.SingleModule, error)
- func (mod *ModService) List(ctx context.Context) (pkg.ModuleNameList, error)
- func (mod *ModService) Update(ctx context.Context, modName string, newName string) error
- type UserHandler
- type UserService
Constants ¶
View Source
const (
DefaultModule = "_"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Config ¶
type FnHandler ¶
type FnHandler interface {
Invoke(ctx context.Context, fnName string, fnMod string, fnArgs map[string]interface{}) (pkg.IvkResult, error)
Create(ctx context.Context, fnName string, fnMod string, code *os.File) error
Delete(ctx context.Context, fnName string, fnMod string) error
Update(ctx context.Context, fnName string, fnMod string, code *os.File, newName string) error
}
type FnService ¶
type FnService struct {
*Client
InputValidatorHandler
}
type InputValidator ¶ added in v0.3.0
type InputValidator struct{}
func (*InputValidator) ValidateName ¶ added in v0.3.0
func (i *InputValidator) ValidateName(name, entity string) error
type InputValidatorHandler ¶ added in v0.3.0
type ModHandler ¶ added in v0.3.0
type ModHandler interface {
Get(ctx context.Context, modName string) (pkg.SingleModule, error)
Create(ctx context.Context, modName string) error
Delete(ctx context.Context, modName string) error
Update(ctx context.Context, modName string, newName string) error
List(ctx context.Context) (pkg.ModuleNameList, error)
}
type ModService ¶ added in v0.3.0
type ModService struct {
*Client
InputValidatorHandler
}
func (*ModService) Create ¶ added in v0.3.0
func (mod *ModService) Create(ctx context.Context, modName string) error
func (*ModService) Delete ¶ added in v0.3.0
func (mod *ModService) Delete(ctx context.Context, modName string) error
func (*ModService) Get ¶ added in v0.3.0
func (mod *ModService) Get(ctx context.Context, modName string) (pkg.SingleModule, error)
func (*ModService) List ¶ added in v0.3.0
func (mod *ModService) List(ctx context.Context) (pkg.ModuleNameList, error)
type UserHandler ¶ added in v0.4.0
type UserService ¶ added in v0.4.0
type UserService struct {
*Client
}
func (*UserService) Create ¶ added in v0.4.0
func (u *UserService) Create(ctx context.Context, name string) (pkg.UserNameToken, error)
func (*UserService) List ¶ added in v0.4.0
func (u *UserService) List(ctx context.Context) (pkg.UserNamesList, error)
Click to show internal directories.
Click to hide internal directories.