generate

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src, dst string) error

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

func GenerateFiles(rootNodes ...p2p.IpAddress) (err error)

GenerateFiles Generates all the files needed to setup P2PRC

func GenerateIPTableFile

func GenerateIPTableFile(rootNodes []p2p.IpAddress) (err error)

GenerateIPTableFile Generates the IPTable file with the appropirate root node

func GeneratePluginDirectory

func GeneratePluginDirectory() (err error)

GeneratePluginDirectory Generates plugin directory structure

func GetCurrentPath

func GetCurrentPath() (string, error)

GetCurrentPath Getting P2PRC Directory from environment variable

func GetPathP2PRC

func GetPathP2PRC() (string, error)

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

func SetEnvName(EnvName string) error

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.

Jump to

Keyboard shortcuts

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