ssl

package
v0.0.0-...-270f78c Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Zlib Imports: 9 Imported by: 0

Documentation

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 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) Init

func (service *Service) Init(host, certPath, keyPath string) error

Init initializes the service

func (*Service) SetCertificates

func (service *Service) SetCertificates(certData, keyData []byte) error

SetCertificates sets the certificates

func (*Service) SetHTTPEnabled

func (service *Service) SetHTTPEnabled(httpEnabled bool) error

Jump to

Keyboard shortcuts

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