mock

package
v0.0.0-...-b922b35 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditLogConfigurationApi

AuditLogConfigurationApi is a mock of AuditLogConfigurationApi interface

func (*AuditLogConfigurationApi) GetConfig

GetConfig mocks base method by wrapping the associated func.

func (*AuditLogConfigurationApi) GetConfigCalled

func (m *AuditLogConfigurationApi) GetConfigCalled() bool

GetConfigCalled returns true if GetConfig was called at least once.

func (*AuditLogConfigurationApi) GetConfigCalls

func (m *AuditLogConfigurationApi) GetConfigCalls() []struct {
	Ctx context.Context
}

GetConfigCalls returns the calls made to GetConfig.

func (*AuditLogConfigurationApi) ListRoutes

ListRoutes mocks base method by wrapping the associated func.

func (*AuditLogConfigurationApi) ListRoutesCalled

func (m *AuditLogConfigurationApi) ListRoutesCalled() bool

ListRoutesCalled returns true if ListRoutes was called at least once.

func (*AuditLogConfigurationApi) ListRoutesCalls

func (m *AuditLogConfigurationApi) ListRoutesCalls() []struct {
	Ctx               context.Context
	LocalVarOptionals *github_com_confluentinc_mds_sdk_go_public_mdsv1.ListRoutesOpts
}

ListRoutesCalls returns the calls made to ListRoutes.

func (*AuditLogConfigurationApi) PutConfig

PutConfig mocks base method by wrapping the associated func.

func (*AuditLogConfigurationApi) PutConfigCalled

func (m *AuditLogConfigurationApi) PutConfigCalled() bool

PutConfigCalled returns true if PutConfig was called at least once.

func (*AuditLogConfigurationApi) PutConfigCalls

func (m *AuditLogConfigurationApi) PutConfigCalls() []struct {
	Ctx                context.Context
	AuditLogConfigSpec github_com_confluentinc_mds_sdk_go_public_mdsv1.AuditLogConfigSpec
}

PutConfigCalls returns the calls made to PutConfig.

func (*AuditLogConfigurationApi) Reset

func (m *AuditLogConfigurationApi) Reset()

Reset resets the calls made to the mocked methods.

func (*AuditLogConfigurationApi) ResolveResourceRoute

ResolveResourceRoute mocks base method by wrapping the associated func.

func (*AuditLogConfigurationApi) ResolveResourceRouteCalled

func (m *AuditLogConfigurationApi) ResolveResourceRouteCalled() bool

ResolveResourceRouteCalled returns true if ResolveResourceRoute was called at least once.

func (*AuditLogConfigurationApi) ResolveResourceRouteCalls

func (m *AuditLogConfigurationApi) ResolveResourceRouteCalls() []struct {
	Ctx               context.Context
	LocalVarOptionals *github_com_confluentinc_mds_sdk_go_public_mdsv1.ResolveResourceRouteOpts
}

ResolveResourceRouteCalls returns the calls made to ResolveResourceRoute.

type AuthorizationApi

type AuthorizationApi struct {
	AuthorizeFunc func(ctx context.Context, authorizeRequest github_com_confluentinc_mds_sdk_go_public_mdsv1.AuthorizeRequest) ([]string, *net_http.Response, error)
	// contains filtered or unexported fields
}

AuthorizationApi is a mock of AuthorizationApi interface

func (*AuthorizationApi) Authorize

Authorize mocks base method by wrapping the associated func.

func (*AuthorizationApi) AuthorizeCalled

func (m *AuthorizationApi) AuthorizeCalled() bool

AuthorizeCalled returns true if Authorize was called at least once.

func (*AuthorizationApi) AuthorizeCalls

func (m *AuthorizationApi) AuthorizeCalls() []struct {
	Ctx              context.Context
	AuthorizeRequest github_com_confluentinc_mds_sdk_go_public_mdsv1.AuthorizeRequest
}

AuthorizeCalls returns the calls made to Authorize.

func (*AuthorizationApi) Reset

func (m *AuthorizationApi) Reset()

