options

package
v0.0.0-...-591e5d3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthByname

func GetAuthByname(name string) (Auth, error)

func GetAuths

func GetAuths() (Auths, map[string]Auth)

func GetCfg

func GetCfg() Cfg

func GetHostgroupByname

func GetHostgroupByname(name string) (Hostgroup, error)

func GetHostgroups

func GetHostgroups() (Hostgroups, map[string]Hostgroup)

func GetTasks

func GetTasks() Tasks

func IsCommandlineMode

func IsCommandlineMode() bool

func IsScriptMode

func IsScriptMode() bool

func SetEnv

func SetEnv(ce CurrentEnv) error

Types

type CurrentEnv

type CurrentEnv struct {
	Hostgroupname string
	Authname      string
	Port          int
}

func LoadEnv

func LoadEnv() CurrentEnv

type Options

type Options struct {
	Cfg Cfg

	Hostgroups  Hostgroups
	Hostgroupsm map[string]Hostgroup

	Auths  Auths
	Authsm map[string]Auth

	Tasks  Tasks
	Values map[string]interface{}

	IsScriptMode      bool
	IsCommandlineMode bool

	CurrentEnv CurrentEnv

	Line string
}

func New

func New() *Options

Jump to

Keyboard shortcuts

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