client

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 NewRbacClient

func NewRbacClient(addr string, app string) (*RbacClient, error)

NewRbacClient

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

func (c *RbacClient) HasPermission(subject string, object string, action string) (bool, error)

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

Jump to

Keyboard shortcuts

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