mock

package
v2.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create() *client

Types

type AuthorizeServer added in v2.3.1

type AuthorizeServer struct {
	mock.Mock
	// contains filtered or unexported fields
}

func NewServer added in v2.3.1

func NewServer() (server *AuthorizeServer, err error)

func NewServerOnHostPort added in v2.5.0

func NewServerOnHostPort(host, port string) (server *AuthorizeServer, err error)

func (*AuthorizeServer) AddAction added in v2.3.1

func (*AuthorizeServer) AddResource added in v2.3.1

func (*AuthorizeServer) AddResourceRelation added in v2.3.1

func (s *AuthorizeServer) AddResourceRelation(ctx context.Context, in *authorize.AddResourceRelationInput) (*common.Void, error)

func (*AuthorizeServer) AddResourceRelations added in v2.3.1

func (s *AuthorizeServer) AddResourceRelations(ctx context.Context, in *authorize.AddResourceRelationsInput) (*common.Void, error)

func (*AuthorizeServer) AddResources added in v2.3.1

func (*AuthorizeServer) AddUserRole added in v2.3.1

func (s *AuthorizeServer) AddUserRole(ctx context.Context, in *authorize.UserRole) (*common.Void, error)

func (*AuthorizeServer) ApplyRolesForUserOnResources added in v2.8.0

func (s *AuthorizeServer) ApplyRolesForUserOnResources(ctx context.Context, in *authorize.ApplyRolesForUserOnResourcesInput) (*common.Void, error)

func (*AuthorizeServer) ApplyUserAction added in v2.3.1

func (s *AuthorizeServer) ApplyUserAction(ctx context.Context, in *authorize.ApplyUserActionInput) (*common.Void, error)

func (*AuthorizeServer) AssertExpectations added in v2.3.1

func (s *AuthorizeServer) AssertExpectations(t *testing.T)

func (*AuthorizeServer) DeepPing added in v2.3.1

func (s *AuthorizeServer) DeepPing(ctx context.Context, void *common.Void) (*common.PrimitiveString, error)

func (*AuthorizeServer) GetAction added in v2.3.1

func (*AuthorizeServer) GetActionsByUserRole added in v2.3.1

func (*AuthorizeServer) GetAllActions added in v2.3.1

func (*AuthorizeServer) GetResource added in v2.3.1

func (*AuthorizeServer) GetResourceChildren added in v2.3.1

func (*AuthorizeServer) GetResourceParents added in v2.3.1

func (*AuthorizeServer) GetResourcesAndActionsByUser added in v2.3.1

func (*AuthorizeServer) GetResourcesByOriginAndType added in v2.3.1

func (*AuthorizeServer) GetResourcesByType added in v2.3.1

func (*AuthorizeServer) GetResourcesByUserAction added in v2.3.1

func (*AuthorizeServer) GetResourcesWithActionsAccess added in v2.3.1

func (*AuthorizeServer) GetUserActions added in v2.3.1

func (*AuthorizeServer) GetUserIDsWithAccessToResource added in v2.3.1

func (*AuthorizeServer) GetUserRole added in v2.3.1

func (*AuthorizeServer) HostPort added in v2.3.1

func (s *AuthorizeServer) HostPort() (string, string)

func (*AuthorizeServer) IsAuthorized added in v2.3.1

func (*AuthorizeServer) IsAuthorizedBulk added in v2.3.1

func (*AuthorizeServer) IsAuthorizedByEndpoint added in v2.3.1

func (*AuthorizeServer) LogClientState added in v2.3.1

func (s *AuthorizeServer) LogClientState(ctx context.Context, clientInfo *authorize.LogClientStateInput) (*common.Void, error)

func (*AuthorizeServer) RemoveAction added in v2.3.1

func (*AuthorizeServer) RemoveResource added in v2.3.1

func (s *AuthorizeServer) RemoveResource(ctx context.Context, in *authorize.RemoveResourceInput) (*common.Void, error)

func (*AuthorizeServer) RemoveResourceRelation added in v2.3.1

func (s *AuthorizeServer) RemoveResourceRelation(ctx context.Context, in *authorize.RemoveResourceRelationInput) (*common.Void, error)

func (*AuthorizeServer) RemoveResourceRelations added in v2.3.1

func (s *AuthorizeServer) RemoveResourceRelations(ctx context.Context, in *authorize.RemoveResourceRelationsInput) (*common.Void, error)

func (*AuthorizeServer) RemoveResources added in v2.3.1

func (s *AuthorizeServer) RemoveResources(ctx context.Context, in *authorize.RemoveResourcesInput) (*common.Void, error)

func (*AuthorizeServer) RemoveUserAction added in v2.3.1

func (s *AuthorizeServer) RemoveUserAction(ctx context.Context, in *authorize.RemoveUserActionInput) (*common.Void, error)

func (*AuthorizeServer) RemoveUserRole added in v2.3.1

func (s *AuthorizeServer) RemoveUserRole(ctx context.Context, in *authorize.RemoveUserRoleInput) (*common.Void, error)

Jump to

Keyboard shortcuts

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