dockerlog

package
v0.0.0-...-9f37908 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForNewDockers

func CheckForNewDockers(logsChan chan storage.DockerLog, dockersIDs *[]string, dockersToSkip string) (err error)

CheckForNewDockers checks if new dockers are created

func ReadLog

func ReadLog(container Docker, logsChan chan storage.DockerLog)

ReadLog open log file, start monitoring and send to logs channel

Types

type Docker

type Docker struct {
	Id          string `json:"id"`
	Image       string `json:"image"`
	Status      string `json:"status"`
	State       string `json:"state"`
	Description string `json:"description"`
}

Docker object

func GetAllDockers

func GetAllDockers(dockersToSkip string) ([]Docker, error)

GetAllDockers get all existing dockers

type RawLog

type RawLog struct {
	LogText string    `json:"log"`
	Stream  string    `json:"stream"`
	Time    time.Time `json:"time"`
}

RawLog log from docker

Jump to

Keyboard shortcuts

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