Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNamespace ¶
func CreateSecret ¶
Types ¶
type Certificate ¶
type Certificate struct {
ID uint `json:"id" gorm:"primaryKey;autoIncrement"`
Name string `json:"name" gorm:"unique;not null"`
SignRequest string `json:"req" gorm:"not null"`
Certificate string `json:"certificate"`
Token string `json:"token" gorm:"unique;not null"`
}
func GetCertificate ¶
func GetCertificate(name string) (cert Certificate, err error)
func UpdateSignedCertificateByName ¶
func UpdateSignedCertificateByName(name, signed string) (cert Certificate, err error)
func (Certificate) IsEmpty ¶
func (c Certificate) IsEmpty() bool
type Namespace ¶
type Namespace struct {
ID uint `json:"namespace_id" gorm:"primaryKey;autoIncrement"`
Name string `json:"name" gorm:"unique;not null"`
MasterKey string
Nonce string
}
func GetNamespace ¶
func ListNamespace ¶
Click to show internal directories.
Click to hide internal directories.