mock

package
v1.1.0-beta.0...-6806af4 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockGlue

type MockGlue struct {
	GlobalVars map[string]string
	// contains filtered or unexported fields
}

MockGlue only used for test

func (*MockGlue) CreateSession

func (m *MockGlue) CreateSession(store kv.Storage) (glue.Session, error)

CreateSession implements glue.Glue.

func (*MockGlue) GetClient

func (*MockGlue) GetClient() glue.GlueClient

func (*MockGlue) GetDomain

func (*MockGlue) GetDomain(store kv.Storage) (*domain.Domain, error)

GetDomain implements glue.Glue.

func (*MockGlue) GetVersion

func (*MockGlue) GetVersion() string

GetVersion implements glue.Glue.

func (*MockGlue) Open

func (*MockGlue) Open(path string, option pd.SecurityOption) (kv.Storage, error)

Open implements glue.Glue.

func (*MockGlue) OwnsStorage

func (*MockGlue) OwnsStorage() bool

OwnsStorage implements glue.Glue.

func (*MockGlue) Record

func (*MockGlue) Record(name string, value uint64)

Record implements glue.Glue.

func (*MockGlue) SetSession

func (m *MockGlue) SetSession(se sessiontypes.Session)

func (*MockGlue) StartProgress

func (*MockGlue) StartProgress(ctx context.Context, cmdName string, total int64, redirectLog bool) glue.Progress

StartProgress implements glue.Glue.

func (*MockGlue) UseOneShotSession

func (m *MockGlue) UseOneShotSession(store kv.Storage, closeDomain bool, fn func(glue.Session) error) error

UseOneShotSession implements glue.Glue.

Jump to

Keyboard shortcuts

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