mocks

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func (*Repository) Close

func (_m *Repository) Close()

Close provides a mock function with given fields:

func (*Repository) CreateBackend

func (_m *Repository) CreateBackend(ctx context.Context, backend *model.Backend) (*model.Backend, error)

CreateBackend provides a mock function with given fields: ctx, backend

func (*Repository) CreateTier added in v1.3.1

func (_m *Repository) CreateTier(ctx context.Context, tier *model.Tier) (*model.Tier, error)

CreateTier provides a mock function with given fields: ctx, tier

func (*Repository) DeleteBackend

func (_m *Repository) DeleteBackend(ctx context.Context, id string) error

DeleteBackend provides a mock function with given fields: ctx, id

func (*Repository) DeleteTier added in v1.3.1

func (_m *Repository) DeleteTier(ctx context.Context, id string) error

DeleteTier provides a mock function with given fields: ctx, id

func (*Repository) GetBackend

func (_m *Repository) GetBackend(ctx context.Context, id string) (*model.Backend, error)

GetBackend provides a mock function with given fields: ctx, id

func (*Repository) GetTier added in v1.3.1

func (_m *Repository) GetTier(ctx context.Context, id string) (*model.Tier, error)

GetTier provides a mock function with given fields: ctx, id

func (*Repository) ListBackend

func (_m *Repository) ListBackend(ctx context.Context, limit int, offset int, query interface{}) ([]*model.Backend, error)

ListBackend provides a mock function with given fields: ctx, limit, offset, query

func (*Repository) ListTiers added in v1.3.1

func (_m *Repository) ListTiers(ctx context.Context, limit int, offset int, query interface{}) ([]*model.Tier, error)

ListTiers provides a mock function with given fields: ctx, limit, offset

func (*Repository) UpdateBackend

func (_m *Repository) UpdateBackend(ctx context.Context, backend *model.Backend) (*model.Backend, error)

UpdateBackend provides a mock function with given fields: ctx, backend

func (*Repository) UpdateTier added in v1.3.1

func (_m *Repository) UpdateTier(ctx context.Context, tier *model.Tier) (*model.Tier, error)

UpdateTier provides a mock function with given fields: ctx, tier

Jump to

Keyboard shortcuts

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