mocks

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientWithResponsesInterface

type ClientWithResponsesInterface struct {
	mock.Mock
}

ClientWithResponsesInterface is an autogenerated mock type for the ClientWithResponsesInterface type

func NewClientWithResponsesInterface

func NewClientWithResponsesInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClientWithResponsesInterface

NewClientWithResponsesInterface creates a new instance of ClientWithResponsesInterface. 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 (*ClientWithResponsesInterface) CreatePermissionSetAssignmentsWithBodyWithResponse

func (_m *ClientWithResponsesInterface) CreatePermissionSetAssignmentsWithBodyWithResponse(ctx context.Context, permissionSetId uuid.UUID, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*client.CreatePermissionSetAssignmentsResponse, error)

CreatePermissionSetAssignmentsWithBodyWithResponse provides a mock function with given fields: ctx, permissionSetId, contentType, body, reqEditors

func (*ClientWithResponsesInterface) CreatePermissionSetAssignmentsWithResponse

func (_m *ClientWithResponsesInterface) CreatePermissionSetAssignmentsWithResponse(ctx context.Context, permissionSetId uuid.UUID, body []struct {
	AccountTypeId uuid.UUID `json:"AccountTypeId"`
	GroupId       uuid.UUID `json:"GroupId"`
}, reqEditors ...client.RequestEditorFn) (*client.CreatePermissionSetAssignmentsResponse, error)

CreatePermissionSetAssignmentsWithResponse provides a mock function with given fields: ctx, permissionSetId, body, reqEditors

func (*ClientWithResponsesInterface) CreatePermissionSetWithBodyWithResponse

func (_m *ClientWithResponsesInterface) CreatePermissionSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*client.CreatePermissionSetResponse, error)

CreatePermissionSetWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors

func (*ClientWithResponsesInterface) CreatePermissionSetWithResponse

CreatePermissionSetWithResponse provides a mock function with given fields: ctx, body, reqEditors

func (*ClientWithResponsesInterface) DeletePermissionSetAssignmentWithResponse

func (_m *ClientWithResponsesInterface) DeletePermissionSetAssignmentWithResponse(ctx context.Context, permissionSetId uuid.UUID, assignmentId uuid.UUID, reqEditors ...client.RequestEditorFn) (*client.DeletePermissionSetAssignmentResponse, error)

DeletePermissionSetAssignmentWithResponse provides a mock function with given fields: ctx, permissionSetId, assignmentId, reqEditors

func (*ClientWithResponsesInterface) DeletePermissionSetWithResponse

func (_m *ClientWithResponsesInterface) DeletePermissionSetWithResponse(ctx context.Context, permissionSetId uuid.UUID, reqEditors ...client.RequestEditorFn) (*client.DeletePermissionSetResponse, error)

DeletePermissionSetWithResponse provides a mock function with given fields: ctx, permissionSetId, reqEditors

func (*ClientWithResponsesInterface) GetAPIDocumentWithResponse

func (_m *ClientWithResponsesInterface) GetAPIDocumentWithResponse(ctx context.Context, reqEditors ...client.RequestEditorFn) (*client.GetAPIDocumentResponse, error)

GetAPIDocumentWithResponse provides a mock function with given fields: ctx, reqEditors

func (*ClientWithResponsesInterface) GetPermissionSetWithResponse

func (_m *ClientWithResponsesInterface) GetPermissionSetWithResponse(ctx context.Context, permissionSetId uuid.UUID, reqEditors ...client.RequestEditorFn) (*client.GetPermissionSetResponse, error)

GetPermissionSetWithResponse provides a mock function with given fields: ctx, permissionSetId, reqEditors

func (*ClientWithResponsesInterface) ListAWSManagedPoliciesWithResponse

func (_m *ClientWithResponsesInterface) ListAWSManagedPoliciesWithResponse(ctx context.Context, reqEditors ...client.RequestEditorFn) (*client.ListAWSManagedPoliciesResponse, error)

ListAWSManagedPoliciesWithResponse provides a mock function with given fields: ctx, reqEditors

func (*ClientWithResponsesInterface) ListMyRolesWithResponse

func (_m *ClientWithResponsesInterface) ListMyRolesWithResponse(ctx context.Context, params *models.ListMyRolesParams, reqEditors ...client.RequestEditorFn) (*client.ListMyRolesResponse, error)

ListMyRolesWithResponse provides a mock function with given fields: ctx, params, reqEditors

func (*ClientWithResponsesInterface) ListPermissionSetAssignmentsWithResponse

func (_m *ClientWithResponsesInterface) ListPermissionSetAssignmentsWithResponse(ctx context.Context, permissionSetId uuid.UUID, params *models.ListPermissionSetAssignmentsParams, reqEditors ...client.RequestEditorFn) (*client.ListPermissionSetAssignmentsResponse, error)

ListPermissionSetAssignmentsWithResponse provides a mock function with given fields: ctx, permissionSetId, params, reqEditors

func (*ClientWithResponsesInterface) ListPermissionSetsWithResponse

ListPermissionSetsWithResponse provides a mock function with given fields: ctx, params, reqEditors

func (*ClientWithResponsesInterface) ListRolesWithResponse

