Documentation
¶
Index ¶
- type Certificate
- type CertificateInfo
- type Error
- type Service
- func (s *Service) AddCertificate(certificate Certificate, resp ...*http.Response) (*CertificateInfo, error)
- func (s *Service) DeleteCertificate(slot string, resp ...*http.Response) error
- func (s *Service) DeleteCertificates(resp ...*http.Response) error
- func (s *Service) ListCertificates(resp ...*http.Response) ([]CertificateInfo, error)
- type Servicer
- type ServicerGenerated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Certificate struct {
Pem string `json:"pem"`
}
type CertificateInfo ¶
type CertificateInfo struct {
Content *string `json:"content,omitempty"`
Hash *string `json:"hash,omitempty"`
Issuer *string `json:"issuer,omitempty"`
LastUpdate *string `json:"lastUpdate,omitempty"`
NotAfter *string `json:"notAfter,omitempty"`
NotBefore *string `json:"notBefore,omitempty"`
Slot *int64 `json:"slot,omitempty"`
Subject *string `json:"subject,omitempty"`
}
type Service ¶
type Service services.BaseService
func NewService ¶
NewService creates a new forwarders service client from the given Config
func (*Service) AddCertificate ¶
func (s *Service) AddCertificate(certificate Certificate, resp ...*http.Response) (*CertificateInfo, error)
AddCertificate - Adds a certificate to a vacant slot on a tenant. Parameters:
certificate resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
func (*Service) DeleteCertificate ¶
DeleteCertificate - Removes a certificate on a particular slot on a tenant. Parameters:
slot resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
func (*Service) DeleteCertificates ¶
DeleteCertificates - Removes all certificates on a tenant. Parameters:
resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
func (*Service) ListCertificates ¶
func (s *Service) ListCertificates(resp ...*http.Response) ([]CertificateInfo, error)
ListCertificates - Returns a list of all certificates for a tenant. Parameters:
resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
type Servicer ¶
type Servicer interface {
//interfaces that are auto-generated in interface_generated.go
ServicerGenerated
}
Servicer represents the interface for implementing all endpoints for this service
type ServicerGenerated ¶ added in v1.10.0
type ServicerGenerated interface {
/*
AddCertificate - Adds a certificate to a vacant slot on a tenant.
Parameters:
certificate
resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
*/
AddCertificate(certificate Certificate, resp ...*http.Response) (*CertificateInfo, error)
/*
DeleteCertificate - Removes a certificate on a particular slot on a tenant.
Parameters:
slot
resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
*/
DeleteCertificate(slot string, resp ...*http.Response) error
/*
DeleteCertificates - Removes all certificates on a tenant.
Parameters:
resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
*/
DeleteCertificates(resp ...*http.Response) error
/*
ListCertificates - Returns a list of all certificates for a tenant.
Parameters:
resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
*/
ListCertificates(resp ...*http.Response) ([]CertificateInfo, error)
}
ServicerGenerated represents the interface for implementing all endpoints for this service
Click to show internal directories.
Click to hide internal directories.