config

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package config implements the ConfigContainer structure and accompanying methods. It holds the configuration data for all utilities. Configuration file format is the same for all.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigContainer

type ConfigContainer struct {
	Prefix       string            // if this is set, then we prepend this path to all commands
	Binpaths     map[string]string // else, we specify one by one
	Tick         uint
	JobHist      ConfigJobHistContainer
	TemplateDirs []string
}

func NewConfigContainer

func NewConfigContainer() *ConfigContainer

func (*ConfigContainer) DumpConfig

func (cc *ConfigContainer) DumpConfig() string

func (*ConfigContainer) GetConfig

func (cc *ConfigContainer) GetConfig() error

Read & unmarshall configuration from 'name' file into configContainer structure

func (*ConfigContainer) GetTick

func (cc *ConfigContainer) GetTick() time.Duration

type ConfigJobHistContainer added in v1.0.5

type ConfigJobHistContainer struct {
	Starttime string
	Endtime   string
	Timeout   uint
}

Jump to

Keyboard shortcuts

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