cloudfunctions

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package cloudfunctions provides an in-memory mock implementation of Google Cloud Functions.

Index

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 New

func New(opts *config.Options) *Mock

New creates a new Cloud Functions mock.

func (*Mock) CreateFunction

func (m *Mock) CreateFunction(_ context.Context, cfg driver.FunctionConfig) (*driver.FunctionInfo, error)

func (*Mock) DeleteFunction

func (m *Mock) DeleteFunction(_ context.Context, name string) error

func (*Mock) GetFunction

func (m *Mock) GetFunction(_ context.Context, name string) (*driver.FunctionInfo, error)

func (*Mock) Invoke

func (m *Mock) Invoke(ctx context.Context, input driver.InvokeInput) (*driver.InvokeOutput, error)

func (*Mock) ListFunctions

func (m *Mock) ListFunctions(_ context.Context) ([]driver.FunctionInfo, error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL