dozzle

package
v0.97.8 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package dozzle implements the Dozzle Docker log viewer provider (health-only MVP).

Index

Constants

View Source
const (
	ID          = "dozzle"
	EndpointKey = "endpoint"
	UsernameKey = "username"
	PasswordKey = "password"
	TokenKey    = "token"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dozzle

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

Dozzle is an HTTP client for Dozzle health/version endpoints.

func GetClient

func GetClient() *Dozzle

GetClient builds a Dozzle client from vendors.dozzle config. Returns nil when endpoint is not configured.

func NewDozzle

func NewDozzle(endpoint, username, password, token string) *Dozzle

NewDozzle creates a Dozzle client with optional Basic or Bearer auth. Returns nil when endpoint is empty.

func (*Dozzle) Health

func (d *Dozzle) Health(ctx context.Context) error

Health reports whether Dozzle /healthcheck returns 2xx.

func (*Dozzle) Version

func (d *Dozzle) Version(ctx context.Context) (*VersionInfo, error)

Version returns the Dozzle version string from /api/version.

type VersionInfo

type VersionInfo struct {
	Version string `json:"version"`
}

VersionInfo holds Dozzle version text from /api/version.

Jump to

Keyboard shortcuts

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