Reset resets the calls made to the mocked methods.

type ClusterRegistryApi

type ClusterRegistryApi struct {
	ClusterRegistryListFunc func(ctx context.Context, localVarOptionals *github_com_confluentinc_mds_sdk_go_public_mdsv1.ClusterRegistryListOpts) ([]github_com_confluentinc_mds_sdk_go_public_mdsv1.ClusterInfo, *net_http.Response, error)

	DeleteNamedClusterFunc func(ctx context.Context, clusterName string) (*net_http.Response, error)

	GetNamedClusterFunc func(ctx context.Context, clusterName string) (github_com_confluentinc_mds_sdk_go_public_mdsv1.ClusterInfo, *net_http.Response, error)

	UpdateClustersFunc func(ctx context.Context, clusterInfo []github_com_confluentinc_mds_sdk_go_public_mdsv1.ClusterInfo) (*net_http.Response, error)
	// contains filtered or unexported fields
}

ClusterRegistryApi is a mock of ClusterRegistryApi interface

func (*ClusterRegistryApi) ClusterRegistryList

ClusterRegistryList mocks base method by wrapping the associated func.

func (*ClusterRegistryApi) ClusterRegistryListCalled

func (m *ClusterRegistryApi) ClusterRegistryListCalled() bool

ClusterRegistryListCalled returns true if ClusterRegistryList was called at least once.

func (*ClusterRegistryApi) ClusterRegistryListCalls

func (m *ClusterRegistryApi) ClusterRegistryListCalls() []struct {
	Ctx               context.Context
	LocalVarOptionals *github_com_confluentinc_mds_sdk_go_public_mdsv1.ClusterRegistryListOpts
}

ClusterRegistryListCalls returns the calls made to ClusterRegistryList.

func (*ClusterRegistryApi) DeleteNamedCluster

func (m *ClusterRegistryApi) DeleteNamedCluster(ctx context.Context, clusterName string) (*net_http.Response, error)

DeleteNamedCluster mocks base method by wrapping the associated func.

func (*ClusterRegistryApi) DeleteNamedClusterCalled

func (m *ClusterRegistryApi) DeleteNamedClusterCalled() bool

DeleteNamedClusterCalled returns true if DeleteNamedCluster was called at least once.

func (*ClusterRegistryApi) DeleteNamedClusterCalls

func (m *ClusterRegistryApi) DeleteNamedClusterCalls() []struct {
	Ctx         context.Context
	ClusterName string
}

DeleteNamedClusterCalls returns the calls made to DeleteNamedCluster.

func (*ClusterRegistryApi) GetNamedCluster

GetNamedCluster mocks base method by wrapping the associated func.

func (*ClusterRegistryApi) GetNamedClusterCalled

func (m *ClusterRegistryApi) GetNamedClusterCalled() bool

GetNamedClusterCalled returns true if GetNamedCluster was called at least once.

func (*ClusterRegistryApi) GetNamedClusterCalls

func (m *ClusterRegistryApi) GetNamedClusterCalls() []struct {
	Ctx         context.Context
	ClusterName string
}

GetNamedClusterCalls returns the calls made to GetNamedCluster.

func (*ClusterRegistryApi) Reset

func (m *ClusterRegistryApi) Reset()

Reset resets the calls made to the mocked methods.

func (*ClusterRegistryApi) UpdateClusters

UpdateClusters mocks base method by wrapping the associated func.

func (*ClusterRegistryApi) UpdateClustersCalled

func (m *ClusterRegistryApi) UpdateClustersCalled() bool

UpdateClustersCalled returns true if UpdateClusters was called at least once.

func (*ClusterRegistryApi) UpdateClustersCalls

func (m *ClusterRegistryApi) UpdateClustersCalls() []struct {
	Ctx         context.Context
	ClusterInfo []github_com_confluentinc_mds_sdk_go_public_mdsv1.ClusterInfo
}

UpdateClustersCalls returns the calls made to UpdateClusters.

type KafkaACLManagementApi

KafkaACLManagementApi is a mock of KafkaACLManagementApi interface

