mock_cloud

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_cloud is a generated GoMock package.

Run go generate to regenerate this mock.

Index

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 models.FederatedIdentityCredentialable) error

AddFederatedCredential mocks base method.

func (*MockInterface) CreateApplication

func (m *MockInterface) CreateApplication(ctx context.Context, displayName string) (models.Applicationable, error)

CreateApplication mocks base method.

func (*MockInterface) CreateRoleAssignment

func (m *MockInterface) CreateRoleAssignment(ctx context.Context, scope, roleName, principalID string) (armauthorization.RoleAssignment, error)

CreateRoleAssignment mocks base method.

func (*MockInterface) CreateServicePrincipal

func (m *MockInterface) CreateServicePrincipal(ctx context.Context, appID string, tags []string) (models.ServicePrincipalable, 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) (armauthorization.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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInterface) GetApplication

func (m *MockInterface) GetApplication(ctx context.Context, displayName string) (models.Applicationable, error)

GetApplication mocks base method.

func (*MockInterface) GetFederatedCredential

func (m *MockInterface) GetFederatedCredential(ctx context.Context, objectID, issuer, subject string) (models.FederatedIdentityCredentialable, error)

GetFederatedCredential mocks base method.

func (*MockInterface) GetRoleDefinitionIDByName added in v0.7.0

func (m *MockInterface) GetRoleDefinitionIDByName(ctx context.Context, scope, roleName string) (armauthorization.RoleDefinition, error)

GetRoleDefinitionIDByName mocks base method.

func (*MockInterface) GetServicePrincipal

func (m *MockInterface) GetServicePrincipal(ctx context.Context, displayName string) (models.ServicePrincipalable, 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.

Jump to

Keyboard shortcuts

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