Documentation ¶
Index ¶
Constants ¶
View Source
const ( AnnoDescription = "ingress-dashboard/description" AnnoLogoURL = "ingress-dashboard/logo-url" AnnoTitle = "ingress-dashboard/title" AnnoHide = "ingress-dashboard/hide" // do not display ingress in dashboard AnnoURL = "ingress-dashboard/url" // custom ingress URL (could be used with load-balancers or reverse-proxies) AnnoAssumeTLS = "ingress-dashboard/assume-tls" // force protocol as HTTPS (for SSL termination on load-balancers) )
View Source
const (
SoonExpiredInterval = 14 * 24 * time.Hour // 2 weeks
)
Variables ¶
This section is empty.
Functions ¶
func WatchKubernetes ¶
func WatchKubernetes(global context.Context, clientset kubernetes.Interface, receiver interface { Set(ingresses []Ingress) })
Types ¶
type Ingress ¶
type Ingress struct { ID string `yaml:"-"` // human readable ID (namespace with name) UID string `yaml:"-"` // machine readable ID (guid in Kube) Title string `yaml:"-"` // custom title in dashboard, overwrites Name Name string `yaml:"name"` // ingress name as in Kube Namespace string `yaml:"namespace"` // Kube namespace for ingress Description string `yaml:"description"` // optional, human-readable description of Ingress Hide bool `yaml:"-"` // hidden Ingresses will not appear in UI LogoURL string `yaml:"logo_url"` // custom URL for icon Class string `yaml:"-"` // Ingress class Static bool `yaml:"-"` Refs []Ref `yaml:"-"` TLS bool `yaml:"-"` Cert CertInfo `yaml:"-"` }
func LoadDefinitions ¶ added in v0.0.4
LoadDefinitions scans location (file or dir) for YAML/JSON (.yml, .yaml, .json) definitions of Ingress. Directories scanned recursive and each file can contain multiple definitions.
Empty location is a special case and cause returning empty slice.
func (Ingress) HasDeadRefs ¶ added in v0.1.0
func (Ingress) IsTLSExpired ¶ added in v0.1.0
func (Ingress) IsTLSSoonExpire ¶ added in v0.1.0
func (Ingress) WhenTLSExpires ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.