certificate

package
v0.1.28 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package certificate provides the CertificateService for managing certificates.

Index

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

func (s *Service) DeleteCertificate(
	ctx context.Context,
	name string,
) error

DeleteCertificate implements port.CertificateManageUsecase.

func (*Service) GetCertificate

func (s *Service) GetCertificate(
	ctx context.Context,
	name string,
) (*v1.Certificate, error)

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.

Jump to

Keyboard shortcuts

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