Documentation
¶
Index ¶
- func Copy(src, dst string) error
- func CreateIPTableFolderStructure() (err error)
- func GenerateClientTrackContainers() (err error)
- func GenerateDockerFiles() (err error)
- func GenerateFiles(rootNodes ...p2p.IpAddress) (err error)
- func GenerateIPTableFile(rootNodes []p2p.IpAddress) (err error)
- func GeneratePluginDirectory() (err error)
- func GetCurrentPath() (string, error)
- func GetPathP2PRC() (string, error)
- func SetDefaults(envName string, forceDefault bool, CustomConfig interface{}, ...) (*config.Config, error)
- func SetEnvName(EnvName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Copy ¶
Copy the src file to dst. Any existing file will be overwritten and will not copy file attributes. Source: https://stackoverflow.com/questions/21060945/simple-way-to-copy-a-file
func CreateIPTableFolderStructure ¶
func CreateIPTableFolderStructure() (err error)
CreateIPTableFolderStructure Create folder structure for IPTable
func GenerateClientTrackContainers ¶
func GenerateClientTrackContainers() (err error)
func GenerateDockerFiles ¶
func GenerateDockerFiles() (err error)
GenerateDockerFiles Generate default docker files
func GenerateFiles ¶
GenerateFiles Generates all the files needed to setup P2PRC
func GenerateIPTableFile ¶
GenerateIPTableFile Generates the IPTable file with the appropirate root node
func GeneratePluginDirectory ¶
func GeneratePluginDirectory() (err error)
GeneratePluginDirectory Generates plugin directory structure
func GetCurrentPath ¶
GetCurrentPath Getting P2PRC Directory from environment variable
func GetPathP2PRC ¶
GetPathP2PRC Getting P2PRC Directory from environment variable
func SetDefaults ¶
func SetDefaults(envName string, forceDefault bool, CustomConfig interface{}, NoBoilerPlate bool, ConfigUpdate ...*config.Config) (*config.Config, error)
SetDefaults This function to be called only during a make install
func SetEnvName ¶
SetEnvName Sets the environment name This is to ensure that the Path of your project is detected from your environment variable This is useful when extending the use case of P2PRC
Types ¶
This section is empty.