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, ...) (openapi.InvokeResult, 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 (fn *ModService) Create(ctx context.Context, modName string) error
- func (fn *ModService) Delete(ctx context.Context, modName string) error
- func (fn *ModService) Get(ctx context.Context, modName string) (openapi.SingleModuleResult, error)
- func (fn *ModService) List(ctx context.Context) (openapi.ModuleNamesResult, error)
- func (fn *ModService) Update(ctx context.Context, modName string, newName string) error
Constants ¶
View Source
const (
DefaultNamespace = "_"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type FnHandler ¶
type FnHandler interface { Invoke(ctx context.Context, fnName string, fnMod string, fnArgs map[string]interface{}) (openapi.InvokeResult, 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) (openapi.SingleModuleResult, 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) (openapi.ModuleNamesResult, error) }
type ModService ¶ added in v0.3.0
type ModService struct { *Client InputValidatorHandler }
func (*ModService) Create ¶ added in v0.3.0
func (fn *ModService) Create(ctx context.Context, modName string) error
func (*ModService) Delete ¶ added in v0.3.0
func (fn *ModService) Delete(ctx context.Context, modName string) error
func (*ModService) Get ¶ added in v0.3.0
func (fn *ModService) Get(ctx context.Context, modName string) (openapi.SingleModuleResult, error)
func (*ModService) List ¶ added in v0.3.0
func (fn *ModService) List(ctx context.Context) (openapi.ModuleNamesResult, error)
Click to show internal directories.
Click to hide internal directories.