Documentation ¶
Index ¶
- Variables
- func WithCleanupSchedule(cron string) cfg.Option[Config]
- func WithCleanupTimeout(dur time.Duration) cfg.Option[Config]
- func WithLogger(logger *slog.Logger) cfg.Option[Config]
- func WithMetrics(m Metrics) cfg.Option[Config]
- func WithTrace(tracer trace.Tracer) cfg.Option[Config]
- type Certificate
- type Challenge
- type Config
- type Metrics
- type Services
- func (r *Services) CreateCertificate(ctx context.Context, service string, cert []byte, expiry time.Time) error
- func (r *Services) CreateService(ctx context.Context, service string, pubKey []byte) (err error)
- func (r *Services) DeleteCertificate(ctx context.Context, service string, cert []byte) error
- func (r *Services) DeleteService(ctx context.Context, service string) error
- func (r *Services) GetService(ctx context.Context, service string) (pubKey []byte, err error)
- func (r *Services) ListCertificates(ctx context.Context, service string) (certs []*pb.CertificateResponse, err error)
- func (r *Services) Shutdown(_ context.Context) error
- type Token
- type Tokens
- func (r *Tokens) CreateChallenge(ctx context.Context, service string, challenge []byte, expiry time.Time) error
- func (r *Tokens) CreateToken(ctx context.Context, service string, token []byte, expiry time.Time) error
- func (r *Tokens) DeleteChallenge(ctx context.Context, service string, challenge []byte) error
- func (r *Tokens) DeleteToken(ctx context.Context, service string, token []byte) error
- func (r *Tokens) ListChallenges(ctx context.Context, service string) (challenges []*pb.LoginResponse, err error)
- func (r *Tokens) ListTokens(ctx context.Context, service string) (tokens []*pb.TokenResponse, err error)
- func (r *Tokens) Shutdown(_ context.Context) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Certificate ¶
type Services ¶
type Services struct {
// contains filtered or unexported fields
}
func (*Services) CreateCertificate ¶
func (*Services) CreateService ¶
func (*Services) DeleteCertificate ¶
func (*Services) DeleteService ¶
func (*Services) GetService ¶
func (*Services) ListCertificates ¶
type Tokens ¶
type Tokens struct {
// contains filtered or unexported fields
}
func (*Tokens) CreateChallenge ¶
func (*Tokens) CreateToken ¶
func (*Tokens) DeleteChallenge ¶
func (*Tokens) DeleteToken ¶
func (*Tokens) ListChallenges ¶
func (*Tokens) ListTokens ¶
Click to show internal directories.
Click to hide internal directories.