Versions in this module Expand all Collapse all v0 v0.9.0 Apr 17, 2017 Changes in this version + const FunctionAlreadyExists + const FunctionNotFound + const InvalidImage + const InvalidName + func CheckImage(image string) (string, error) + func CheckName(name string) (string, error) + type Error string + func (e Error) Error() string + type Function struct + CreateDt int64 + Id string + Image string + Name string + Owner *accounts.Account + func (*Function) Descriptor() ([]byte, []int) + func (*Function) ProtoMessage() + func (f *Function) Validate() (err error) + func (m *Function) GetCreateDt() int64 + func (m *Function) GetId() string + func (m *Function) GetImage() string + func (m *Function) GetName() string + func (m *Function) GetOwner() *accounts.Account + func (m *Function) Reset() + func (m *Function) String() string + type FunctionCall struct + CallID string + Function *Function + Input []byte + ReturnTo string + func (*FunctionCall) Descriptor() ([]byte, []int) + func (*FunctionCall) ProtoMessage() + func (m *FunctionCall) GetCallID() string + func (m *FunctionCall) GetFunction() *Function + func (m *FunctionCall) GetInput() []byte + func (m *FunctionCall) GetReturnTo() string + func (m *FunctionCall) Reset() + func (m *FunctionCall) String() string + type FunctionReturn struct + CallID string + Output []byte + func (*FunctionReturn) Descriptor() ([]byte, []int) + func (*FunctionReturn) ProtoMessage() + func (m *FunctionReturn) GetCallID() string + func (m *FunctionReturn) GetOutput() []byte + func (m *FunctionReturn) Reset() + func (m *FunctionReturn) String() string + type Interface interface + CreateFunction func(ctx context.Context, name string, image string) (function *Function, err error) + DeleteFunction func(ctx context.Context, id string) (err error) + GetFunction func(ctx context.Context, id string) (function *Function, err error) + GetFunctionByName func(ctx context.Context, name string) (function *Function, err error) + ListFunctions func(ctx context.Context) (functions []*Function, err error) + Reset func(ctx context.Context) + type Store struct + func NewStore(store storage.Interface) *Store + func (s *Store) CreateFunction(ctx context.Context, name string, image string) (function *Function, err error) + func (s *Store) DeleteFunction(ctx context.Context, id string) error + func (s *Store) GetFunction(ctx context.Context, id string) (*Function, error) + func (s *Store) GetFunctionByName(ctx context.Context, name string) (function *Function, err error) + func (s *Store) ListFunctions(ctx context.Context) ([]*Function, error) + func (s *Store) Reset(ctx context.Context)