func (*KafkaACLManagementApi) AddAclBinding

AddAclBinding mocks base method by wrapping the associated func.

func (*KafkaACLManagementApi) AddAclBindingCalled

func (m *KafkaACLManagementApi) AddAclBindingCalled() bool

AddAclBindingCalled returns true if AddAclBinding was called at least once.

func (*KafkaACLManagementApi) AddAclBindingCalls

func (m *KafkaACLManagementApi) AddAclBindingCalls() []struct {
	Ctx              context.Context
	CreateAclRequest github_com_confluentinc_mds_sdk_go_public_mdsv1.CreateAclRequest
}

AddAclBindingCalls returns the calls made to AddAclBinding.

func (*KafkaACLManagementApi) RemoveAclBindings

RemoveAclBindings mocks base method by wrapping the associated func.

func (*KafkaACLManagementApi) RemoveAclBindingsCalled

func (m *KafkaACLManagementApi) RemoveAclBindingsCalled() bool

RemoveAclBindingsCalled returns true if RemoveAclBindings was called at least once.

func (*KafkaACLManagementApi) RemoveAclBindingsCalls

func (m *KafkaACLManagementApi) RemoveAclBindingsCalls() []struct {
	Ctx              context.Context
	AclFilterRequest github_com_confluentinc_mds_sdk_go_public_mdsv1.AclFilterRequest
}

RemoveAclBindingsCalls returns the calls made to RemoveAclBindings.

func (*KafkaACLManagementApi) Reset

func (m *KafkaACLManagementApi) Reset()

Reset resets the calls made to the mocked methods.

func (*KafkaACLManagementApi) SearchAclBinding

SearchAclBinding mocks base method by wrapping the associated func.

func (*KafkaACLManagementApi) SearchAclBindingCalled

func (m *KafkaACLManagementApi) SearchAclBindingCalled() bool

SearchAclBindingCalled returns true if SearchAclBinding was called at least once.

func (*KafkaACLManagementApi) SearchAclBindingCalls

func (m *KafkaACLManagementApi) SearchAclBindingCalls() []struct {
	Ctx              context.Context
	AclFilterRequest github_com_confluentinc_mds_sdk_go_public_mdsv1.AclFilterRequest
}

SearchAclBindingCalls returns the calls made to SearchAclBinding.

type RBACRoleBindingCRUDApi

type RBACRoleBindingCRUDApi struct {
	AddRoleForPrincipalFunc func(ctx context.Context, principal, roleName string, mdsScope github_com_confluentinc_mds_sdk_go_public_mdsv1.MdsScope) (*net_http.Response, error)

	AddRoleResourcesForPrincipalFunc func(ctx context.Context, principal, roleName string, resourcesRequest github_com_confluentinc_mds_sdk_go_public_mdsv1.ResourcesRequest) (*net_http.Response, error)

	DeleteRoleForPrincipalFunc func(ctx context.Context, principal, roleName string, mdsScope github_com_confluentinc_mds_sdk_go_public_mdsv1.MdsScope) (*net_http.Response, error)

	GetRoleResourcesForPrincipalFunc func(ctx context.Context, principal, roleName string, mdsScope github_com_confluentinc_mds_sdk_go_public_mdsv1.MdsScope) ([]github_com_confluentinc_mds_sdk_go_public_mdsv1.ResourcePattern, *net_http.Response, error)

	RemoveRoleResourcesForPrincipalFunc func(ctx context.Context, principal, roleName string, resourcesRequest github_com_confluentinc_mds_sdk_go_public_mdsv1.ResourcesRequest) (*net_http.Response, error)

	SetRoleResourcesForPrincipalFunc func(ctx context.Context, principal, roleName string, resourcesRequest github_com_confluentinc_mds_sdk_go_public_mdsv1.ResourcesRequest) (*net_http.Response, error)
	// contains filtered or unexported fields
}

RBACRoleBindingCRUDApi is a mock of RBACRoleBindingCRUDApi interface

func (*RBACRoleBindingCRUDApi) AddRoleForPrincipal

