Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ConfigDirName - Directory name containing config files
ConfigDirName = "configs"
)
View Source
const (
// SliverClientDirName - Directory storing all of the client configs/logs
SliverClientDirName = ".sliver-client"
)
Variables ¶
This section is empty.
Functions ¶
func GetConfigs ¶
func GetConfigs() map[string]*ClientConfig
GetConfigs - Returns a list of available configs
func GetRootAppDir ¶
func GetRootAppDir() string
GetRootAppDir - Get the Sliver app dir ~/.sliver-client/
Types ¶
type ClientConfig ¶
type ClientConfig struct { Operator string `json:"operator"` // This value is actually ignored for the most part (cert CN is used instead) LHost string `json:"lhost"` LPort int `json:"lport"` CACertificate string `json:"ca_certificate"` PrivateKey string `json:"private_key"` Certificate string `json:"certificate"` }
ClientConfig - Client JSON config
func ReadConfig ¶
func ReadConfig(confFilePath string) (*ClientConfig, error)
ReadConfig - Load config into struct
Click to show internal directories.
Click to hide internal directories.