mocks

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t mockConstructorTestingTNewClient) *Client

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

func (*Client) Add

func (_m *Client) Add(_a0 *ldap.AddRequest) error

Add provides a mock function with given fields: _a0

func (*Client) Bind

func (_m *Client) Bind(username string, password string) error

Bind provides a mock function with given fields: username, password

func (*Client) Close

func (_m *Client) Close()

Close provides a mock function with given fields:

func (*Client) Compare

func (_m *Client) Compare(dn string, attribute string, value string) (bool, error)

Compare provides a mock function with given fields: dn, attribute, value

func (*Client) Del

func (_m *Client) Del(_a0 *ldap.DelRequest) error

Del provides a mock function with given fields: _a0

func (*Client) ExternalBind

func (_m *Client) ExternalBind() error

ExternalBind provides a mock function with given fields:

func (*Client) IsClosing

func (_m *Client) IsClosing() bool

IsClosing provides a mock function with given fields:

func (*Client) Modify

func (_m *Client) Modify(_a0 *ldap.ModifyRequest) error

Modify provides a mock function with given fields: _a0

func (*Client) ModifyDN

func (_m *Client) ModifyDN(_a0 *ldap.ModifyDNRequest) error

ModifyDN provides a mock function with given fields: _a0

func (*Client) ModifyWithResult

func (_m *Client) ModifyWithResult(_a0 *ldap.ModifyRequest) (*ldap.ModifyResult, error)

ModifyWithResult provides a mock function with given fields: _a0

func (*Client) NTLMUnauthenticatedBind

func (_m *Client) NTLMUnauthenticatedBind(domain string, username string) error

NTLMUnauthenticatedBind provides a mock function with given fields: domain, username

func (*Client) PasswordModify

func (_m *Client) PasswordModify(_a0 *ldap.PasswordModifyRequest) (*ldap.PasswordModifyResult, error)

PasswordModify provides a mock function with given fields: _a0

func (*Client) Search

func (_m *Client) Search(_a0 *ldap.SearchRequest) (*ldap.SearchResult, error)

Search provides a mock function with given fields: _a0

func (*Client) SearchWithPaging

func (_m *Client) SearchWithPaging(searchRequest *ldap.SearchRequest, pagingSize uint32) (*ldap.SearchResult, error)

SearchWithPaging provides a mock function with given fields: searchRequest, pagingSize

func (*Client) SetTimeout

func (_m *Client) SetTimeout(_a0 time.Duration)

SetTimeout provides a mock function with given fields: _a0

func (*Client) SimpleBind

func (_m *Client) SimpleBind(_a0 *ldap.SimpleBindRequest) (*ldap.SimpleBindResult, error)

SimpleBind provides a mock function with given fields: _a0

func (*Client) Start

func (_m *Client) Start()

Start provides a mock function with given fields:

func (*Client) StartTLS

func (_m *Client) StartTLS(_a0 *tls.Config) error

StartTLS provides a mock function with given fields: _a0

func (*Client) TLSConnectionState

func (_m *Client) TLSConnectionState() (tls.ConnectionState, bool)

TLSConnectionState provides a mock function with given fields:

func (*Client) UnauthenticatedBind

func (_m *Client) UnauthenticatedBind(username string) error

UnauthenticatedBind provides a mock function with given fields: username

func (*Client) Unbind

func (_m *Client) Unbind() error

Unbind provides a mock function with given fields:

type GatewayClient

type GatewayClient struct {
	mock.Mock
}

GatewayClient is an autogenerated mock type for the GatewayClient type

func NewGatewayClient

func NewGatewayClient(t mockConstructorTestingTNewGatewayClient) *GatewayClient

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

func (*GatewayClient) Authenticate

Authenticate provides a mock function with given fields: ctx, in, opts

func (*GatewayClient) CreateStorageSpace

CreateStorageSpace provides a mock function with given fields: ctx, in, opts

func (*GatewayClient) DeleteStorageSpace

DeleteStorageSpace provides a mock function with given fields: ctx, in, opts

func (*GatewayClient) GetHome

GetHome provides a mock function with given fields: ctx, in, opts

func (*GatewayClient) GetPath

GetPath provides a mock function with given fields: ctx, in, opts

func (*GatewayClient) GetQuota

GetQuota provides a mock function with given fields: ctx, in, opts

func (*GatewayClient) InitiateFileDownload

InitiateFileDownload provides a mock function with given fields: ctx, in, opts

func (*GatewayClient) ListContainer

ListContainer provides a mock function with given fields: ctx, in, opts

func (*GatewayClient) ListStorageSpaces

ListStorageSpaces provides a mock function with given fields: ctx, in, opts

func (*GatewayClient) Stat

Stat provides a mock function with given fields: ctx, in, opts

func (*GatewayClient) UpdateStorageSpace

UpdateStorageSpace provides a mock function with given fields: ctx, in, opts

type HTTPClient

type HTTPClient struct {
	mock.Mock
}

HTTPClient is an autogenerated mock type for the HTTPClient type

func NewHTTPClient

func NewHTTPClient(t mockConstructorTestingTNewHTTPClient) *HTTPClient

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

func (*HTTPClient) Do

func (_m *HTTPClient) Do(req *http.Request) (*http.Response, error)

Do provides a mock function with given fields: req

type Permissions

type Permissions struct {
	mock.Mock
}

Permissions is an autogenerated mock type for the Permissions type

func NewPermissions

func NewPermissions(t mockConstructorTestingTNewPermissions) *Permissions

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

func (*Permissions) GetPermissionByID

func (_m *Permissions) GetPermissionByID(ctx context.Context, request *v0.GetPermissionByIDRequest, opts ...client.CallOption) (*v0.GetPermissionByIDResponse, error)

GetPermissionByID provides a mock function with given fields: ctx, request, opts

func (*Permissions) ListPermissionsByResource

ListPermissionsByResource provides a mock function with given fields: ctx, in, opts

type Publisher

type Publisher struct {
	mock.Mock
}

Publisher is an autogenerated mock type for the Publisher type

func NewPublisher

func NewPublisher(t mockConstructorTestingTNewPublisher) *Publisher

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

func (*Publisher) Publish

func (_m *Publisher) Publish(_a0 string, _a1 interface{}, _a2 ...events.PublishOption) error

Publish provides a mock function with given fields: _a0, _a1, _a2

type RoleService

type RoleService struct {
	mock.Mock
}

RoleService is an autogenerated mock type for the RoleService type

func NewRoleService

func NewRoleService(t mockConstructorTestingTNewRoleService) *RoleService

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

func (*RoleService) AssignRoleToUser

AssignRoleToUser provides a mock function with given fields: ctx, in, opts

func (*RoleService) ListRoleAssignments

ListRoleAssignments provides a mock function with given fields: ctx, in, opts

func (*RoleService) ListRoles

ListRoles provides a mock function with given fields: ctx, in, opts

func (*RoleService) RemoveRoleFromUser

func (_m *RoleService) RemoveRoleFromUser(ctx context.Context, in *v0.RemoveRoleFromUserRequest, opts ...client.CallOption) (*emptypb.Empty, error)

RemoveRoleFromUser provides a mock function with given fields: ctx, in, opts

Jump to

Keyboard shortcuts

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