experimentstoremock

package
v0.0.0-...-e01fbee Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMock

func NewMock(_ *any.Any, _ *zap.Logger, _ tally.Scope) (service.Service, error)

Types

type MockStorer

type MockStorer struct {
	GetExperimentArguments getExperimentArguments
}

func (*MockStorer) CancelExperimentRun

func (fs *MockStorer) CancelExperimentRun(ctx context.Context, runId string, reason string) error

func (*MockStorer) Close

func (fs *MockStorer) Close()

func (*MockStorer) GetExperimentRunDetails

func (fs *MockStorer) GetExperimentRunDetails(ctx context.Context, runId string) (*experimentation.ExperimentRunDetails, error)

func (*MockStorer) GetExperiments

func (*MockStorer) GetListView

func (fs *MockStorer) GetListView(ctx context.Context) ([]*experimentation.ListViewItem, error)

func (*MockStorer) RegisterTransformation

func (fs *MockStorer) RegisterTransformation(transformation experimentstore.Transformation) error

type SimpleStorer

type SimpleStorer struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*SimpleStorer) CancelExperimentRun

func (s *SimpleStorer) CancelExperimentRun(ctx context.Context, runId string, reason string) error

func (*SimpleStorer) Close

func (s *SimpleStorer) Close()

func (*SimpleStorer) GetExperimentRunDetails

func (s *SimpleStorer) GetExperimentRunDetails(ctx context.Context, runId string) (*experimentation.ExperimentRunDetails, error)

func (*SimpleStorer) GetExperiments

func (*SimpleStorer) GetListView

func (s *SimpleStorer) GetListView(ctx context.Context) ([]*experimentation.ListViewItem, error)

func (*SimpleStorer) RegisterTransformation

func (s *SimpleStorer) RegisterTransformation(transformation experimentstore.Transformation) error

Jump to

Keyboard shortcuts

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