config

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFilesToArray

func AddFilesToArray(value string, array *[]string)

func FileValues

func FileValues(pattern string, array *[]string, peek int)

func FindRegex

func FindRegex(data []byte, expresssion string, array *[]string)

func ParsePorts

func ParsePorts(ports []string, array *[]string, peek int)

func ParseRanges

func ParseRanges(p string, array *[]string, peek int) bool

func PipeInput

func PipeInput(value string, array *[]string) bool

func PrintFunc

func PrintFunc(k string, v []string, search string)

func RawFileValues

func RawFileValues(pattern string, allLines map[string]bool)

func RawInput

func RawInput(value string, array *[]string) bool

func URLValues

func URLValues(url string, array *[]string)

Types

type Config

type Config struct {
	ConfigInfo       string
	Ingredients      map[string]map[string][]string
	CheckIngredients map[string][]string
	InputFile        map[string]bool
	HomeFolder       string
	ReConfigure      bool
	ConfigPath       string
	CachePath        string
	IngredientsPath  string
	Peek             int
	Verbose          bool
	// contains filtered or unexported fields
}

func (*Config) CheckFileCache

func (conf *Config) CheckFileCache(filename string, files []string)

Checking if file's cache present

func (*Config) CheckYaml

func (conf *Config) CheckYaml(p string, array *[]string) bool

func (*Config) CookConfig

func (conf *Config) CookConfig()

func (*Config) FileRegex

func (conf *Config) FileRegex(file string, expresssion string, array *[]string)

func (*Config) FirstRun

func (conf *Config) FirstRun()

First Run

func (*Config) GetData

func (conf *Config) GetData(url string) []byte

Return data from url

func (*Config) ParseFile

func (conf *Config) ParseFile(param string, value string, array *[]string) bool

func (*Config) ParseFunc

func (conf *Config) ParseFunc(value string, array *[]string) bool

Checking for functions

func (*Config) RawFileRegex

func (conf *Config) RawFileRegex(files []string, expresssion string, array *[]string)

func (*Config) UpdateCache

func (conf *Config) UpdateCache()

func (*Config) UpdateDb

func (conf *Config) UpdateDb()

Updating cook's database

func (*Config) VPrint

func (conf *Config) VPrint(msg string)

Jump to

Keyboard shortcuts

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