biz

package
v0.0.0-...-d296433 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2024 License: MIT Imports: 3 Imported by: 0

README

Biz

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewCAUseCase)

ProviderSet is biz providers.

Functions

This section is empty.

Types

type CARepo

type CARepo interface {
	GetCert(context.Context, string) (string, error)
	GetCertBySerial(context.Context, string) (string, error)
	GetParentCert(context.Context, string) (string, error)
	GetPrivateKey(context.Context, string) (string, error)
	SavePrivateKey(context.Context, string, string) error
	SaveCert(context.Context, string, string) error
	SaveParentKey(context.Context, string, string) error

	// for CRL
	GetCRL(context.Context, string) (string, error)
	SaveCRL(context.Context, string, string) error

	// root ca
	GetRootCert(context.Context, string) (string, error)
	SaveRootCert(context.Context, string, string) error
}

type CAUseCase

type CAUseCase struct {
	// contains filtered or unexported fields
}

func NewCAUseCase

func NewCAUseCase(repo CARepo, logger log.Logger) *CAUseCase

func (*CAUseCase) GetCRL

func (ca *CAUseCase) GetCRL(ctx context.Context, common string) (string, error)

func (*CAUseCase) GetCert

func (ca *CAUseCase) GetCert(ctx context.Context, common string) (string, error)

func (*CAUseCase) GetCertBySerial

func (ca *CAUseCase) GetCertBySerial(ctx context.Context, serial string) (string, error)

func (*CAUseCase) GetParentCert

func (ca *CAUseCase) GetParentCert(ctx context.Context, common string) (string, error)

func (*CAUseCase) GetPrivateKey

func (ca *CAUseCase) GetPrivateKey(ctx context.Context, common string) (string, error)

func (*CAUseCase) GetRootCert

func (ca *CAUseCase) GetRootCert(ctx context.Context, common string) (string, error)

func (*CAUseCase) SaveCRL

func (ca *CAUseCase) SaveCRL(ctx context.Context, common, crl string) error

func (*CAUseCase) SaveCert

func (ca *CAUseCase) SaveCert(ctx context.Context, serial, cert string) error

func (*CAUseCase) SaveParentKey

func (ca *CAUseCase) SaveParentKey(ctx context.Context, common, privateKey string) error

func (*CAUseCase) SavePrivateKey

func (ca *CAUseCase) SavePrivateKey(ctx context.Context, common, privateKey string) error

func (*CAUseCase) SaveRootCert

func (ca *CAUseCase) SaveRootCert(ctx context.Context, common, cert string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL