Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var New = NewPermit
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Api *api.PermitApiClient
Elements *api.Elements
// contains filtered or unexported fields
}
func NewPermit ¶
func NewPermit(config config.PermitConfig) *Client
func (*Client) Check ¶
func (c *Client) Check(user enforcement.User, action enforcement.Action, resource enforcement.Resource) (bool, error)
type PermitInterface ¶
type PermitInterface interface {
Check() bool
SyncUser() models.UserRead
SyncResources() []models.ResourceRead
}
Click to show internal directories.
Click to hide internal directories.