msgraph

package
v0.0.0-...-be44eb0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProviderAPI

type MockProviderAPI struct {
	mock.Mock
}

MockProviderAPI is an autogenerated mock type for the ProviderAPI type

func NewMockProviderAPI

func NewMockProviderAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockProviderAPI

NewMockProviderAPI creates a new instance of MockProviderAPI. 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 (*MockProviderAPI) EXPECT

func (*MockProviderAPI) ListDirectoryRoles

func (_m *MockProviderAPI) ListDirectoryRoles(_a0 context.Context) ([]*models.DirectoryRole, error)

ListDirectoryRoles provides a mock function with given fields: _a0

func (*MockProviderAPI) ListGroups

func (_m *MockProviderAPI) ListGroups(_a0 context.Context) ([]*models.Group, error)

ListGroups provides a mock function with given fields: _a0

func (*MockProviderAPI) ListServicePrincipals

func (_m *MockProviderAPI) ListServicePrincipals(_a0 context.Context) ([]*models.ServicePrincipal, error)

ListServicePrincipals provides a mock function with given fields: _a0

func (*MockProviderAPI) ListUsers

func (_m *MockProviderAPI) ListUsers(_a0 context.Context) ([]*models.User, error)

ListUsers provides a mock function with given fields: _a0

type MockProviderAPI_Expecter

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

func (*MockProviderAPI_Expecter) ListDirectoryRoles

func (_e *MockProviderAPI_Expecter) ListDirectoryRoles(_a0 interface{}) *MockProviderAPI_ListDirectoryRoles_Call

ListDirectoryRoles is a helper method to define mock.On call

  • _a0 context.Context

func (*MockProviderAPI_Expecter) ListGroups

func (_e *MockProviderAPI_Expecter) ListGroups(_a0 interface{}) *MockProviderAPI_ListGroups_Call

ListGroups is a helper method to define mock.On call

  • _a0 context.Context

func (*MockProviderAPI_Expecter) ListServicePrincipals

func (_e *MockProviderAPI_Expecter) ListServicePrincipals(_a0 interface{}) *MockProviderAPI_ListServicePrincipals_Call

ListServicePrincipals is a helper method to define mock.On call

  • _a0 context.Context

func (*MockProviderAPI_Expecter) ListUsers

func (_e *MockProviderAPI_Expecter) ListUsers(_a0 interface{}) *MockProviderAPI_ListUsers_Call

ListUsers is a helper method to define mock.On call

  • _a0 context.Context

type MockProviderAPI_ListDirectoryRoles_Call

type MockProviderAPI_ListDirectoryRoles_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListDirectoryRoles_Call) Return

func (*MockProviderAPI_ListDirectoryRoles_Call) Run

func (*MockProviderAPI_ListDirectoryRoles_Call) RunAndReturn

type MockProviderAPI_ListGroups_Call

type MockProviderAPI_ListGroups_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListGroups_Call) Return

func (*MockProviderAPI_ListGroups_Call) Run

func (*MockProviderAPI_ListGroups_Call) RunAndReturn

type MockProviderAPI_ListServicePrincipals_Call

type MockProviderAPI_ListServicePrincipals_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListServicePrincipals_Call) Return

func (*MockProviderAPI_ListServicePrincipals_Call) Run

func (*MockProviderAPI_ListServicePrincipals_Call) RunAndReturn

type MockProviderAPI_ListUsers_Call

type MockProviderAPI_ListUsers_Call struct {
	*mock.Call
}

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

func (*MockProviderAPI_ListUsers_Call) Return

func (*MockProviderAPI_ListUsers_Call) Run

func (*MockProviderAPI_ListUsers_Call) RunAndReturn

type ProviderAPI

type ProviderAPI interface {
	ListServicePrincipals(context.Context) ([]*models.ServicePrincipal, error)
	ListDirectoryRoles(context.Context) ([]*models.DirectoryRole, error)
	ListGroups(context.Context) ([]*models.Group, error)
	ListUsers(context.Context) ([]*models.User, error)
}

func NewProvider

func NewProvider(log *clog.Logger, azureConfig auth.AzureFactoryConfig) (ProviderAPI, error)

Second argument is scopes. Leave nil, then it selects default; Adjust if in trouble Docs: https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go

Jump to

Keyboard shortcuts

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