func (_m *ClientWithResponsesInterface) ListRolesWithResponse(ctx context.Context, params *models.ListRolesParams, reqEditors ...client.RequestEditorFn) (*client.ListRolesResponse, error)

ListRolesWithResponse provides a mock function with given fields: ctx, params, reqEditors

func (*ClientWithResponsesInterface) RedeployPermissionSetAssignmentWithResponse

func (_m *ClientWithResponsesInterface) RedeployPermissionSetAssignmentWithResponse(ctx context.Context, permissionSetId uuid.UUID, assignmentId uuid.UUID, reqEditors ...client.RequestEditorFn) (*client.RedeployPermissionSetAssignmentResponse, error)

RedeployPermissionSetAssignmentWithResponse provides a mock function with given fields: ctx, permissionSetId, assignmentId, reqEditors

func (*ClientWithResponsesInterface) UpdatePermissionSetWithBodyWithResponse

func (_m *ClientWithResponsesInterface) UpdatePermissionSetWithBodyWithResponse(ctx context.Context, permissionSetId uuid.UUID, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*client.UpdatePermissionSetResponse, error)

UpdatePermissionSetWithBodyWithResponse provides a mock function with given fields: ctx, permissionSetId, contentType, body, reqEditors

func (*ClientWithResponsesInterface) UpdatePermissionSetWithResponse

func (_m *ClientWithResponsesInterface) UpdatePermissionSetWithResponse(ctx context.Context, permissionSetId uuid.UUID, body models.UpdatePermissionSetRecord, reqEditors ...client.RequestEditorFn) (*client.UpdatePermissionSetResponse, error)

UpdatePermissionSetWithResponse provides a mock function with given fields: ctx, permissionSetId, body, reqEditors

type ServerInterface

type ServerInterface struct {
	mock.Mock
}

ServerInterface is an autogenerated mock type for the ServerInterface type

func NewServerInterface

func NewServerInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServerInterface

NewServerInterface creates a new instance of ServerInterface. 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 (*ServerInterface) CreatePermissionSet

func (_m *ServerInterface) CreatePermissionSet(ctx echo.Context) error

CreatePermissionSet provides a mock function with given fields: ctx

func (*ServerInterface) CreatePermissionSetAssignments

func (_m *ServerInterface) CreatePermissionSetAssignments(ctx echo.Context, permissionSetId uuid.UUID) error

CreatePermissionSetAssignments provides a mock function with given fields: ctx, permissionSetId

func (*ServerInterface) DeletePermissionSet

func (_m *ServerInterface) DeletePermissionSet(ctx echo.Context, permissionSetId uuid.UUID) error

DeletePermissionSet provides a mock function with given fields: ctx, permissionSetId

func (*ServerInterface) DeletePermissionSetAssignment

func (_m *ServerInterface) DeletePermissionSetAssignment(ctx echo.Context, permissionSetId uuid.UUID, assignmentId uuid.UUID) error

DeletePermissionSetAssignment provides a mock function with given fields: ctx, permissionSetId, assignmentId

func (*ServerInterface) GetAPIDocument

func (_m *ServerInterface) GetAPIDocument(ctx echo.Context) error

GetAPIDocument provides a mock function with given fields: ctx

func (*ServerInterface) GetPermissionSet

func (_m *ServerInterface) GetPermissionSet(ctx echo.Context, permissionSetId uuid.UUID) error

GetPermissionSet provides a mock function with given fields: ctx, permissionSetId

func (*ServerInterface) ListAWSManagedPolicies

func (_m *ServerInterface) ListAWSManagedPolicies(ctx echo.Context) error

ListAWSManagedPolicies provides a mock function with given fields: ctx

func (*ServerInterface) ListMyRoles

func (_m *ServerInterface) ListMyRoles(ctx echo.Context, params models.ListMyRolesParams) error

ListMyRoles provides a mock function with given fields: ctx, params

func (*ServerInterface) ListPermissionSetAssignments

func (_m *ServerInterface) ListPermissionSetAssignments(ctx echo.Context, permissionSetId uuid.UUID, params models.ListPermissionSetAssignmentsParams) error

ListPermissionSetAssignments provides a mock function with given fields: ctx, permissionSetId, params

func (*ServerInterface) ListPermissionSets

func (_m *ServerInterface) ListPermissionSets(ctx echo.Context, params models.ListPermissionSetsParams) error

ListPermissionSets provides a mock function with given fields: ctx, params

func (*ServerInterface) ListRoles

func (_m *ServerInterface) ListRoles(ctx echo.Context, params models.ListRolesParams) error

ListRoles provides a mock function with given fields: ctx, params

func (*ServerInterface) RedeployPermissionSetAssignment

func (_m *ServerInterface) RedeployPermissionSetAssignment(ctx echo.Context, permissionSetId uuid.UUID, assignmentId uuid.UUID) error

RedeployPermissionSetAssignment provides a mock function with given fields: ctx, permissionSetId, assignmentId

func (*ServerInterface) UpdatePermissionSet

func (_m *ServerInterface) UpdatePermissionSet(ctx echo.Context, permissionSetId uuid.UUID) error

UpdatePermissionSet provides a mock function with given fields: ctx, permissionSetId

Jump to

Keyboard shortcuts

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