Documentation
¶
Overview ¶
Package cloudfunctions provides an in-memory mock implementation of Google Cloud Functions.
Index ¶
- type Mock
- func (m *Mock) CreateFunction(_ context.Context, cfg driver.FunctionConfig) (*driver.FunctionInfo, error)
- func (m *Mock) DeleteFunction(_ context.Context, name string) error
- func (m *Mock) GetFunction(_ context.Context, name string) (*driver.FunctionInfo, error)
- func (m *Mock) Invoke(ctx context.Context, input driver.InvokeInput) (*driver.InvokeOutput, error)
- func (m *Mock) ListFunctions(_ context.Context) ([]driver.FunctionInfo, error)
- func (m *Mock) RegisterHandler(name string, handler driver.HandlerFunc)
- func (m *Mock) UpdateFunction(_ context.Context, name string, cfg driver.FunctionConfig) (*driver.FunctionInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
type Mock struct {
// contains filtered or unexported fields
}
Mock is an in-memory mock implementation of Google Cloud Functions.
func (*Mock) CreateFunction ¶
func (m *Mock) CreateFunction(_ context.Context, cfg driver.FunctionConfig) (*driver.FunctionInfo, error)
func (*Mock) GetFunction ¶
func (*Mock) Invoke ¶
func (m *Mock) Invoke(ctx context.Context, input driver.InvokeInput) (*driver.InvokeOutput, error)
func (*Mock) ListFunctions ¶
func (*Mock) RegisterHandler ¶
func (m *Mock) RegisterHandler(name string, handler driver.HandlerFunc)
func (*Mock) UpdateFunction ¶
func (m *Mock) UpdateFunction(_ context.Context, name string, cfg driver.FunctionConfig) (*driver.FunctionInfo, error)
Click to show internal directories.
Click to hide internal directories.