Documentation ¶
Index ¶
- type Service
- func (service *Service) GetRawCertificate() *tls.Certificate
- func (service *Service) GetSSLSettings() (*portainer.SSLSettings, error)
- func (service *Service) Init(host, certPath, keyPath string) error
- func (service *Service) SetCertificates(certData, keyData []byte) error
- func (service *Service) SetHTTPEnabled(httpEnabled bool) error
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 represents a service to manage SSL certificates
func NewService ¶
func NewService(fileService portainer.FileService, dataStore dataservices.DataStore, shutdownTrigger context.CancelFunc) *Service
NewService returns a pointer to a new Service
func (*Service) GetRawCertificate ¶
func (service *Service) GetRawCertificate() *tls.Certificate
GetRawCertificate gets the raw certificate
func (*Service) GetSSLSettings ¶
func (service *Service) GetSSLSettings() (*portainer.SSLSettings, error)
GetSSLSettings gets the certificate info
func (*Service) SetCertificates ¶
SetCertificates sets the certificates
func (*Service) SetHTTPEnabled ¶
Click to show internal directories.
Click to hide internal directories.