Documentation ¶
Index ¶
- Variables
- type RbacClient
- func (c *RbacClient) AddChildSubjectToParentSubject(child string, parent string) error
- func (c *RbacClient) GrantPermission(subject string, object string, action string) error
- func (c *RbacClient) HasPermission(subject string, object string, action string) (bool, error)
- func (c *RbacClient) RemoveChildSubjectFromParentSubject(child string, parent string) error
- func (c *RbacClient) RevokePermission(subject string, object string, action string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAppInstance = errors.New("failed to instantiate the buttress application")
ErrAppInstance
View Source
var ErrAuthInstance = errors.New("failed to instantiate auth")
ErrAuthInstance
View Source
var ErrConnection = errors.New("failed to connect to the buttress server")
ErrConnection
Functions ¶
This section is empty.
Types ¶
type RbacClient ¶
type RbacClient struct {
// contains filtered or unexported fields
}
RbacClient
func NewAuthorizedRbacClient ¶ added in v0.2.0
func NewAuthorizedRbacClient(addr string, app string, pem []byte) (*RbacClient, error)
NewAuthorizedRbacClient
func (*RbacClient) AddChildSubjectToParentSubject ¶
func (c *RbacClient) AddChildSubjectToParentSubject(child string, parent string) error
AddChildSubjectToParentSubject
func (*RbacClient) GrantPermission ¶
func (c *RbacClient) GrantPermission(subject string, object string, action string) error
GrantPermissionToSubject
func (*RbacClient) HasPermission ¶
HasPermission
func (*RbacClient) RemoveChildSubjectFromParentSubject ¶
func (c *RbacClient) RemoveChildSubjectFromParentSubject(child string, parent string) error
RemoveChildSubjectFromParentSubject
func (*RbacClient) RevokePermission ¶
func (c *RbacClient) RevokePermission(subject string, object string, action string) error
RevokePermission
Click to show internal directories.
Click to hide internal directories.