mock

package
v0.0.0-...-42555d8 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 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 AuthorizationApi

type AuthorizationApi struct {
	AuthorizeFunc func(ctx context.Context, authorizeRequest github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.AuthorizeRequest, localVarOptionals *github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.AuthorizeOpts) ([]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

AuthorizeCalls returns the calls made to Authorize.

func (*AuthorizationApi) Reset

func (m *AuthorizationApi) Reset()

Reset resets the calls made to the mocked methods.

type CloudLifecycleApi

type CloudLifecycleApi struct {
	DuplicateRolesForOrgFunc func(ctx context.Context, sourceOrgId string, duplicateRequest github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.DuplicateRequest) (*net_http.Response, error)

	RemoveAllRoleBindingsForScopeFunc func(ctx context.Context, transactionId string, scope github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope) (*net_http.Response, error)

	ScopeUndeleteFunc func(ctx context.Context, scopeUndeleteRequest github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.ScopeUndeleteRequest) ([]string, *net_http.Response, error)

	UserUndeleteFunc func(ctx context.Context, userUndeleteRequest github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.UserUndeleteRequest) ([]string, *net_http.Response, error)
	// contains filtered or unexported fields
}

CloudLifecycleApi is a mock of CloudLifecycleApi interface

func (*CloudLifecycleApi) DuplicateRolesForOrg

DuplicateRolesForOrg mocks base method by wrapping the associated func.

func (*CloudLifecycleApi) DuplicateRolesForOrgCalled

func (m *CloudLifecycleApi) DuplicateRolesForOrgCalled() bool

DuplicateRolesForOrgCalled returns true if DuplicateRolesForOrg was called at least once.

func (*CloudLifecycleApi) DuplicateRolesForOrgCalls

func (m *CloudLifecycleApi) DuplicateRolesForOrgCalls() []struct {
	Ctx              context.Context
	SourceOrgId      string
	DuplicateRequest github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.DuplicateRequest
}

DuplicateRolesForOrgCalls returns the calls made to DuplicateRolesForOrg.

func (*CloudLifecycleApi) RemoveAllRoleBindingsForScope

func (m *CloudLifecycleApi) RemoveAllRoleBindingsForScope(ctx context.Context, transactionId string, scope github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope) (*net_http.Response, error)

RemoveAllRoleBindingsForScope mocks base method by wrapping the associated func.

func (*CloudLifecycleApi) RemoveAllRoleBindingsForScopeCalled

func (m *CloudLifecycleApi) RemoveAllRoleBindingsForScopeCalled() bool

RemoveAllRoleBindingsForScopeCalled returns true if RemoveAllRoleBindingsForScope was called at least once.

func (*CloudLifecycleApi) RemoveAllRoleBindingsForScopeCalls

func (m *CloudLifecycleApi) RemoveAllRoleBindingsForScopeCalls() []struct {
	Ctx           context.Context
	TransactionId string
	Scope         github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope
}

RemoveAllRoleBindingsForScopeCalls returns the calls made to RemoveAllRoleBindingsForScope.

func (*CloudLifecycleApi) Reset

func (m *CloudLifecycleApi) Reset()

Reset resets the calls made to the mocked methods.

func (*CloudLifecycleApi) ScopeUndelete

ScopeUndelete mocks base method by wrapping the associated func.

func (*CloudLifecycleApi) ScopeUndeleteCalled

func (m *CloudLifecycleApi) ScopeUndeleteCalled() bool

ScopeUndeleteCalled returns true if ScopeUndelete was called at least once.

func (*CloudLifecycleApi) ScopeUndeleteCalls

func (m *CloudLifecycleApi) ScopeUndeleteCalls() []struct {
	Ctx                  context.Context
	ScopeUndeleteRequest github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.ScopeUndeleteRequest
}

ScopeUndeleteCalls returns the calls made to ScopeUndelete.

func (*CloudLifecycleApi) UserUndelete

UserUndelete mocks base method by wrapping the associated func.

func (*CloudLifecycleApi) UserUndeleteCalled

func (m *CloudLifecycleApi) UserUndeleteCalled() bool

UserUndeleteCalled returns true if UserUndelete was called at least once.

func (*CloudLifecycleApi) UserUndeleteCalls

func (m *CloudLifecycleApi) UserUndeleteCalls() []struct {
	Ctx                 context.Context
	UserUndeleteRequest github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.UserUndeleteRequest
}

UserUndeleteCalls returns the calls made to UserUndelete.

type MetadataServiceOperationsApi

type MetadataServiceOperationsApi struct {
	ActivenodesFunc func(ctx context.Context, protocol string) ([]string, *net_http.Response, error)

	MetadataClusterIdFunc func(ctx context.Context) (string, *net_http.Response, error)
	// contains filtered or unexported fields
}

MetadataServiceOperationsApi is a mock of MetadataServiceOperationsApi interface

func (*MetadataServiceOperationsApi) Activenodes

func (m *MetadataServiceOperationsApi) Activenodes(ctx context.Context, protocol string) ([]string, *net_http.Response, error)

Activenodes mocks base method by wrapping the associated func.

func (*MetadataServiceOperationsApi) ActivenodesCalled

func (m *MetadataServiceOperationsApi) ActivenodesCalled() bool

ActivenodesCalled returns true if Activenodes was called at least once.

func (*MetadataServiceOperationsApi) ActivenodesCalls

func (m *MetadataServiceOperationsApi) ActivenodesCalls() []struct {
	Ctx      context.Context
	Protocol string
}

ActivenodesCalls returns the calls made to Activenodes.

func (*MetadataServiceOperationsApi) MetadataClusterId

func (m *MetadataServiceOperationsApi) MetadataClusterId(ctx context.Context) (string, *net_http.Response, error)

MetadataClusterId mocks base method by wrapping the associated func.

func (*MetadataServiceOperationsApi) MetadataClusterIdCalled

func (m *MetadataServiceOperationsApi) MetadataClusterIdCalled() bool

MetadataClusterIdCalled returns true if MetadataClusterId was called at least once.

func (*MetadataServiceOperationsApi) MetadataClusterIdCalls

func (m *MetadataServiceOperationsApi) MetadataClusterIdCalls() []struct {
	Ctx context.Context
}

MetadataClusterIdCalls returns the calls made to MetadataClusterId.

func (*MetadataServiceOperationsApi) Reset

func (m *MetadataServiceOperationsApi) Reset()

Reset resets the calls made to the mocked methods.

type RBACRoleBindingCRUDApi

type RBACRoleBindingCRUDApi struct {
	AddRoleForPrincipalFunc func(ctx context.Context, principal, roleName string, scope github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope) (*net_http.Response, error)

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

	DeleteAllRolesForPrincipalFunc func(ctx context.Context, principal string, scope github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope) (*net_http.Response, error)

	DeleteRoleForPrincipalFunc func(ctx context.Context, principal, roleName string, scope github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope) (*net_http.Response, error)

	GetRoleResourcesForPrincipalFunc func(ctx context.Context, principal, roleName string, scope github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope) ([]github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.ResourcePattern, *net_http.Response, error)

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

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

RBACRoleBindingCRUDApi is a mock of RBACRoleBindingCRUDApi interface

func (*RBACRoleBindingCRUDApi) AddRoleForPrincipal

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
	Scope     github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope
}

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_mdsv2alpha1.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_mdsv2alpha1.ResourcesRequest
}

AddRoleResourcesForPrincipalCalls returns the calls made to AddRoleResourcesForPrincipal.

func (*RBACRoleBindingCRUDApi) DeleteAllRolesForPrincipal

DeleteAllRolesForPrincipal mocks base method by wrapping the associated func.

func (*RBACRoleBindingCRUDApi) DeleteAllRolesForPrincipalCalled

func (m *RBACRoleBindingCRUDApi) DeleteAllRolesForPrincipalCalled() bool

DeleteAllRolesForPrincipalCalled returns true if DeleteAllRolesForPrincipal was called at least once.

func (*RBACRoleBindingCRUDApi) DeleteAllRolesForPrincipalCalls

func (m *RBACRoleBindingCRUDApi) DeleteAllRolesForPrincipalCalls() []struct {
	Ctx       context.Context
	Principal string
	Scope     github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope
}

DeleteAllRolesForPrincipalCalls returns the calls made to DeleteAllRolesForPrincipal.

func (*RBACRoleBindingCRUDApi) DeleteRoleForPrincipal

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
	Scope     github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope
}

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
	Scope     github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope
}

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_mdsv2alpha1.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_mdsv2alpha1.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_mdsv2alpha1.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_mdsv2alpha1.ResourcesRequest
}

