Documentation ¶
Index ¶
- type Client
- func (_m *Client) Add(_a0 *ldap.AddRequest) error
- func (_m *Client) Bind(username string, password string) error
- func (_m *Client) Close()
- func (_m *Client) Compare(dn string, attribute string, value string) (bool, error)
- func (_m *Client) Del(_a0 *ldap.DelRequest) error
- func (_m *Client) ExternalBind() error
- func (_m *Client) IsClosing() bool
- func (_m *Client) Modify(_a0 *ldap.ModifyRequest) error
- func (_m *Client) ModifyDN(_a0 *ldap.ModifyDNRequest) error
- func (_m *Client) ModifyWithResult(_a0 *ldap.ModifyRequest) (*ldap.ModifyResult, error)
- func (_m *Client) NTLMUnauthenticatedBind(domain string, username string) error
- func (_m *Client) PasswordModify(_a0 *ldap.PasswordModifyRequest) (*ldap.PasswordModifyResult, error)
- func (_m *Client) Search(_a0 *ldap.SearchRequest) (*ldap.SearchResult, error)
- func (_m *Client) SearchWithPaging(searchRequest *ldap.SearchRequest, pagingSize uint32) (*ldap.SearchResult, error)
- func (_m *Client) SetTimeout(_a0 time.Duration)
- func (_m *Client) SimpleBind(_a0 *ldap.SimpleBindRequest) (*ldap.SimpleBindResult, error)
- func (_m *Client) Start()
- func (_m *Client) StartTLS(_a0 *tls.Config) error
- func (_m *Client) TLSConnectionState() (tls.ConnectionState, bool)
- func (_m *Client) UnauthenticatedBind(username string) error
- func (_m *Client) Unbind() error
- type GatewayClient
- func (_m *GatewayClient) Authenticate(ctx context.Context, in *gatewayv1beta1.AuthenticateRequest, ...) (*gatewayv1beta1.AuthenticateResponse, error)
- func (_m *GatewayClient) CreateStorageSpace(ctx context.Context, in *providerv1beta1.CreateStorageSpaceRequest, ...) (*providerv1beta1.CreateStorageSpaceResponse, error)
- func (_m *GatewayClient) DeleteStorageSpace(ctx context.Context, in *providerv1beta1.DeleteStorageSpaceRequest, ...) (*providerv1beta1.DeleteStorageSpaceResponse, error)
- func (_m *GatewayClient) GetHome(ctx context.Context, in *providerv1beta1.GetHomeRequest, ...) (*providerv1beta1.GetHomeResponse, error)
- func (_m *GatewayClient) GetPath(ctx context.Context, in *providerv1beta1.GetPathRequest, ...) (*providerv1beta1.GetPathResponse, error)
- func (_m *GatewayClient) GetQuota(ctx context.Context, in *gatewayv1beta1.GetQuotaRequest, ...) (*providerv1beta1.GetQuotaResponse, error)
- func (_m *GatewayClient) InitiateFileDownload(ctx context.Context, in *providerv1beta1.InitiateFileDownloadRequest, ...) (*gatewayv1beta1.InitiateFileDownloadResponse, error)
- func (_m *GatewayClient) ListContainer(ctx context.Context, in *providerv1beta1.ListContainerRequest, ...) (*providerv1beta1.ListContainerResponse, error)
- func (_m *GatewayClient) ListStorageSpaces(ctx context.Context, in *providerv1beta1.ListStorageSpacesRequest, ...) (*providerv1beta1.ListStorageSpacesResponse, error)
- func (_m *GatewayClient) Stat(ctx context.Context, in *providerv1beta1.StatRequest, opts ...grpc.CallOption) (*providerv1beta1.StatResponse, error)
- func (_m *GatewayClient) UpdateStorageSpace(ctx context.Context, in *providerv1beta1.UpdateStorageSpaceRequest, ...) (*providerv1beta1.UpdateStorageSpaceResponse, error)
- type HTTPClient
- type Permissions
- func (_m *Permissions) GetPermissionByID(ctx context.Context, request *v0.GetPermissionByIDRequest, ...) (*v0.GetPermissionByIDResponse, error)
- func (_m *Permissions) ListPermissionsByResource(ctx context.Context, in *v0.ListPermissionsByResourceRequest, ...) (*v0.ListPermissionsByResourceResponse, error)
- type Publisher
- type RoleService
- func (_m *RoleService) AssignRoleToUser(ctx context.Context, in *v0.AssignRoleToUserRequest, opts ...client.CallOption) (*v0.AssignRoleToUserResponse, error)
- func (_m *RoleService) ListRoleAssignments(ctx context.Context, in *v0.ListRoleAssignmentsRequest, ...) (*v0.ListRoleAssignmentsResponse, error)
- func (_m *RoleService) ListRoles(ctx context.Context, in *v0.ListBundlesRequest, opts ...client.CallOption) (*v0.ListBundlesResponse, error)
- func (_m *RoleService) RemoveRoleFromUser(ctx context.Context, in *v0.RemoveRoleFromUserRequest, ...) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
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) Del ¶
func (_m *Client) Del(_a0 *ldap.DelRequest) error
Del provides a mock function with given fields: _a0
func (*Client) ExternalBind ¶
ExternalBind 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 ¶
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 ¶
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) TLSConnectionState ¶
func (_m *Client) TLSConnectionState() (tls.ConnectionState, bool)
TLSConnectionState provides a mock function with given fields:
func (*Client) UnauthenticatedBind ¶
UnauthenticatedBind provides a mock function with given fields: username
type GatewayClient ¶
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 ¶
func (_m *GatewayClient) Authenticate(ctx context.Context, in *gatewayv1beta1.AuthenticateRequest, opts ...grpc.CallOption) (*gatewayv1beta1.AuthenticateResponse, error)
Authenticate provides a mock function with given fields: ctx, in, opts
func (*GatewayClient) CreateStorageSpace ¶
func (_m *GatewayClient) CreateStorageSpace(ctx context.Context, in *providerv1beta1.CreateStorageSpaceRequest, opts ...grpc.CallOption) (*providerv1beta1.CreateStorageSpaceResponse, error)
CreateStorageSpace provides a mock function with given fields: ctx, in, opts
func (*GatewayClient) DeleteStorageSpace ¶
func (_m *GatewayClient) DeleteStorageSpace(ctx context.Context, in *providerv1beta1.DeleteStorageSpaceRequest, opts ...grpc.CallOption) (*providerv1beta1.DeleteStorageSpaceResponse, error)
DeleteStorageSpace provides a mock function with given fields: ctx, in, opts
func (*GatewayClient) GetHome ¶
func (_m *GatewayClient) GetHome(ctx context.Context, in *providerv1beta1.GetHomeRequest, opts ...grpc.CallOption) (*providerv1beta1.GetHomeResponse, error)
GetHome provides a mock function with given fields: ctx, in, opts
func (*GatewayClient) GetPath ¶
func (_m *GatewayClient) GetPath(ctx context.Context, in *providerv1beta1.GetPathRequest, opts ...grpc.CallOption) (*providerv1beta1.GetPathResponse, error)
GetPath provides a mock function with given fields: ctx, in, opts
func (*GatewayClient) GetQuota ¶
func (_m *GatewayClient) GetQuota(ctx context.Context, in *gatewayv1beta1.GetQuotaRequest, opts ...grpc.CallOption) (*providerv1beta1.GetQuotaResponse, error)
GetQuota provides a mock function with given fields: ctx, in, opts
func (*GatewayClient) InitiateFileDownload ¶
func (_m *GatewayClient) InitiateFileDownload(ctx context.Context, in *providerv1beta1.InitiateFileDownloadRequest, opts ...grpc.CallOption) (*gatewayv1beta1.InitiateFileDownloadResponse, error)
InitiateFileDownload provides a mock function with given fields: ctx, in, opts
func (*GatewayClient) ListContainer ¶
func (_m *GatewayClient) ListContainer(ctx context.Context, in *providerv1beta1.ListContainerRequest, opts ...grpc.CallOption) (*providerv1beta1.ListContainerResponse, error)
ListContainer provides a mock function with given fields: ctx, in, opts
func (*GatewayClient) ListStorageSpaces ¶
func (_m *GatewayClient) ListStorageSpaces(ctx context.Context, in *providerv1beta1.ListStorageSpacesRequest, opts ...grpc.CallOption) (*providerv1beta1.ListStorageSpacesResponse, error)
ListStorageSpaces provides a mock function with given fields: ctx, in, opts
func (*GatewayClient) Stat ¶
func (_m *GatewayClient) Stat(ctx context.Context, in *providerv1beta1.StatRequest, opts ...grpc.CallOption) (*providerv1beta1.StatResponse, error)
Stat provides a mock function with given fields: ctx, in, opts
func (*GatewayClient) UpdateStorageSpace ¶
func (_m *GatewayClient) UpdateStorageSpace(ctx context.Context, in *providerv1beta1.UpdateStorageSpaceRequest, opts ...grpc.CallOption) (*providerv1beta1.UpdateStorageSpaceResponse, error)
UpdateStorageSpace provides a mock function with given fields: ctx, in, opts
type HTTPClient ¶
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.
type Permissions ¶
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 ¶
func (_m *Permissions) ListPermissionsByResource(ctx context.Context, in *v0.ListPermissionsByResourceRequest, opts ...client.CallOption) (*v0.ListPermissionsByResourceResponse, error)
ListPermissionsByResource provides a mock function with given fields: ctx, in, opts
type Publisher ¶
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.
type RoleService ¶
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 ¶
func (_m *RoleService) AssignRoleToUser(ctx context.Context, in *v0.AssignRoleToUserRequest, opts ...client.CallOption) (*v0.AssignRoleToUserResponse, error)
AssignRoleToUser provides a mock function with given fields: ctx, in, opts
func (*RoleService) ListRoleAssignments ¶
func (_m *RoleService) ListRoleAssignments(ctx context.Context, in *v0.ListRoleAssignmentsRequest, opts ...client.CallOption) (*v0.ListRoleAssignmentsResponse, error)
ListRoleAssignments provides a mock function with given fields: ctx, in, opts
func (*RoleService) ListRoles ¶
func (_m *RoleService) ListRoles(ctx context.Context, in *v0.ListBundlesRequest, opts ...client.CallOption) (*v0.ListBundlesResponse, error)
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