events

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WatchForTraefikContainer

func WatchForTraefikContainer(watcher *visitor.Watcher, events *event.Events) error

Types

type Client

type Client struct {
	Events *event.Events
	// contains filtered or unexported fields
}

Client for traefik API

func New

func New(address, username, password string, projects *_projects.Projects) (*Client, error)

New Client

func (*Client) Wait

func (c *Client) Wait()

Wait for getting initial traefik state

func (*Client) WatchBackends

func (c *Client) WatchBackends() error

WatchBackends watch traefik's backends It's polling : forever loop + wait Events are diff between current and last state.

Jump to

Keyboard shortcuts

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