config

package
v0.0.0-...-752f67b Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ApplicationName = "gophercnc"

	Logger log.Logger
)

Functions

func ActivateLibrary

func ActivateLibrary(name string) error

func ActivateMachine

func ActivateMachine(name string) error

func AddLibrary

func AddLibrary(name, path string) error

func AddMachine

func AddMachine(name, path string) error

func Close

func Close() error

func Get

func Get(uri string) (string, error)

func LibraryCachePath

func LibraryCachePath() string

func Load

func Load() error

func MachineCachePath

func MachineCachePath() string

Machine-related Sweets

func RemoveLibrary

func RemoveLibrary(name string) error

func RemoveMachine

func RemoveMachine(name string) error

func Reset

func Reset() error

func Set

func Set(uri, data string) error

func Unset

func Unset(uri string) error

Types

type ConfigOption

type ConfigOption struct {
	Uri  string
	Data string
}

func GetAll

func GetAll() ([]ConfigOption, error)

type Machine

type Machine struct {
	Name string
	Path string
}

type Resource

type Resource struct {
	Name string
	Path string
}

func ActiveLibrary

func ActiveLibrary() (Resource, error)

func ActiveMachine

func ActiveMachine() (Resource, error)

func GetLibrary

func GetLibrary(name string) (Resource, error)

func GetMachine

func GetMachine(name string) (Resource, error)

func Libraries

func Libraries() ([]Resource, error)

func Machines

func Machines() ([]Resource, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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