Documentation ¶
Index ¶
- Variables
- func ConfDir() string
- func ConfFilePath() string
- func CustomConfigByName(name string) (*cmdInfo, error)
- func GetConfig() (*os.File, error)
- func OpenConfDir() error
- func SSHConfigByName(sshName string) (internal.SSHConfig, error)
- func WritStringToConfig(d string) (*os.File, error)
- func WritTomlToConfig(v interface{}) error
- type AppConfig
- type Info
- type InfoCollection
- type InfoIterator
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NotExistErr = errors.New("config not exist")
)
Functions ¶
func ConfFilePath ¶
func ConfFilePath() string
func CustomConfigByName ¶
func OpenConfDir ¶
func OpenConfDir() error
func WritTomlToConfig ¶
func WritTomlToConfig(v interface{}) error
Types ¶
type AppConfig ¶
type AppConfig struct { SSHInfo sshInfoList `toml:"sshInfo"` CmdInfo cmdInfoList `toml:"cmdInfo"` // contains filtered or unexported fields }
var AppConf *AppConfig
func ParseConfig ¶
func (*AppConfig) ConfigByName ¶
type InfoCollection ¶
type InfoCollection interface {
GetIterator() InfoIterator
}
type InfoIterator ¶
Click to show internal directories.
Click to hide internal directories.