Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerPuller ¶ added in v0.3.0
type DockerPuller struct {
// contains filtered or unexported fields
}
func (*DockerPuller) LoadAll ¶ added in v0.3.0
func (p *DockerPuller) LoadAll() []Service
LoadAll queries docker for its service and parses the ones with correct labels
type Service ¶
type Service struct { URL string DNSName string Secure bool ForceTLS bool EncodedCert string EncodedKey string // contains filtered or unexported fields }
Service holds all metdata required to router to a Docker service
func NewService ¶
func NewService(name string, port int, dnsName string, secure bool, forceTLS bool, encodedCert string, encodedKey string) Service
NewService returns a new service instance
func (Service) Certificate ¶ added in v0.1.0
func (s Service) Certificate() tls.Certificate
Certificate returns a parsed TLS certificate/key pair
func (*Service) ParseCertificate ¶ added in v0.3.0
ParseCertificate parsed the encoded cert / key and stores them on the service
Click to show internal directories.
Click to hide internal directories.