Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteDefaultConfig ¶
Types ¶
type Config ¶
type Config struct {
ConfigFilePath string `json:"-"`
InstanceName string
Control ControlConfig
Ssh SshConfig
VcsCmd string
VcsRoot string
}
func (*Config) SshHostPrivateKeyByte ¶
type ControlConfig ¶
type SshConfig ¶
type SshConfig struct {
BindNetwork string
HostPrivateKeyPath string
Users map[string]*UserConfig //key = username
// contains filtered or unexported fields
}
type UserConfig ¶
type UserConfig struct {
PublicKey []string
AllowPaths []Path
DenyPaths []string
// contains filtered or unexported fields
}
func (*UserConfig) AllowPath ¶
func (uc *UserConfig) AllowPath(p string) (inAllow, readOnly bool)
func (*UserConfig) Auth ¶
func (uc *UserConfig) Auth(pubkey []byte) bool
Click to show internal directories.
Click to hide internal directories.