Versions in this module Expand all Collapse all v0 v0.0.6 Aug 12, 2024 v0.0.5 Aug 12, 2024 Changes in this version + type AddCertificateParams struct + Dns sql.NullInt64 + NotAfter time.Time + Owner string + UpdatedAt time.Time + type AddDomainsParams struct + CertID int64 + Domain string + State int64 + type AddTempCertificateParams struct + Owner string + TempParent sql.NullInt64 + UpdatedAt time.Time + type Certificate struct + Active bool + AutoRenew bool + Dns sql.NullInt64 + ID int64 + NotAfter time.Time + Owner string + RenewFailed bool + Renewing bool + TempParent sql.NullInt64 + UpdatedAt time.Time + type CertificateDomain struct + CertID int64 + Domain string + DomainID int64 + State int64 + type CheckCertOwnerRow struct + ID int64 + Owner string + type DBTX interface + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + PrepareContext func(context.Context, string) (*sql.Stmt, error) + QueryContext func(context.Context, string, ...interface{}) (*sql.Rows, error) + QueryRowContext func(context.Context, string, ...interface{}) *sql.Row + type DnsAcme struct + Email string + ID int64 + Token string + Type string + type FindNextCertRow struct + ID int64 + NotAfter time.Time + TempParent sql.NullInt64 + Token sql.NullString + Type sql.NullString + type FindOwnedCertsRow struct + Active bool + AutoRenew bool + Domain string + ID int64 + NotAfter time.Time + RenewFailed bool + Renewing bool + UpdatedAt time.Time + type GetDomainStatesForCertRow struct + Domain string + State int64 + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) AddCertificate(ctx context.Context, arg AddCertificateParams) error + func (q *Queries) AddDomains(ctx context.Context, arg AddDomainsParams) error + func (q *Queries) AddTempCertificate(ctx context.Context, arg AddTempCertificateParams) error + func (q *Queries) CheckCertOwner(ctx context.Context, id int64) (CheckCertOwnerRow, error) + func (q *Queries) FindNextCert(ctx context.Context) (FindNextCertRow, error) + func (q *Queries) FindOwnedCerts(ctx context.Context) ([]FindOwnedCertsRow, error) + func (q *Queries) GetDomainStatesForCert(ctx context.Context, certID int64) ([]GetDomainStatesForCertRow, error) + func (q *Queries) GetDomainsForCertificate(ctx context.Context, certID int64) ([]string, error) + func (q *Queries) RemoveCertificate(ctx context.Context, id int64) error + func (q *Queries) SetDomainStateForCert(ctx context.Context, arg SetDomainStateForCertParams) error + func (q *Queries) UpdateCertAfterRenewal(ctx context.Context, arg UpdateCertAfterRenewalParams) error + func (q *Queries) UpdateDomains(ctx context.Context, arg UpdateDomainsParams) error + func (q *Queries) UpdateRenewingState(ctx context.Context, arg UpdateRenewingStateParams) error + func (q *Queries) UseTx(ctx context.Context, cb func(tx *Queries) error) error + func (q *Queries) WithTx(tx *sql.Tx) *Queries + type SetDomainStateForCertParams struct + CertID int64 + State int64 + type UpdateCertAfterRenewalParams struct + ID int64 + NotAfter time.Time + UpdatedAt time.Time + type UpdateDomainsParams struct + Domains []string + State int64 + type UpdateRenewingStateParams struct + ID int64 + RenewFailed bool + Renewing bool