Documentation ¶
Overview ¶
Arc - Copyleft of Simone 'evilsocket' Margaritelli.
evilsocket at protonmail dot com
See LICENSE.
Arc - Copyleft of Simone 'evilsocket' Margaritelli.
evilsocket at protonmail dot com
See LICENSE.
Arc is an API server for your secrets.
Schemes: http, https BasePath: / Version: 1.0.0 Consumes: - application/json Produces: - application/json
swagger:meta
Arc - Copyleft of Simone 'evilsocket' Margaritelli.
evilsocket at protonmail dot com
See LICENSE.
Arc - Copyleft of Simone 'evilsocket' Margaritelli.
evilsocket at protonmail dot com
See LICENSE.
Index ¶
- Variables
- func Auth(c *gin.Context)
- func ClearEvents(c *gin.Context)
- func CreateRecord(c *gin.Context)
- func CreateStore(c *gin.Context)
- func DeleteRecord(c *gin.Context)
- func DeleteStore(c *gin.Context)
- func GetConfig(c *gin.Context)
- func GetRecord(c *gin.Context)
- func GetRecordBuffer(c *gin.Context)
- func GetStatus(c *gin.Context)
- func GetStore(c *gin.Context)
- func ListRecords(c *gin.Context)
- func ListStores(c *gin.Context)
- func SafeBind(c *gin.Context, obj interface{}) error
- func UpdateRecord(c *gin.Context)
- func UpdateStore(c *gin.Context)
- type AuthRequest
- type AuthResponse
- type Status
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Auth ¶
swagger:route POST /auth authentication doAuth
Handler authenticating a user and returning a bearer token for API requests.
Consumes:
- application/json
Produces:
- application/json
Responses:
200: authResponse 400: errorResponse 403: errorResponse 500: errorResponse
func ClearEvents ¶
func CreateRecord ¶
func CreateStore ¶
func DeleteRecord ¶
func DeleteStore ¶
func GetConfig ¶
swagger:route GET /api/config configuration getConfig
Handler returning the current server configuration.
Produces:
- application/json
Responses:
200: Configuration
func GetRecordBuffer ¶
func GetStatus ¶
swagger:route GET /api/status status getStatus
Handler returning the current server status.
Produces:
- application/json
Responses:
200: Status
func ListRecords ¶
func ListStores ¶
func UpdateRecord ¶
func UpdateStore ¶
Types ¶
type AuthRequest ¶
type AuthRequest struct { // API server username ( as per config.json ). // in: body // required: true Username string `json:"username"` // API server password ( as per config.json ). // in: body // required: true Password string `json:"password"` }
Authentication credentials. swagger:model Auth
type AuthResponse ¶
type AuthResponse struct { // The bearer token to use for API requests. // in: body Token string `json:"token"` }
Authentication response. swagger:response authResponse