myconfstate

package
v0.0.0-...-c412558 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Example myconfstate

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDir

func GetDir(p string) (string, error)

GetDir Accessor for GetDir(Not required)

func Load

func Load(cf string) error

Load Initalize and load

func Save

func Save() error

Save States file

Types

type Configs

type Configs struct {
	StatesFile string   `yaml:"states_file"`
	Key1       string   `yaml:"key_1"`
	Key2       string   `yaml:"key_2"`
	Key3       string   `yaml:"key_3"`
	Users      []string `yaml:"users"`
}

Configs file structure

func C

func C() *Configs

C Accessor for Configs

type States

type States struct {
	Passwords map[string]string `json:"passwords"`
}

States file structure

func S

func S() *States

S Accessor for States

Jump to

Keyboard shortcuts

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