msgraph

package
v0.0.0-...-56579fc Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 9 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) ListServicePrincipals

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

ListServicePrincipals provides a mock function with given fields: _a0

type MockProviderAPI_Expecter

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

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

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 ProviderAPI

type ProviderAPI interface {
	ListServicePrincipals(context.Context) ([]*models.ServicePrincipal, error)
}

func NewProvider

func NewProvider(log *logp.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