mocks

package
v0.0.2-prerelease Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deleter

type Deleter struct {
	mock.Mock
}

Deleter is an autogenerated mock type for the Deleter type

func (*Deleter) Delete

func (_m *Deleter) Delete(i *account.Account) error

Delete provides a mock function with given fields: i

type Eventer

type Eventer struct {
	mock.Mock
}

Eventer is an autogenerated mock type for the Eventer type

func (*Eventer) AccountCreate

func (_m *Eventer) AccountCreate(_a0 *account.Account) error

AccountCreate provides a mock function with given fields: _a0

func (*Eventer) AccountDelete

func (_m *Eventer) AccountDelete(_a0 *account.Account) error

AccountDelete provides a mock function with given fields: _a0

func (*Eventer) AccountReset

func (_m *Eventer) AccountReset(_a0 *account.Account) error

AccountReset provides a mock function with given fields: _a0

func (*Eventer) AccountUpdate

func (_m *Eventer) AccountUpdate(old *account.Account, new *account.Account) error

AccountUpdate provides a mock function with given fields: old, new

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func (*Manager) DeletePrincipalAccess

func (_m *Manager) DeletePrincipalAccess(_a0 *account.Account) error

DeletePrincipalAccess provides a mock function with given fields: _a0

func (*Manager) UpsertPrincipalAccess

func (_m *Manager) UpsertPrincipalAccess(_a0 *account.Account) error

UpsertPrincipalAccess provides a mock function with given fields: _a0

func (*Manager) ValidateAccess

func (_m *Manager) ValidateAccess(role *arn.ARN) error

ValidateAccess provides a mock function with given fields: role

type MultipleReader

type MultipleReader struct {
	mock.Mock
}

MultipleReader is an autogenerated mock type for the MultipleReader type

func (*MultipleReader) List

func (_m *MultipleReader) List(query *account.Account) (*account.Accounts, error)

List provides a mock function with given fields: query

type Reader

type Reader struct {
	mock.Mock
}

Reader is an autogenerated mock type for the Reader type

func (*Reader) Get

func (_m *Reader) Get(ID string) (*account.Account, error)

Get provides a mock function with given fields: ID

func (*Reader) List

func (_m *Reader) List(query *account.Account) (*account.Accounts, error)

List provides a mock function with given fields: query

type ReaderWriterDeleter

type ReaderWriterDeleter struct {
	mock.Mock
}

ReaderWriterDeleter is an autogenerated mock type for the ReaderWriterDeleter type

func (*ReaderWriterDeleter) Delete

func (_m *ReaderWriterDeleter) Delete(i *account.Account) error

Delete provides a mock function with given fields: i

func (*ReaderWriterDeleter) Get

Get provides a mock function with given fields: ID

func (*ReaderWriterDeleter) List

List provides a mock function with given fields: query

func (*ReaderWriterDeleter) Write

func (_m *ReaderWriterDeleter) Write(i *account.Account, lastModifiedOn *int64) error

Write provides a mock function with given fields: i, lastModifiedOn

type Servicer

type Servicer struct {
	mock.Mock
}

Servicer is an autogenerated mock type for the Servicer type

func NewServicer

func NewServicer(t mockConstructorTestingTNewServicer) *Servicer

NewServicer creates a new instance of Servicer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Servicer) Create

func (_m *Servicer) Create(data *account.Account) (*account.Account, error)

Create provides a mock function with given fields: data

func (*Servicer) Delete

func (_m *Servicer) Delete(data *account.Account) error

Delete provides a mock function with given fields: data

func (*Servicer) Get

func (_m *Servicer) Get(ID string) (*account.Account, error)

Get provides a mock function with given fields: ID

func (*Servicer) List

func (_m *Servicer) List(query *account.Account) (*account.Accounts, error)

List provides a mock function with given fields: query

func (*Servicer) ListPages

func (_m *Servicer) ListPages(query *account.Account, fn func(*account.Accounts) bool) error

ListPages provides a mock function with given fields: query, fn

func (*Servicer) Reset

func (_m *Servicer) Reset(id string) (*account.Account, error)

Reset provides a mock function with given fields: id

func (*Servicer) Save

func (_m *Servicer) Save(data *account.Account) error

Save provides a mock function with given fields: data

func (*Servicer) Update

func (_m *Servicer) Update(ID string, data *account.Account) (*account.Account, error)

Update provides a mock function with given fields: ID, data

func (*Servicer) UpsertPrincipalAccess

func (_m *Servicer) UpsertPrincipalAccess(data *account.Account) error

UpsertPrincipalAccess provides a mock function with given fields: data

type SingleReader

type SingleReader struct {
	mock.Mock
}

SingleReader is an autogenerated mock type for the SingleReader type

func (*SingleReader) Get

func (_m *SingleReader) Get(ID string) (*account.Account, error)

Get provides a mock function with given fields: ID

type Writer

type Writer struct {
	mock.Mock
}

Writer is an autogenerated mock type for the Writer type

func (*Writer) Write

func (_m *Writer) Write(i *account.Account, lastModifiedOn *int64) error

Write provides a mock function with given fields: i, lastModifiedOn

type WriterDeleter

type WriterDeleter struct {
	mock.Mock
}

WriterDeleter is an autogenerated mock type for the WriterDeleter type

func (*WriterDeleter) Delete

func (_m *WriterDeleter) Delete(i *account.Account) error

Delete provides a mock function with given fields: i

func (*WriterDeleter) Write

func (_m *WriterDeleter) Write(i *account.Account, lastModifiedOn *int64) error

Write provides a mock function with given fields: i, lastModifiedOn

Jump to

Keyboard shortcuts

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