client

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package client contains the client implementation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTraefikConfig

func BuildTraefikConfig(containers []container.Summary, hostIP string) ([]byte, error)

BuildTraefikConfig parses labels into a Traefik dynamic config and returns it as JSON

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg *config.Config) *Client

func (*Client) Connect

func (c *Client) Connect(ctx context.Context)

Connect starts the persistent connection and reconnect loop

type UpdateRequest

type UpdateRequest struct {
	Env    string          `json:"env"`
	Name   string          `json:"name"`
	Config json.RawMessage `json:"config"`
}

type Watcher

type Watcher struct {
	// contains filtered or unexported fields
}

func NewWatcher

func NewWatcher(cfg *config.Config) (*Watcher, error)

func (*Watcher) Start

func (w *Watcher) Start(ctx context.Context)

Jump to

Keyboard shortcuts

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