config

package
v0.0.0-...-754b2dd Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChildCommonConfig

type ChildCommonConfig struct {
	Prepend string
}

type ChildConfig

type ChildConfig struct {
	Type string

	Cd struct {
		ChildCommonConfig
		Dir string
	}
	Alias struct {
		ChildCommonConfig
		Target string
	}
	Ssh struct {
		ChildCommonConfig
		Host string
	}
	Ec2 struct {
		ChildCommonConfig
		Instance string
	}
	Shell struct {
		ChildCommonConfig
		Command string
	}
}

func LoadChildConfig

func LoadChildConfig(filename string) (*ChildConfig, error)

func (*ChildConfig) Common

func (cc *ChildConfig) Common() *ChildCommonConfig

type Ec2HostConfig

type Ec2HostConfig struct {
	SshCommonConfig
	Access_Key string
	Secret_Key string
	Region     string
	Name       string
}

type HostConfig

type HostConfig struct {
	Shell ShellConfig
	Ssh   map[string]*SshHostConfig
	Ec2   map[string]*Ec2HostConfig
}

func LoadHostConfig

func LoadHostConfig() (*HostConfig, error)

type ShellConfig

type ShellConfig struct {
	Rcfile    string
	No_Search bool
}

type SshCommonConfig

type SshCommonConfig struct {
	User               string
	Proj_Path          string
	Forward_Agent      bool
	Ignore_Known_Hosts bool
}

type SshHostConfig

type SshHostConfig struct {
	SshCommonConfig
	Hostname string
}

Jump to

Keyboard shortcuts

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