Documentation ¶
Overview ¶
Package mock_cloud is a generated GoMock package.
Run go generate to regenerate this mock.
Index ¶
- type MockInterface
- func (m *MockInterface) AddFederatedCredential(ctx context.Context, objectID string, fic *graph.FederatedIdentityCredential) error
- func (m *MockInterface) CreateApplication(ctx context.Context, displayName string) (*graph.Application, error)
- func (m *MockInterface) CreateRoleAssignment(ctx context.Context, scope, roleName, principalID string) (authorization.RoleAssignment, error)
- func (m *MockInterface) CreateServicePrincipal(ctx context.Context, appID string, tags []string) (*graph.ServicePrincipal, error)
- func (m *MockInterface) DeleteApplication(ctx context.Context, objectID string) error
- func (m *MockInterface) DeleteFederatedCredential(ctx context.Context, objectID, federatedCredentialID string) error
- func (m *MockInterface) DeleteRoleAssignment(ctx context.Context, roleAssignmentID string) (authorization.RoleAssignment, error)
- func (m *MockInterface) DeleteServicePrincipal(ctx context.Context, objectID string) error
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) GetApplication(ctx context.Context, displayName string) (*graph.Application, error)
- func (m *MockInterface) GetFederatedCredential(ctx context.Context, objectID, issuer, subject string) (*graph.FederatedIdentityCredential, error)
- func (m *MockInterface) GetRoleDefinitionIDByName(ctx context.Context, scope, roleName string) (authorization.RoleDefinition, error)
- func (m *MockInterface) GetServicePrincipal(ctx context.Context, displayName string) (*graph.ServicePrincipal, error)
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) AddFederatedCredential(ctx, objectID, fic interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) CreateApplication(ctx, displayName interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) CreateRoleAssignment(ctx, scope, roleName, principalID interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) CreateServicePrincipal(ctx, appID, tags interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteApplication(ctx, objectID interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteFederatedCredential(ctx, objectID, federatedCredentialID interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteRoleAssignment(ctx, roleAssignmentID interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteServicePrincipal(ctx, objectID interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetApplication(ctx, displayName interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetFederatedCredential(ctx, objectID, issuer, subject interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetRoleDefinitionIDByName(ctx, scope, roleName interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetServicePrincipal(ctx, displayName interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) AddFederatedCredential ¶
func (m *MockInterface) AddFederatedCredential(ctx context.Context, objectID string, fic *graph.FederatedIdentityCredential) error
AddFederatedCredential mocks base method.
func (*MockInterface) CreateApplication ¶
func (m *MockInterface) CreateApplication(ctx context.Context, displayName string) (*graph.Application, error)
CreateApplication mocks base method.
func (*MockInterface) CreateRoleAssignment ¶
func (m *MockInterface) CreateRoleAssignment(ctx context.Context, scope, roleName, principalID string) (authorization.RoleAssignment, error)
CreateRoleAssignment mocks base method.
func (*MockInterface) CreateServicePrincipal ¶
func (m *MockInterface) CreateServicePrincipal(ctx context.Context, appID string, tags []string) (*graph.ServicePrincipal, error)
CreateServicePrincipal mocks base method.
func (*MockInterface) DeleteApplication ¶
func (m *MockInterface) DeleteApplication(ctx context.Context, objectID string) error
DeleteApplication mocks base method.
func (*MockInterface) DeleteFederatedCredential ¶
func (m *MockInterface) DeleteFederatedCredential(ctx context.Context, objectID, federatedCredentialID string) error
DeleteFederatedCredential mocks base method.
func (*MockInterface) DeleteRoleAssignment ¶
func (m *MockInterface) DeleteRoleAssignment(ctx context.Context, roleAssignmentID string) (authorization.RoleAssignment, error)
DeleteRoleAssignment mocks base method.
func (*MockInterface) DeleteServicePrincipal ¶
func (m *MockInterface) DeleteServicePrincipal(ctx context.Context, objectID string) error
DeleteServicePrincipal mocks base method.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) GetApplication ¶
func (m *MockInterface) GetApplication(ctx context.Context, displayName string) (*graph.Application, error)
GetApplication mocks base method.
func (*MockInterface) GetFederatedCredential ¶
func (m *MockInterface) GetFederatedCredential(ctx context.Context, objectID, issuer, subject string) (*graph.FederatedIdentityCredential, error)
GetFederatedCredential mocks base method.
func (*MockInterface) GetRoleDefinitionIDByName ¶ added in v0.7.0
func (m *MockInterface) GetRoleDefinitionIDByName(ctx context.Context, scope, roleName string) (authorization.RoleDefinition, error)
GetRoleDefinitionIDByName mocks base method.
func (*MockInterface) GetServicePrincipal ¶
func (m *MockInterface) GetServicePrincipal(ctx context.Context, displayName string) (*graph.ServicePrincipal, error)
GetServicePrincipal mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) AddFederatedCredential ¶
func (mr *MockInterfaceMockRecorder) AddFederatedCredential(ctx, objectID, fic interface{}) *gomock.Call
AddFederatedCredential indicates an expected call of AddFederatedCredential.
func (*MockInterfaceMockRecorder) CreateApplication ¶
func (mr *MockInterfaceMockRecorder) CreateApplication(ctx, displayName interface{}) *gomock.Call
CreateApplication indicates an expected call of CreateApplication.
func (*MockInterfaceMockRecorder) CreateRoleAssignment ¶
func (mr *MockInterfaceMockRecorder) CreateRoleAssignment(ctx, scope, roleName, principalID interface{}) *gomock.Call
CreateRoleAssignment indicates an expected call of CreateRoleAssignment.
func (*MockInterfaceMockRecorder) CreateServicePrincipal ¶
func (mr *MockInterfaceMockRecorder) CreateServicePrincipal(ctx, appID, tags interface{}) *gomock.Call
CreateServicePrincipal indicates an expected call of CreateServicePrincipal.
func (*MockInterfaceMockRecorder) DeleteApplication ¶
func (mr *MockInterfaceMockRecorder) DeleteApplication(ctx, objectID interface{}) *gomock.Call
DeleteApplication indicates an expected call of DeleteApplication.
func (*MockInterfaceMockRecorder) DeleteFederatedCredential ¶
func (mr *MockInterfaceMockRecorder) DeleteFederatedCredential(ctx, objectID, federatedCredentialID interface{}) *gomock.Call
DeleteFederatedCredential indicates an expected call of DeleteFederatedCredential.
func (*MockInterfaceMockRecorder) DeleteRoleAssignment ¶
func (mr *MockInterfaceMockRecorder) DeleteRoleAssignment(ctx, roleAssignmentID interface{}) *gomock.Call
DeleteRoleAssignment indicates an expected call of DeleteRoleAssignment.
func (*MockInterfaceMockRecorder) DeleteServicePrincipal ¶
func (mr *MockInterfaceMockRecorder) DeleteServicePrincipal(ctx, objectID interface{}) *gomock.Call
DeleteServicePrincipal indicates an expected call of DeleteServicePrincipal.
func (*MockInterfaceMockRecorder) GetApplication ¶
func (mr *MockInterfaceMockRecorder) GetApplication(ctx, displayName interface{}) *gomock.Call
GetApplication indicates an expected call of GetApplication.
func (*MockInterfaceMockRecorder) GetFederatedCredential ¶
func (mr *MockInterfaceMockRecorder) GetFederatedCredential(ctx, objectID, issuer, subject interface{}) *gomock.Call
GetFederatedCredential indicates an expected call of GetFederatedCredential.
func (*MockInterfaceMockRecorder) GetRoleDefinitionIDByName ¶ added in v0.7.0
func (mr *MockInterfaceMockRecorder) GetRoleDefinitionIDByName(ctx, scope, roleName interface{}) *gomock.Call
GetRoleDefinitionIDByName indicates an expected call of GetRoleDefinitionIDByName.
func (*MockInterfaceMockRecorder) GetServicePrincipal ¶
func (mr *MockInterfaceMockRecorder) GetServicePrincipal(ctx, displayName interface{}) *gomock.Call
GetServicePrincipal indicates an expected call of GetServicePrincipal.