func (m *RBACRoleBindingCRUDApi) AddRoleForPrincipal(ctx context.Context, principal, roleName string, mdsScope github_com_confluentinc_mds_sdk_go_public_mdsv1.MdsScope) (*net_http.Response, error)

AddRoleForPrincipal mocks base method by wrapping the associated func.

func (*RBACRoleBindingCRUDApi) AddRoleForPrincipalCalled

func (m *RBACRoleBindingCRUDApi) AddRoleForPrincipalCalled() bool

AddRoleForPrincipalCalled returns true if AddRoleForPrincipal was called at least once.

func (*RBACRoleBindingCRUDApi) AddRoleForPrincipalCalls

func (m *RBACRoleBindingCRUDApi) AddRoleForPrincipalCalls() []struct {
	Ctx       context.Context
	Principal string
	RoleName  string
	MdsScope  github_com_confluentinc_mds_sdk_go_public_mdsv1.MdsScope
}

AddRoleForPrincipalCalls returns the calls made to AddRoleForPrincipal.

func (*RBACRoleBindingCRUDApi) AddRoleResourcesForPrincipal

func (m *RBACRoleBindingCRUDApi) AddRoleResourcesForPrincipal(ctx context.Context, principal, roleName string, resourcesRequest github_com_confluentinc_mds_sdk_go_public_mdsv1.ResourcesRequest) (*net_http.Response, error)

AddRoleResourcesForPrincipal mocks base method by wrapping the associated func.

func (*RBACRoleBindingCRUDApi) AddRoleResourcesForPrincipalCalled

func (m *RBACRoleBindingCRUDApi) AddRoleResourcesForPrincipalCalled() bool

AddRoleResourcesForPrincipalCalled returns true if AddRoleResourcesForPrincipal was called at least once.

func (*RBACRoleBindingCRUDApi) AddRoleResourcesForPrincipalCalls

func (m *RBACRoleBindingCRUDApi) AddRoleResourcesForPrincipalCalls() []struct {
	Ctx              context.Context
	Principal        string
	RoleName         string
	ResourcesRequest github_com_confluentinc_mds_sdk_go_public_mdsv1.ResourcesRequest
}

AddRoleResourcesForPrincipalCalls returns the calls made to AddRoleResourcesForPrincipal.

func (*RBACRoleBindingCRUDApi) DeleteRoleForPrincipal

func (m *RBACRoleBindingCRUDApi) DeleteRoleForPrincipal(ctx context.Context, principal, roleName string, mdsScope github_com_confluentinc_mds_sdk_go_public_mdsv1.MdsScope) (*net_http.Response, error)

DeleteRoleForPrincipal mocks base method by wrapping the associated func.

func (*RBACRoleBindingCRUDApi) DeleteRoleForPrincipalCalled

func (m *RBACRoleBindingCRUDApi) DeleteRoleForPrincipalCalled() bool

DeleteRoleForPrincipalCalled returns true if DeleteRoleForPrincipal was called at least once.

func (*RBACRoleBindingCRUDApi) DeleteRoleForPrincipalCalls

func (m *RBACRoleBindingCRUDApi) DeleteRoleForPrincipalCalls() []struct {
	Ctx       context.Context
	Principal string
	RoleName  string
	MdsScope  github_com_confluentinc_mds_sdk_go_public_mdsv1.MdsScope
}

DeleteRoleForPrincipalCalls returns the calls made to DeleteRoleForPrincipal.

func (*RBACRoleBindingCRUDApi) GetRoleResourcesForPrincipal

GetRoleResourcesForPrincipal mocks base method by wrapping the associated func.

func (*RBACRoleBindingCRUDApi) GetRoleResourcesForPrincipalCalled

func (m *RBACRoleBindingCRUDApi) GetRoleResourcesForPrincipalCalled() bool

GetRoleResourcesForPrincipalCalled returns true if GetRoleResourcesForPrincipal was called at least once.

func (*RBACRoleBindingCRUDApi) GetRoleResourcesForPrincipalCalls

