Files
certmanager/internal/grpc/handler/certman.go
Олег Бородин a21b4e2db9 cerman updated
2024-08-07 11:31:18 +02:00

85 lines
3.0 KiB
Go

package handler
import (
"context"
"certmanager/pkg/cmctl"
)
func (hand *Handler) CreateIssuerPair(ctx context.Context, params *cmctl.CreateIssuerPairParams) (*cmctl.CreateIssuerPairResult, error) {
var err error
hand.log.Debugf("Handle CreateIssuerPair call")
res, err := hand.lg.CreateIssuerPair(ctx, params)
return res, err
}
func (hand *Handler) ImportIssuerPair(ctx context.Context, params *cmctl.ImportIssuerPairParams) (*cmctl.ImportIssuerPairResult, error) {
var err error
hand.log.Debugf("Handle ImportIssuerPair call")
res, err := hand.lg.ImportIssuerPair(ctx, params)
return res, err
}
func (hand *Handler) RevokeIssuerPair(ctx context.Context, params *cmctl.RevokeIssuerPairParams) (*cmctl.RevokeIssuerPairResult, error) {
var err error
hand.log.Debugf("Handle RevokeIssuerPair call")
res, err := hand.lg.RevokeIssuerPair(ctx, params)
return res, err
}
func (hand *Handler) UnrevokeIssuerPair(ctx context.Context, params *cmctl.UnrevokeIssuerPairParams) (*cmctl.UnrevokeIssuerPairResult, error) {
var err error
hand.log.Debugf("Handle UnrevokeIssuerPair call")
res, err := hand.lg.UnrevokeIssuerPair(ctx, params)
return res, err
}
func (hand *Handler) ListIssuerPairs(ctx context.Context, params *cmctl.ListIssuerPairsParams) (*cmctl.ListIssuerPairsResult, error) {
var err error
hand.log.Debugf("Handle ListIssuerPairs call")
res, err := hand.lg.ListIssuerPairs(ctx, params)
return res, err
}
func (hand *Handler) GetIssuerCertificate(ctx context.Context, params *cmctl.GetIssuerCertificateParams) (*cmctl.GetIssuerCertificateResult, error) {
var err error
hand.log.Debugf("Handle GetIssuerCertificate call")
res, err := hand.lg.GetIssuerCertificate(ctx, params)
return res, err
}
func (hand *Handler) CreateServicePair(ctx context.Context, params *cmctl.CreateServicePairParams) (*cmctl.CreateServicePairResult, error) {
var err error
hand.log.Debugf("Handle CreateServicePair call")
res, err := hand.lg.CreateServicePair(ctx, params)
return res, err
}
func (hand *Handler) RevokeServicePair(ctx context.Context, params *cmctl.RevokeServicePairParams) (*cmctl.RevokeServicePairResult, error) {
var err error
hand.log.Debugf("Handle RevokeServicePair call")
res, err := hand.lg.RevokeServicePair(ctx, params)
return res, err
}
func (hand *Handler) UnrevokeServicePair(ctx context.Context, params *cmctl.UnrevokeServicePairParams) (*cmctl.UnrevokeServicePairResult, error) {
var err error
hand.log.Debugf("Handle UnrevokeServicePair call")
res, err := hand.lg.UnrevokeServicePair(ctx, params)
return res, err
}
func (hand *Handler) ListServicePairs(ctx context.Context, params *cmctl.ListServicePairsParams) (*cmctl.ListServicePairsResult, error) {
var err error
hand.log.Debugf("Handle ListServicePairs call")
res, err := hand.lg.ListServicePairs(ctx, params)
return res, err
}
func (hand *Handler) GetServicePair(ctx context.Context, params *cmctl.GetServicePairParams) (*cmctl.GetServicePairResult, error) {
var err error
hand.log.Debugf("Handle GetServicePair call")
res, err := hand.lg.GetServicePair(ctx, params)
return res, err
}