Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ConfigVersion specifies the current config version ConfigVersion = 1 // DefaultConfigFile is the default file where blessclient will look for its config DefaultConfigFile = "~/.blessclient/config.yml" )
Variables ¶
This section is empty.
Functions ¶
func GetOrCreateConfigPath ¶ added in v0.7.0
Types ¶
type Bastion ¶
type Bastion struct { Host `yaml:",inline"` Hosts []Host `yaml:"hosts"` IdentityFile string `yaml:"identity_file"` SSHExecCommand *SSHExecCommand `yaml:"ssh_exec_command,omitempty"` }
Bastion is an internet accessibly server used to "jump" to other servers
type ClientConfig ¶
type Config ¶
type Config struct { // Version versions this config Version int `yaml:"version"` // ClientConfig has configuration related to blessclient ClientConfig ClientConfig `yaml:"client_config"` // LambdaConfig holds configuration around the bless lambda LambdaConfig LambdaConfig `yaml:"lambda_config"` // For convenience, you can bundle an ~/.ssh/config template here SSHConfig *SSHConfig `yaml:"ssh_config,omitempty"` }
Config is a blessclient config
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig generates a config with some defaults
type Host ¶
type Host struct { Pattern string `yaml:"pattern"` User string `yaml:"user"` LocalForwardPorts map[uint16]uint16 `yaml:"local_forward_ports,omitempty"` }
Host represents a Host block in an ssh config
type LambdaConfig ¶
type LambdaConfig struct { // Bless lambda function name FunctionName string `yaml:"function_name"` // Bless lambda function version (lambda alias or version qualifier) FunctionVersion *string `yaml:"function_version,omitempty"` // bless lambda regions Regions []Region `yaml:"regions,omitempty"` }
LambdaConfig is the lambda config
type Region ¶
type Region struct { // name of the aws region (us-west-2) AWSRegion string `yaml:"aws_region"` }
Region is an aws region that contains an aws lambda
type SSHConfig ¶
type SSHConfig struct {
Bastions []Bastion `yaml:"bastions"`
}
SSHConfig is an SSH config We make some assumptions here around the structure of the machines A bastion is internet accessible and can be used to reach other machines
type SSHExecCommand ¶ added in v0.4.1
type SSHExecCommand string
SSHExecCommand is a command to execute on successful ssh match
func (*SSHExecCommand) String ¶ added in v0.4.1
func (ec *SSHExecCommand) String() string
String gets the value of this exec command
Click to show internal directories.
Click to hide internal directories.