Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotAllowed is returned when the given user is not allowed for the access. ErrNotAllowed = errors.New("method is not allowed for this user") // ErrUnexpectedStatusCode is returned when the response code is not 200 from the webhook. ErrUnexpectedStatusCode = errors.New("unexpected status code from webhook") // ErrWebhookTimeout is returned when the webhook does not respond in time. ErrWebhookTimeout = errors.New("webhook timeout") )
Functions ¶
func AccessAttributes ¶
func AccessAttributes(pack *change.Pack) []types.AccessAttribute
AccessAttributes returns an array of AccessAttribute from the given pack.
func VerifyAccess ¶
VerifyAccess verifies the given access.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.