Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAccessKey ¶
CreateAccessKey is the boilerplate code to call AccessKeyHandler::Create
func ListAccessKeys ¶
ListAccessKeys is the boilerplate code to call AccessKeyHandler::List
func QueryAccessKey ¶
QueryAccessKey handles API to query secret data from an access key
func RevokeAccessKey ¶
RevokeAccessKey is the boilerplate code to call AccessKeyHandler::Revoke
Types ¶
type AccessKeyHandler ¶
type AccessKeyHandler interface { // Create handles API creating a new access key Create(c echo.Context) error // List handles API listing all access keys of a user List(c echo.Context) error // Remove handles API removing a given access key Revoke(c echo.Context) error }
AccessKeyHandler contains methods to manage access keys
func NewAccessKeyHandler ¶
func NewAccessKeyHandler(ks store.KeyStore) AccessKeyHandler
NewAccessKeyHandler returns an object implemented AccessKeyHandler
Click to show internal directories.
Click to hide internal directories.