service

package
v0.0.0-...-564e120 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewRestClient = resty.New

NewRestClient is a function that creates a resty client, to allow mocking and intercepting of HTTP requests

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
}

Certificate service responsible for certificate related operations

func NewCertificateService

func NewCertificateService() *Certificate

NewCertificateService will return a new webhook certificate service

func (*Certificate) CheckCertificate

func (cs *Certificate) CheckCertificate(connection domain.Connection, id string) (*domain.CertificateDetails, error)

CheckCertificate will check certificate details for submitted certificate request

func (*Certificate) CheckOrder

func (cs *Certificate) CheckOrder(connection domain.Connection, id string) (*domain.OrderDetails, error)

CheckOrder will check order details for submitted certificate request

func (*Certificate) RequestCertificate

func (cs *Certificate) RequestCertificate(connection domain.Connection, pkcs10Request string, product domain.Product, productOptionName string, validitySeconds int, productDetails *domain.ProductDetails) (*domain.CertificateDetails, *domain.OrderDetails, error)

RequestCertificate will request certificate from a Certificate Authority

func (*Certificate) RetrieveCertificates

func (cs *Certificate) RetrieveCertificates(connection domain.Connection, importOption domain.ImportOption, configuration domain.ImportConfiguration, startCursor string, batchSize int) (*domain.ImportDetails, error)

RetrieveCertificates will retrieve certificates available for import in TLSPC, from a Certificate Authority

type Connector

type Connector struct {
}

Connector ...

func NewConnectionService

func NewConnectionService() *Connector

NewConnectionService will return a new webhook service

func (*Connector) TestConnection

func (cs *Connector) TestConnection(connection domain.Connection) error

TestConnection will test connection against a Certificate Authority

type Options

type Options struct {
}

Options ...

func NewOptionsService

func NewOptionsService() *Options

NewOptionsService will return a new webhook service

func (*Options) GetOptions

func (cs *Options) GetOptions(connection domain.Connection) ([]domain.ProductOption, []domain.ImportOption, error)

GetOptions will retrieve product and import options from Certificate Authority

func (*Options) ValidateProduct

func (cs *Options) ValidateProduct(connection domain.Connection, name string, product domain.Product) ([]domain.ProductError, error)

ValidateProduct will validate product against Certificate Authority

Jump to

Keyboard shortcuts

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