config

package
v0.0.0-...-b21754d Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Frontend config.Frontend `yaml:"frontend"`
	Backend  struct {
		NetworkName string `yaml:"network_name"`
		Services    struct {
			Poll app.ServicePollerConfig `yaml:"poll"`
		} `yaml:"services"`
		Images struct {
			Poll app.ImagePollerConfig `yaml:"poll"`
		} `yaml:"images"`
		Volumes struct {
			Poll app.VolumePollerConfig `yaml:"poll"`
		} `yaml:"volumes"`
	} `yaml:"backend"`
	Parameters struct {
		LogLevel string `yaml:"log_level"`
	} `yaml:"parameters"`
}

func InitConfig

func InitConfig() *Config

type Container

type Container struct {
	DockerClient *client.Client
	Services     struct {
		Monitor    *monitor.Monitor
		Repository *repository.ServiceRepository
		Poller     *application.ServicePoller
	}
	Images struct {
		Monitor             *imgmonitor.Monitor
		Repository          *repository.ImageRepository
		Poller              *application.ImagePoller
		PollRequestsChannel chan bool
	}
	Volumes struct {
		Monitor             *vlmmonitor.Monitor
		Repository          *repository.VolumeRepository
		Poller              *application.VolumePoller
		PollRequestsChannel chan bool
	}
	Presentation struct {
		View struct {
			Renderer *view.Renderer
		}
		HTTP struct {
			Handlers struct {
				HomePageHandler      http.Handler
				ContainerKillHandler http.Handler
				ImageListHandler     http.Handler
				ImageRemoveHandler   http.Handler
				ImageRefreshHandler  http.Handler
				VolumeListHandler    http.Handler
				VolumeRefreshHandler http.Handler
			}
		}
	}
}

func InitContainer

func InitContainer() *Container

type Environment

type Environment struct {
	User               string `default:"developer"`
	CurrentContainerID string
}

func InitEnvironment

func InitEnvironment() *Environment

Jump to

Keyboard shortcuts

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