config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2017 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

Reader is able to read directories and files and return inputs for ssh-aliases compiler

func NewReader

func NewReader() *Reader

NewReader returns new instance of Reader

func (*Reader) ReadConfig

func (e *Reader) ReadConfig(file string) ([]compiler.ExpandingHostConfig, error)

ReadConfig processes the input file and returns inputs for ssh-aliases compiler

func (*Reader) ReadConfigs

func (e *Reader) ReadConfigs(dir string) ([]compiler.ExpandingHostConfig, error)

ReadConfigs processes the input directory and returns inputs for ssh-aliases compiler

type Scanner

type Scanner struct{}

Scanner is used to select files that contain ssh-aliases configs

func NewScanner

func NewScanner() *Scanner

NewScanner creates new instance of Scanner

func (*Scanner) ScanDirectory

func (s *Scanner) ScanDirectory(path string) ([]string, error)

ScanDirectory returns an array of file names that contain ssh-aliases configs

Jump to

Keyboard shortcuts

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