lib

package
v0.0.0-...-b0b1d78 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllConfigs

func GetAllConfigs(configFolder string) ([]string, error)

func SwitchConfig

func SwitchConfig(configFolder string, config string) error

func SwitchOffConfigs

func SwitchOffConfigs(configFolder string) error

func SwitchOffGivenConfigs

func SwitchOffGivenConfigs(configs []string) error

func SwitchToOffsetConfig

func SwitchToOffsetConfig(configFolder string, offset int) error

func SwitchToOffsetGivenConfig

func SwitchToOffsetGivenConfig(configFolder string, configs []string, offset int) error

func SwitchToRandomConfig

func SwitchToRandomConfig(configFolder string) error

func SwitchToRandomGivenConfig

func SwitchToRandomGivenConfig(configFolder string, configs []string) error

Types

type Config

type Config struct {
	Name string
	File string
}

type FailedConfigError

type FailedConfigError struct {
	FailedConfigs []Config
}

func (*FailedConfigError) Error

func (c *FailedConfigError) Error() string

type Status

type Status struct {
	ActiveConfigs []Config
}

func DetermineStatus

func DetermineStatus(configFolder string) (Status, error)

Jump to

Keyboard shortcuts

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