Documentation ¶
Index ¶
- type Client
- type CreateSecretInfo
- type GetSecretInfo
- type MySQLDepot
- func (d *MySQLDepot) AddClient(client Client, initialStatus string) error
- func (d *MySQLDepot) CA(pass []byte) ([]*x509.Certificate, *rsa.PrivateKey, error)
- func (d *MySQLDepot) CheckCertExpiration() error
- func (d *MySQLDepot) CheckCertRevocation() error
- func (d *MySQLDepot) CheckSecretExpiration() error
- func (d *MySQLDepot) CreateSecret(info CreateSecretInfo) error
- func (d *MySQLDepot) DeleteSecret(target string) error
- func (d *MySQLDepot) GetCertsByCN(cn string) ([]certForJSON, error)
- func (d *MySQLDepot) GetClient(uid string) (*Client, error)
- func (d *MySQLDepot) GetClientList() ([]Client, error)
- func (d *MySQLDepot) GetFile(path string) (*file, error)
- func (d *MySQLDepot) GetNextSerial() (*big.Int, error)
- func (d *MySQLDepot) GetRCs() ([]pkix.RevokedCertificate, error)
- func (d *MySQLDepot) GetSecret(target string) (GetSecretInfo, error)
- func (d *MySQLDepot) HasCN(cn string, allowTime int, cert *x509.Certificate, revokeOldCertificate bool) (bool, error)
- func (d *MySQLDepot) Put(cn string, crt *x509.Certificate, challenge string) error
- func (d *MySQLDepot) RevokeCertificate(uid string, revocation_date time.Time) error
- func (d *MySQLDepot) Serial() (*big.Int, error)
- func (d *MySQLDepot) UpdateAttributesClient(info UpdateInfo) error
- func (d *MySQLDepot) UpdateStatusClient(uid string, status string) error
- type UpdateInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateSecretInfo ¶
type GetSecretInfo ¶
type MySQLDepot ¶
type MySQLDepot struct {
// contains filtered or unexported fields
}
func NewTableDepot ¶
func NewTableDepot(dsn, dirPath string) (*MySQLDepot, error)
func (*MySQLDepot) AddClient ¶
func (d *MySQLDepot) AddClient(client Client, initialStatus string) error
func (*MySQLDepot) CA ¶
func (d *MySQLDepot) CA(pass []byte) ([]*x509.Certificate, *rsa.PrivateKey, error)
func (*MySQLDepot) CheckCertExpiration ¶
func (d *MySQLDepot) CheckCertExpiration() error
func (*MySQLDepot) CheckCertRevocation ¶
func (d *MySQLDepot) CheckCertRevocation() error
func (*MySQLDepot) CheckSecretExpiration ¶
func (d *MySQLDepot) CheckSecretExpiration() error
func (*MySQLDepot) CreateSecret ¶
func (d *MySQLDepot) CreateSecret(info CreateSecretInfo) error
func (*MySQLDepot) DeleteSecret ¶
func (d *MySQLDepot) DeleteSecret(target string) error
func (*MySQLDepot) GetCertsByCN ¶
func (d *MySQLDepot) GetCertsByCN(cn string) ([]certForJSON, error)
func (*MySQLDepot) GetClientList ¶
func (d *MySQLDepot) GetClientList() ([]Client, error)
func (*MySQLDepot) GetFile ¶
func (d *MySQLDepot) GetFile(path string) (*file, error)
func (*MySQLDepot) GetNextSerial ¶ added in v0.1.3
func (d *MySQLDepot) GetNextSerial() (*big.Int, error)
func (*MySQLDepot) GetRCs ¶
func (d *MySQLDepot) GetRCs() ([]pkix.RevokedCertificate, error)
func (*MySQLDepot) GetSecret ¶
func (d *MySQLDepot) GetSecret(target string) (GetSecretInfo, error)
func (*MySQLDepot) HasCN ¶
func (d *MySQLDepot) HasCN(cn string, allowTime int, cert *x509.Certificate, revokeOldCertificate bool) (bool, error)
func (*MySQLDepot) Put ¶
func (d *MySQLDepot) Put(cn string, crt *x509.Certificate, challenge string) error
func (*MySQLDepot) RevokeCertificate ¶
func (d *MySQLDepot) RevokeCertificate(uid string, revocation_date time.Time) error
func (*MySQLDepot) UpdateAttributesClient ¶
func (d *MySQLDepot) UpdateAttributesClient(info UpdateInfo) error
func (*MySQLDepot) UpdateStatusClient ¶
func (d *MySQLDepot) UpdateStatusClient(uid string, status string) error
type UpdateInfo ¶
Click to show internal directories.
Click to hide internal directories.