assets

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: GPL-3.0 Imports: 10 Imported by: 23

README

Assets

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 GetConfigDir

func GetConfigDir() string

GetConfigDir - Returns the path to the config dir

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/

func SaveConfig

func SaveConfig(config *ClientConfig) error

SaveConfig - Save a config to disk

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

Jump to

Keyboard shortcuts

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