translation

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditLogMock

type AuditLogMock struct {
	GetFunc    func(projectID string) (*audit.AuditConfig, error)
	UpdateFunc func(projectID string, auditing *audit.AuditConfig) error
}

func (*AuditLogMock) Get

func (c *AuditLogMock) Get(_ context.Context, projectID string) (*audit.AuditConfig, error)

func (*AuditLogMock) Update

func (c *AuditLogMock) Update(_ context.Context, projectID string, auditing *audit.AuditConfig) error

type IPAccessListServiceMock

type IPAccessListServiceMock struct {
	mock.Mock
}

IPAccessListServiceMock is an autogenerated mock type for the IPAccessListService type

func NewIPAccessListServiceMock

func NewIPAccessListServiceMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *IPAccessListServiceMock

NewIPAccessListServiceMock creates a new instance of IPAccessListServiceMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IPAccessListServiceMock) Add

Add provides a mock function with given fields: ctx, projectID, entries

func (*IPAccessListServiceMock) Delete

func (_m *IPAccessListServiceMock) Delete(ctx context.Context, projectID string, entry *ipaccesslist.IPAccessEntry) error

Delete provides a mock function with given fields: ctx, projectID, entry

func (*IPAccessListServiceMock) EXPECT

func (*IPAccessListServiceMock) List

List provides a mock function with given fields: ctx, projectID

func (*IPAccessListServiceMock) Status

func (_m *IPAccessListServiceMock) Status(ctx context.Context, projectID string, entry *ipaccesslist.IPAccessEntry) (string, error)

Status provides a mock function with given fields: ctx, projectID, entry

type IPAccessListServiceMock_Add_Call

type IPAccessListServiceMock_Add_Call struct {
	*mock.Call
}

IPAccessListServiceMock_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'

func (*IPAccessListServiceMock_Add_Call) Return

func (*IPAccessListServiceMock_Add_Call) Run

func (*IPAccessListServiceMock_Add_Call) RunAndReturn

type IPAccessListServiceMock_Delete_Call

type IPAccessListServiceMock_Delete_Call struct {
	*mock.Call
}

IPAccessListServiceMock_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*IPAccessListServiceMock_Delete_Call) Return

func (*IPAccessListServiceMock_Delete_Call) Run

func (*IPAccessListServiceMock_Delete_Call) RunAndReturn

type IPAccessListServiceMock_Expecter

type IPAccessListServiceMock_Expecter struct {
	// contains filtered or unexported fields
}

func (*IPAccessListServiceMock_Expecter) Add

func (_e *IPAccessListServiceMock_Expecter) Add(ctx interface{}, projectID interface{}, entries interface{}) *IPAccessListServiceMock_Add_Call

Add is a helper method to define mock.On call

  • ctx context.Context
  • projectID string
  • entries ipaccesslist.IPAccessEntries

func (*IPAccessListServiceMock_Expecter) Delete

func (_e *IPAccessListServiceMock_Expecter) Delete(ctx interface{}, projectID interface{}, entry interface{}) *IPAccessListServiceMock_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • projectID string
  • entry *ipaccesslist.IPAccessEntry

func (*IPAccessListServiceMock_Expecter) List

func (_e *IPAccessListServiceMock_Expecter) List(ctx interface{}, projectID interface{}) *IPAccessListServiceMock_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • projectID string

func (*IPAccessListServiceMock_Expecter) Status

func (_e *IPAccessListServiceMock_Expecter) Status(ctx interface{}, projectID interface{}, entry interface{}) *IPAccessListServiceMock_Status_Call

Status is a helper method to define mock.On call

  • ctx context.Context
  • projectID string
  • entry *ipaccesslist.IPAccessEntry

type IPAccessListServiceMock_List_Call

type IPAccessListServiceMock_List_Call struct {
	*mock.Call
}

IPAccessListServiceMock_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*IPAccessListServiceMock_List_Call) Return

func (*IPAccessListServiceMock_List_Call) Run

func (*IPAccessListServiceMock_List_Call) RunAndReturn

type IPAccessListServiceMock_Status_Call

type IPAccessListServiceMock_Status_Call struct {
	*mock.Call
}

IPAccessListServiceMock_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'

func (*IPAccessListServiceMock_Status_Call) Return

func (*IPAccessListServiceMock_Status_Call) Run

func (*IPAccessListServiceMock_Status_Call) RunAndReturn

Jump to

Keyboard shortcuts

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