v0.3.2 Latest Latest

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

Go to latest
Published: Oct 14, 2016 License: MIT Imports: 6 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


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 Puller added in v0.3.0

type Puller interface {
	LoadAll() []Service

func NewPuller added in v0.3.0

func NewPuller() Puller

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

func (s *Service) ParseCertificate() bool

ParseCertificate parsed the encoded cert / key and stores them on the service

Jump to

Keyboard shortcuts

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