Documentation
¶
Index ¶
- type Client
- func (mock *Client) AddAction(action grpcapi.Action) error
- func (mock *Client) AddActionWithContext(ctx context.Context, action grpcapi.Action) error
- func (mock *Client) AddResource(resource common.Origin) error
- func (mock *Client) AddResourceRelation(resource common.Origin, parent common.Origin) error
- func (mock *Client) AddResourceRelationWithContext(ctx context.Context, resource common.Origin, parent common.Origin) error
- func (mock *Client) AddResourceRelations(resources grpcapi.AddResourceRelationsInput) error
- func (mock *Client) AddResourceRelationsWithContext(ctx context.Context, resources grpcapi.AddResourceRelationsInput) error
- func (mock *Client) AddResourceWithContext(ctx context.Context, resource common.Origin) error
- func (mock *Client) AddResources(resources []common.Origin) error
- func (mock *Client) AddResourcesWithContext(ctx context.Context, resources []common.Origin) error
- func (mock *Client) AddUserRole(role grpcapi.UserRole) error
- func (mock *Client) AddUserRoleWithContext(ctx context.Context, role grpcapi.UserRole) error
- func (mock *Client) ApplyUserAction(userID, action string, resource *common.Origin) error
- func (mock *Client) ApplyUserActionWithContext(ctx context.Context, userID, action string, resource *common.Origin) error
- func (mock *Client) Close() error
- func (mock *Client) DeepPing() error
- func (mock *Client) DeepPingWithContext(ctx context.Context) error
- func (mock *Client) Dial(host, port string, opts ...grpc.DialOption) error
- func (mock *Client) DialUsingCredentials(sess *session.Session, host, port, secretKey string, opts ...grpc.DialOption) error
- func (mock *Client) DialUsingCredentialsWithContext(ctx context.Context, sess *session.Session, host, port, secretKey string, ...) error
- func (mock *Client) DialWithContext(ctx context.Context, host, port string, opts ...grpc.DialOption) error
- func (mock *Client) GetAction(name string) (grpcapi.Action, error)
- func (mock *Client) GetActionWithContext(ctx context.Context, name string) (grpcapi.Action, error)
- func (mock *Client) GetActionsByUserRole(userRole string) ([]grpcapi.Action, error)
- func (mock *Client) GetActionsByUserRoleWithContext(ctx context.Context, userRole string) ([]grpcapi.Action, error)
- func (mock *Client) GetAllActions() ([]grpcapi.Action, error)
- func (mock *Client) GetAllActionsWithContext(ctx context.Context) ([]grpcapi.Action, error)
- func (mock *Client) GetResource(id string, originType string) (common.Origin, error)
- func (mock *Client) GetResourceChildren(resource common.Origin, childOriginType string) (resources []common.Origin, err error)
- func (mock *Client) GetResourceChildrenWithContext(ctx context.Context, resource common.Origin, childOriginType string) (resources []common.Origin, err error)
- func (mock *Client) GetResourceParents(resource common.Origin, parentOriginType string) (resources []common.Origin, err error)
- func (mock *Client) GetResourceParentsWithContext(ctx context.Context, resource common.Origin, parentOriginType string) (resources []common.Origin, err error)
- func (mock *Client) GetResourceWithContext(ctx context.Context, id string, originType string) (common.Origin, error)
- func (mock *Client) GetResourcesAndActionsByUser(userID string) ([]grpcapi.ActionResource, error)
- func (mock *Client) GetResourcesAndActionsByUserWithContext(ctx context.Context, userID string) ([]grpcapi.ActionResource, error)
- func (mock *Client) GetResourcesByOriginAndType(resource common.Origin, resourceType string, depth int32) (resources []common.Origin, err error)
- func (mock *Client) GetResourcesByOriginAndTypeWithContext(ctx context.Context, resource common.Origin, resourceType string, depth int32) (resources []common.Origin, err error)
- func (mock *Client) GetResourcesByType(resourceType string) (resources []common.Origin, err error)
- func (mock *Client) GetResourcesByTypeWithContext(ctx context.Context, resourceType string) (resources []common.Origin, err error)
- func (mock *Client) GetResourcesByUserAction(userID, actionName, resourceType string) ([]common.Origin, error)
- func (mock *Client) GetResourcesByUserActionWithContext(ctx context.Context, userID, actionName, resourceType string) ([]common.Origin, error)
- func (mock *Client) GetResourcesWithActionsAccess(actions []string, resourceType string, resource *common.Origin) ([]common.Origin, error)
- func (mock *Client) GetResourcesWithActionsAccessWithContext(ctx context.Context, actions []string, resourceType string, ...) ([]common.Origin, error)
- func (mock *Client) GetUserActions(userID string) ([]grpcapi.Action, error)
- func (mock *Client) GetUserActionsWithContext(ctx context.Context, userID string) ([]grpcapi.Action, error)
- func (mock *Client) GetUserIDsWithAccessToResource(resource common.Origin) (resources []string, err error)
- func (mock *Client) GetUserIDsWithAccessToResourceWithContext(ctx context.Context, resource common.Origin) (resources []string, err error)
- func (mock *Client) GetUserRole(roleName string) (grpcapi.UserRole, error)
- func (mock *Client) GetUserRoleWithContext(ctx context.Context, roleName string) (grpcapi.UserRole, error)
- func (mock *Client) IsAuthorized(userID, action string, resource *common.Origin) (bool, error)
- func (mock *Client) IsAuthorizedBulk(userID, action string, resources []common.Origin) ([]string, []bool, error)
- func (mock *Client) IsAuthorizedBulkWithContext(ctx context.Context, userID, action string, resources []common.Origin) ([]string, []bool, error)
- func (mock *Client) IsAuthorizedByEndpoint(api, method, endpoint, userID string) (bool, error)
- func (mock *Client) IsAuthorizedByEndpointWithContext(ctx context.Context, api, method, endpoint, userID string) (bool, error)
- func (mock *Client) IsAuthorizedWithContext(ctx context.Context, userID, action string, resource *common.Origin) (bool, error)
- func (mock *Client) RemoveAction(name string) error
- func (mock *Client) RemoveActionWithContext(ctx context.Context, name string) error
- func (mock *Client) RemoveResource(resource common.Origin) error
- func (mock *Client) RemoveResourceRelation(resource common.Origin, parent common.Origin) error
- func (mock *Client) RemoveResourceRelationWithContext(ctx context.Context, resource common.Origin, parent common.Origin) error
- func (mock *Client) RemoveResourceRelations(resources grpcapi.RemoveResourceRelationsInput) error
- func (mock *Client) RemoveResourceRelationsWithContext(ctx context.Context, resources grpcapi.RemoveResourceRelationsInput) error
- func (mock *Client) RemoveResourceWithContext(ctx context.Context, resource common.Origin) error
- func (mock *Client) RemoveResources(resources []common.Origin) error
- func (mock *Client) RemoveResourcesWithContext(ctx context.Context, resources []common.Origin) error
- func (mock *Client) RemoveUserAction(userID, action string, resource *common.Origin) error
- func (mock *Client) RemoveUserActionWithContext(ctx context.Context, userID, action string, resource *common.Origin) error
- func (mock *Client) RemoveUserRole(roleName string) error
- func (mock *Client) RemoveUserRoleWithContext(ctx context.Context, roleName string) error
- func (mock *Client) SetRequestTimeout(d time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v1.33.0
func (*Client) AddActionWithContext ¶ added in v1.33.0
func (*Client) AddResource ¶ added in v1.33.0
func (*Client) AddResourceRelation ¶ added in v1.33.0
func (*Client) AddResourceRelationWithContext ¶ added in v1.33.0
func (*Client) AddResourceRelations ¶ added in v1.33.0
func (mock *Client) AddResourceRelations(resources grpcapi.AddResourceRelationsInput) error
func (*Client) AddResourceRelationsWithContext ¶ added in v1.33.0
func (*Client) AddResourceWithContext ¶ added in v1.33.0
func (*Client) AddResources ¶ added in v1.33.0
func (*Client) AddResourcesWithContext ¶ added in v1.33.0
func (*Client) AddUserRole ¶ added in v1.33.0
func (*Client) AddUserRoleWithContext ¶ added in v1.33.0
func (*Client) ApplyUserAction ¶ added in v1.33.0
func (*Client) ApplyUserActionWithContext ¶ added in v1.33.0
func (*Client) DeepPingWithContext ¶ added in v1.33.0
func (*Client) Dial ¶ added in v1.33.0
func (mock *Client) Dial(host, port string, opts ...grpc.DialOption) error
func (*Client) DialUsingCredentials ¶ added in v1.33.0
func (*Client) DialUsingCredentialsWithContext ¶ added in v1.33.0
func (*Client) DialWithContext ¶ added in v1.33.0
func (*Client) GetActionWithContext ¶ added in v1.33.0
func (*Client) GetActionsByUserRole ¶ added in v1.33.0
func (*Client) GetActionsByUserRoleWithContext ¶ added in v1.33.0
func (*Client) GetAllActions ¶ added in v1.33.0
func (*Client) GetAllActionsWithContext ¶ added in v1.33.0
func (*Client) GetResource ¶ added in v1.33.0
func (*Client) GetResourceChildren ¶ added in v1.33.0
func (*Client) GetResourceChildrenWithContext ¶ added in v1.33.0
func (*Client) GetResourceParents ¶ added in v1.33.0
func (*Client) GetResourceParentsWithContext ¶ added in v1.33.0
func (*Client) GetResourceWithContext ¶ added in v1.33.0
func (*Client) GetResourcesAndActionsByUser ¶ added in v1.33.0
func (mock *Client) GetResourcesAndActionsByUser(userID string) ([]grpcapi.ActionResource, error)
func (*Client) GetResourcesAndActionsByUserWithContext ¶ added in v1.33.0
func (*Client) GetResourcesByOriginAndType ¶ added in v1.33.0
func (*Client) GetResourcesByOriginAndTypeWithContext ¶ added in v1.33.0
func (*Client) GetResourcesByType ¶ added in v1.33.0
func (*Client) GetResourcesByTypeWithContext ¶ added in v1.33.0
func (*Client) GetResourcesByUserAction ¶ added in v1.33.0
func (*Client) GetResourcesByUserActionWithContext ¶ added in v1.33.0
func (*Client) GetResourcesWithActionsAccess ¶ added in v1.33.0
func (*Client) GetResourcesWithActionsAccessWithContext ¶ added in v1.33.0
func (*Client) GetUserActions ¶ added in v1.33.0
func (*Client) GetUserActionsWithContext ¶ added in v1.33.0
func (*Client) GetUserIDsWithAccessToResource ¶ added in v1.33.0
func (*Client) GetUserIDsWithAccessToResourceWithContext ¶ added in v1.33.0
func (*Client) GetUserRole ¶ added in v1.33.0
func (*Client) GetUserRoleWithContext ¶ added in v1.33.0
func (*Client) IsAuthorized ¶ added in v1.33.0
func (*Client) IsAuthorizedBulk ¶ added in v1.33.0
func (*Client) IsAuthorizedBulkWithContext ¶ added in v1.33.0
func (*Client) IsAuthorizedByEndpoint ¶ added in v1.33.0
func (*Client) IsAuthorizedByEndpointWithContext ¶ added in v1.33.0
func (*Client) IsAuthorizedWithContext ¶ added in v1.33.0
func (*Client) RemoveAction ¶ added in v1.33.0
func (*Client) RemoveActionWithContext ¶ added in v1.33.0
func (*Client) RemoveResource ¶ added in v1.33.0
func (*Client) RemoveResourceRelation ¶ added in v1.33.0
func (*Client) RemoveResourceRelationWithContext ¶ added in v1.33.0
func (*Client) RemoveResourceRelations ¶ added in v1.33.0
func (mock *Client) RemoveResourceRelations(resources grpcapi.RemoveResourceRelationsInput) error
func (*Client) RemoveResourceRelationsWithContext ¶ added in v1.33.0
func (*Client) RemoveResourceWithContext ¶ added in v1.33.0
func (*Client) RemoveResources ¶ added in v1.33.0
func (*Client) RemoveResourcesWithContext ¶ added in v1.33.0
func (*Client) RemoveUserAction ¶ added in v1.33.0
func (*Client) RemoveUserActionWithContext ¶ added in v1.33.0
func (*Client) RemoveUserRole ¶ added in v1.33.0
func (*Client) RemoveUserRoleWithContext ¶ added in v1.33.0
func (*Client) SetRequestTimeout ¶ added in v1.33.0
Click to show internal directories.
Click to hide internal directories.