SetRoleResourcesForPrincipalCalls returns the calls made to SetRoleResourcesForPrincipal.

type RBACRoleBindingSummariesApi

type RBACRoleBindingSummariesApi struct {
	LookupPrincipalsWithRoleFunc func(ctx context.Context, roleName string, scope github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope) ([]string, *net_http.Response, error)

	LookupPrincipalsWithRoleOnResourceFunc func(ctx context.Context, roleName, resourceType, resourceName string, scope github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope) ([]string, *net_http.Response, error)

	ManagedNonResourceRoleBindingsAtScopeFunc func(ctx context.Context, scope github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope) ([]github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.ManagedRoleBinding, *net_http.Response, error)

	MyAllowedResourcesFunc func(ctx context.Context, resourceType, operation string, scope github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope) ([]github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.ResourcePattern, *net_http.Response, error)

	MyRoleBindingsFunc func(ctx context.Context, principal string, scope github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope) ([]github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.ScopeRoleBindingMapping, *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
	Scope    github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope
}

LookupPrincipalsWithRoleCalls returns the calls made to LookupPrincipalsWithRole.

func (*RBACRoleBindingSummariesApi) LookupPrincipalsWithRoleOnResource

func (m *RBACRoleBindingSummariesApi) LookupPrincipalsWithRoleOnResource(ctx context.Context, roleName, resourceType, resourceName string, scope github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope) ([]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
	Scope        github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope
}

LookupPrincipalsWithRoleOnResourceCalls returns the calls made to LookupPrincipalsWithRoleOnResource.

func (*RBACRoleBindingSummariesApi) ManagedNonResourceRoleBindingsAtScope

ManagedNonResourceRoleBindingsAtScope mocks base method by wrapping the associated func.

func (*RBACRoleBindingSummariesApi) ManagedNonResourceRoleBindingsAtScopeCalled

func (m *RBACRoleBindingSummariesApi) ManagedNonResourceRoleBindingsAtScopeCalled() bool

ManagedNonResourceRoleBindingsAtScopeCalled returns true if ManagedNonResourceRoleBindingsAtScope was called at least once.

func (*RBACRoleBindingSummariesApi) ManagedNonResourceRoleBindingsAtScopeCalls

func (m *RBACRoleBindingSummariesApi) ManagedNonResourceRoleBindingsAtScopeCalls() []struct {
	Ctx   context.Context
	Scope github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope
}

ManagedNonResourceRoleBindingsAtScopeCalls returns the calls made to ManagedNonResourceRoleBindingsAtScope.

func (*RBACRoleBindingSummariesApi) MyAllowedResources

MyAllowedResources mocks base method by wrapping the associated func.

func (*RBACRoleBindingSummariesApi) MyAllowedResourcesCalled

func (m *RBACRoleBindingSummariesApi) MyAllowedResourcesCalled() bool

MyAllowedResourcesCalled returns true if MyAllowedResources was called at least once.

func (*RBACRoleBindingSummariesApi) MyAllowedResourcesCalls

func (m *RBACRoleBindingSummariesApi) MyAllowedResourcesCalls() []struct {
	Ctx          context.Context
	ResourceType string
	Operation    string
	Scope        github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope
}

MyAllowedResourcesCalls returns the calls made to MyAllowedResources.

func (*RBACRoleBindingSummariesApi) MyRoleBindings

MyRoleBindings mocks base method by wrapping the associated func.

func (*RBACRoleBindingSummariesApi) MyRoleBindingsCalled

func (m *RBACRoleBindingSummariesApi) MyRoleBindingsCalled() bool

MyRoleBindingsCalled returns true if MyRoleBindings was called at least once.

func (*RBACRoleBindingSummariesApi) MyRoleBindingsCalls

func (m *RBACRoleBindingSummariesApi) MyRoleBindingsCalls() []struct {
	Ctx       context.Context
	Principal string
	Scope     github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.Scope
}

MyRoleBindingsCalls returns the calls made to MyRoleBindings.

func (*RBACRoleBindingSummariesApi) Reset

func (m *RBACRoleBindingSummariesApi) Reset()

Reset resets the calls made to the mocked methods.

type RBACRoleDefinitionsApi

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
	LocalVarOptionals *github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.RoleDetailOpts
}

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
	LocalVarOptionals *github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.RolenamesOpts
}

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

RolesCalls returns the calls made to Roles.

type TokensAndAuthenticationApi

type TokensAndAuthenticationApi struct {
	GetTokenFunc func(ctx context.Context) (github_com_confluentinc_mds_sdk_go_public_mdsv2alpha1.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