Documentation ¶
Overview ¶
Package permissions defines the permissions-api client
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingURI is the error returned when there uri provided to the client ErrMissingURI = errors.New("no uri provided for client") // ErrNoAuthToken is the error returned when there is no auth token provided for the API request ErrNoAuthToken = errors.New("no auth token provided for client") // ErrPermissionDenied is the error returned when permission is denied to a call ErrPermissionDenied = errors.New("subject doesn't have access") // ErrBadResponse is the error returned when we receive a bad response from the server ErrBadResponse = errors.New("bad response from server") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is used to interact with the api
type ServerResponse ¶
type ServerResponse struct { Message string `json:"message,omitempty"` Error string `json:"error,omitempty"` StatusCode int }
ServerResponse represents the data that the server will return on any given call
Click to show internal directories.
Click to hide internal directories.