certificate

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 13 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 agentport.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,
	namespace string,
	name string,
) error

DeleteCertificate implements port.CertificateManageUsecase.

func (*Service) GetCertificate

func (s *Service) GetCertificate(
	ctx context.Context,
	namespace string,
	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,
	namespace string,
	name string,
	certificate *v1.Certificate,
) (*v1.Certificate, error)

UpdateCertificate implements port.CertificateManageUsecase.

Directories

Path Synopsis
Package filter provides filters for certificate domain model.
Package filter provides filters for certificate domain model.

Jump to

Keyboard shortcuts

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