mocks

package
v0.35.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 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 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 added in v0.34.0

type Servicer struct {
	mock.Mock
}

Servicer is an autogenerated mock type for the Servicer type

func NewServicer added in v0.34.0

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 added in v0.34.0

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

Create provides a mock function with given fields: data

func (*Servicer) Delete added in v0.34.0

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

Delete provides a mock function with given fields: data

func (*Servicer) Get added in v0.34.0

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

Get provides a mock function with given fields: ID

func (*Servicer) List added in v0.34.0

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

List provides a mock function with given fields: query

func (*Servicer) ListPages added in v0.34.0

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 added in v0.34.0

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

Reset provides a mock function with given fields: id

func (*Servicer) Save added in v0.34.0

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

Save provides a mock function with given fields: data

func (*Servicer) Update added in v0.34.0

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 added in v0.34.0

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