Documentation
¶
Index ¶
- func CreateCertificateRequest(c *gin.Context)
- func CreateNamespace(c *gin.Context)
- func CreateSecret(c *gin.Context)
- func GetCertificate(c *gin.Context)
- func GetSecret(c *gin.Context)
- func ListNamespaces(c *gin.Context)
- func Ping(c *gin.Context)
- type CACertificate
- type Certificate
- type KvResponse
- type Namespace
- type Secret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCertificateRequest ¶
CreateCertificateRequest create a new CSR records in database @Summary create a new CSR records in database @Description create a new CSR records in database @Produce json @Tags Certificate @Param body body Certificate true "body" @Success 200 {string} string "ok" @Failure 400 {string} string "err" @Failure 401 {string} string "err" @Failure 500 {string} string "err" @Router /api/v1/cert [post]
func CreateNamespace ¶
func CreateSecret ¶
CreateSecret create a secret record in database, sensitive fields of info are encrypted or hashed.
func GetCertificate ¶
func ListNamespaces ¶
Types ¶
type CACertificate ¶
type CACertificate struct {
Certificate string `json:"ca"`
}
type Certificate ¶
type KvResponse ¶
Click to show internal directories.
Click to hide internal directories.