Documentation
¶
Overview ¶
Package certificate provides the CertificateService for managing certificates.
Index ¶
- type Service
- func (s *Service) CreateCertificate(ctx context.Context, apiModel *v1.Certificate) (*v1.Certificate, error)
- func (s *Service) DeleteCertificate(ctx context.Context, name string) error
- func (s *Service) GetCertificate(ctx context.Context, name string) (*v1.Certificate, error)
- func (s *Service) ListCertificates(ctx context.Context, options *model.ListOptions) (*v1.ListResponse[v1.Certificate], error)
- func (s *Service) UpdateCertificate(ctx context.Context, name string, certificate *v1.Certificate) (*v1.Certificate, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a service for managing certificates.
func NewCertificateService ¶
func NewCertificateService( certificateUsecase domainport.CertificateUsecase, logger *slog.Logger, ) *Service
NewCertificateService creates a new CertificateService.
func (*Service) CreateCertificate ¶
func (s *Service) CreateCertificate( ctx context.Context, apiModel *v1.Certificate, ) (*v1.Certificate, error)
CreateCertificate implements port.CertificateManageUsecase.
func (*Service) DeleteCertificate ¶
DeleteCertificate implements port.CertificateManageUsecase.
func (*Service) GetCertificate ¶
GetCertificate implements port.CertificateManageUsecase.
func (*Service) ListCertificates ¶
func (s *Service) ListCertificates( ctx context.Context, options *model.ListOptions, ) (*v1.ListResponse[v1.Certificate], error)
ListCertificates implements port.CertificateManageUsecase.
func (*Service) UpdateCertificate ¶
func (s *Service) UpdateCertificate( ctx context.Context, name string, certificate *v1.Certificate, ) (*v1.Certificate, error)
UpdateCertificate implements port.CertificateManageUsecase.
Click to show internal directories.
Click to hide internal directories.