func (m *RBACRoleBindingCRUDApi) GetRoleResourcesForPrincipalCalls() []struct {
	Ctx       context.Context
	Principal string
	RoleName  string
	MdsScope  github_com_confluentinc_mds_sdk_go_public_mdsv1.MdsScope
}

GetRoleResourcesForPrincipalCalls returns the calls made to GetRoleResourcesForPrincipal.

func (*RBACRoleBindingCRUDApi) RemoveRoleResourcesForPrincipal

func (m *RBACRoleBindingCRUDApi) RemoveRoleResourcesForPrincipal(ctx context.Context, principal, roleName string, resourcesRequest github_com_confluentinc_mds_sdk_go_public_mdsv1.ResourcesRequest) (*net_http.Response, error)

RemoveRoleResourcesForPrincipal mocks base method by wrapping the associated func.

func (*RBACRoleBindingCRUDApi) RemoveRoleResourcesForPrincipalCalled

func (m *RBACRoleBindingCRUDApi) RemoveRoleResourcesForPrincipalCalled() bool

RemoveRoleResourcesForPrincipalCalled returns true if RemoveRoleResourcesForPrincipal was called at least once.

func (*RBACRoleBindingCRUDApi) RemoveRoleResourcesForPrincipalCalls

func (m *RBACRoleBindingCRUDApi) RemoveRoleResourcesForPrincipalCalls() []struct {
	Ctx              context.Context
	Principal        string
	RoleName         string
	ResourcesRequest github_com_confluentinc_mds_sdk_go_public_mdsv1.ResourcesRequest
}

RemoveRoleResourcesForPrincipalCalls returns the calls made to RemoveRoleResourcesForPrincipal.

func (*RBACRoleBindingCRUDApi) Reset

func (m *RBACRoleBindingCRUDApi) Reset()

Reset resets the calls made to the mocked methods.

func (*RBACRoleBindingCRUDApi) SetRoleResourcesForPrincipal

func (m *RBACRoleBindingCRUDApi) SetRoleResourcesForPrincipal(ctx context.Context, principal, roleName string, resourcesRequest github_com_confluentinc_mds_sdk_go_public_mdsv1.ResourcesRequest) (*net_http.Response, error)

SetRoleResourcesForPrincipal mocks base method by wrapping the associated func.

func (*RBACRoleBindingCRUDApi) SetRoleResourcesForPrincipalCalled

func (m *RBACRoleBindingCRUDApi) SetRoleResourcesForPrincipalCalled() bool

SetRoleResourcesForPrincipalCalled returns true if SetRoleResourcesForPrincipal was called at least once.

func (*RBACRoleBindingCRUDApi) SetRoleResourcesForPrincipalCalls

func (m *RBACRoleBindingCRUDApi) SetRoleResourcesForPrincipalCalls() []struct {
	Ctx              context.Context
	Principal        string
	RoleName         string
	ResourcesRequest github_com_confluentinc_mds_sdk_go_public_mdsv1.ResourcesRequest
}

SetRoleResourcesForPrincipalCalls returns the calls made to SetRoleResourcesForPrincipal.

type RBACRoleBindingSummariesApi

type RBACRoleBindingSummariesApi struct {
	LookupPrincipalsWithRoleFunc func(ctx context.Context, roleName string, mdsScope github_com_confluentinc_mds_sdk_go_public_mdsv1.MdsScope) ([]string, *net_http.Response, error)

	LookupPrincipalsWithRoleOnResourceFunc func(ctx context.Context, roleName, resourceType, resourceName string, mdsScope github_com_confluentinc_mds_sdk_go_public_mdsv1.MdsScope) ([]string, *net_http.Response, error)

	LookupResourcesForPrincipalFunc func(ctx context.Context, principal string, mdsScope github_com_confluentinc_mds_sdk_go_public_mdsv1.MdsScope) (map[string]map[string][]github_com_confluentinc_mds_sdk_go_public_mdsv1.ResourcePattern, *net_http.Response, error)

	ScopedPrincipalRolenamesFunc func(ctx context.Context, principal string, mdsScope github_com_confluentinc_mds_sdk_go_public_mdsv1.MdsScope) ([]string, *net_http.Response, error)
	// contains filtered or unexported fields
}

RBACRoleBindingSummariesApi is a mock of RBACRoleBindingSummariesApi interface

func (*RBACRoleBindingSummariesApi) LookupPrincipalsWithRole

LookupPrincipalsWithRole mocks base method by wrapping the associated func.

func (*RBACRoleBindingSummariesApi) LookupPrincipalsWithRoleCalled

func (m *RBACRoleBindingSummariesApi) LookupPrincipalsWithRoleCalled() bool

LookupPrincipalsWithRoleCalled returns true if LookupPrincipalsWithRole was called at least once.

func (*RBACRoleBindingSummariesApi) LookupPrincipalsWithRoleCalls

func (m *RBACRoleBindingSummariesApi) LookupPrincipalsWithRoleCalls() []struct {
	Ctx      context.Context
	RoleName string
	MdsScope github_com_confluentinc_mds_sdk_go_public_mdsv1.MdsScope
}

LookupPrincipalsWithRoleCalls returns the calls made to LookupPrincipalsWithRole.

func (*RBACRoleBindingSummariesApi) LookupPrincipalsWithRoleOnResource

func (m *RBACRoleBindingSummariesApi) LookupPrincipalsWithRoleOnResource(ctx context.Context, roleName, resourceType, resourceName string, mdsScope github_com_confluentinc_mds_sdk_go_public_mdsv1.MdsScope) ([]string, *net_http.Response, error)

LookupPrincipalsWithRoleOnResource mocks base method by wrapping the associated func.

func (*RBACRoleBindingSummariesApi) LookupPrincipalsWithRoleOnResourceCalled

func (m *RBACRoleBindingSummariesApi) LookupPrincipalsWithRoleOnResourceCalled() bool

LookupPrincipalsWithRoleOnResourceCalled returns true if LookupPrincipalsWithRoleOnResource was called at least once.

func (*RBACRoleBindingSummariesApi) LookupPrincipalsWithRoleOnResourceCalls

func (m *RBACRoleBindingSummariesApi) LookupPrincipalsWithRoleOnResourceCalls() []struct {
	Ctx          context.Context
	RoleName     string
	ResourceType string
	ResourceName string
	MdsScope     github_com_confluentinc_mds_sdk_go_public_mdsv1.MdsScope
}

LookupPrincipalsWithRoleOnResourceCalls returns the calls made to LookupPrincipalsWithRoleOnResource.

func (*RBACRoleBindingSummariesApi) LookupResourcesForPrincipal

LookupResourcesForPrincipal mocks base method by wrapping the associated func.

func (*RBACRoleBindingSummariesApi) LookupResourcesForPrincipalCalled

func (m *RBACRoleBindingSummariesApi) LookupResourcesForPrincipalCalled() bool

LookupResourcesForPrincipalCalled returns true if LookupResourcesForPrincipal was called at least once.

func (*RBACRoleBindingSummariesApi) LookupResourcesForPrincipalCalls

func (m *RBACRoleBindingSummariesApi) LookupResourcesForPrincipalCalls() []struct {
	Ctx       context.Context
	Principal string
	MdsScope  github_com_confluentinc_mds_sdk_go_public_mdsv1.MdsScope
}

LookupResourcesForPrincipalCalls returns the calls made to LookupResourcesForPrincipal.

func (*RBACRoleBindingSummariesApi) Reset

func (m *RBACRoleBindingSummariesApi) Reset()

Reset resets the calls made to the mocked methods.

func (*RBACRoleBindingSummariesApi) ScopedPrincipalRolenames

ScopedPrincipalRolenames mocks base method by wrapping the associated func.

func (*RBACRoleBindingSummariesApi) ScopedPrincipalRolenamesCalled

func (m *RBACRoleBindingSummariesApi) ScopedPrincipalRolenamesCalled() bool

ScopedPrincipalRolenamesCalled returns true if ScopedPrincipalRolenames was called at least once.

func (*RBACRoleBindingSummariesApi) ScopedPrincipalRolenamesCalls

func (m *RBACRoleBindingSummariesApi) ScopedPrincipalRolenamesCalls() []struct {
	Ctx       context.Context
	Principal string
	MdsScope  github_com_confluentinc_mds_sdk_go_public_mdsv1.MdsScope
}

ScopedPrincipalRolenamesCalls returns the calls made to ScopedPrincipalRolenames.

type RBACRoleDefinitionsApi

type RBACRoleDefinitionsApi struct {
	RoleDetailFunc func(ctx context.Context, roleName string) (github_com_confluentinc_mds_sdk_go_public_mdsv1.Role, *net_http.Response, error)

	RolenamesFunc func(ctx context.Context) ([]string, *net_http.Response, error)

	RolesFunc func(ctx context.Context) ([]github_com_confluentinc_mds_sdk_go_public_mdsv1.Role, *net_http.Response, error)
	// contains filtered or unexported fields
}

RBACRoleDefinitionsApi is a mock of RBACRoleDefinitionsApi interface

func (*RBACRoleDefinitionsApi) Reset

func (m *RBACRoleDefinitionsApi) Reset()

Reset resets the calls made to the mocked methods.

func (*RBACRoleDefinitionsApi) RoleDetail

RoleDetail mocks base method by wrapping the associated func.

func (*RBACRoleDefinitionsApi) RoleDetailCalled

func (m *RBACRoleDefinitionsApi) RoleDetailCalled() bool

RoleDetailCalled returns true if RoleDetail was called at least once.

func (*RBACRoleDefinitionsApi) RoleDetailCalls

func (m *RBACRoleDefinitionsApi) RoleDetailCalls() []struct {
	Ctx      context.Context
	RoleName string
}

RoleDetailCalls returns the calls made to RoleDetail.

func (*RBACRoleDefinitionsApi) Rolenames

Rolenames mocks base method by wrapping the associated func.

func (*RBACRoleDefinitionsApi) RolenamesCalled

func (m *RBACRoleDefinitionsApi) RolenamesCalled() bool

RolenamesCalled returns true if Rolenames was called at least once.

func (*RBACRoleDefinitionsApi) RolenamesCalls

func (m *RBACRoleDefinitionsApi) RolenamesCalls() []struct {
	Ctx context.Context
}

RolenamesCalls returns the calls made to Rolenames.

func (*RBACRoleDefinitionsApi) Roles

Roles mocks base method by wrapping the associated func.

func (*RBACRoleDefinitionsApi) RolesCalled

func (m *RBACRoleDefinitionsApi) RolesCalled() bool

RolesCalled returns true if Roles was called at least once.

func (*RBACRoleDefinitionsApi) RolesCalls

func (m *RBACRoleDefinitionsApi) RolesCalls() []struct {
	Ctx context.Context
}

RolesCalls returns the calls made to Roles.

type TokensAndAuthenticationApi

type TokensAndAuthenticationApi struct {
	GetTokenFunc func(ctx context.Context) (github_com_confluentinc_mds_sdk_go_public_mdsv1.AuthenticationResponse, *net_http.Response, error)
	// contains filtered or unexported fields
}

TokensAndAuthenticationApi is a mock of TokensAndAuthenticationApi interface

func (*TokensAndAuthenticationApi) GetToken

GetToken mocks base method by wrapping the associated func.

func (*TokensAndAuthenticationApi) GetTokenCalled

func (m *TokensAndAuthenticationApi) GetTokenCalled() bool

GetTokenCalled returns true if GetToken was called at least once.

func (*TokensAndAuthenticationApi) GetTokenCalls

func (m *TokensAndAuthenticationApi) GetTokenCalls() []struct {
	Ctx context.Context
}

GetTokenCalls returns the calls made to GetToken.

func (*TokensAndAuthenticationApi) Reset

func (m *TokensAndAuthenticationApi) Reset()

Reset resets the calls made to the mocked methods.

Jump to

Keyboard shortcuts

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