Documentation ¶
Index ¶
- Constants
- Variables
- func ABSPath(path string) string
- func CopyFile(source string, destination string) error
- func Exists(files ...string) bool
- func ExternIp() string
- func GetCurrentDir() string
- func GetDefaultClusterDNSIP(clusterIpRange *net.IPNet) net.IP
- func GetDefaultServiceIp(clusterIpRange *net.IPNet) net.IP
- func GetHomeDir() string
- func GetIndexedIP(subnet *net.IPNet, index int) (net.IP, error)
- func NoValueString(s ...string) bool
- func NotExists(files ...string) bool
- func QueryIps() []net.IP
- func RemoveRepeatIps(ips []net.IP) []net.IP
- func ReplaceCurrent(raw []byte) []byte
- func ReplaceHome(raw []byte) []byte
Constants ¶
View Source
const ReservedNodeToken = "reserverd"
Variables ¶
View Source
var HomePath string = GetHomeDir()
View Source
var LocalHostDNSName = "localhost"
View Source
var LocalIPs = QueryIps()
View Source
var LocalPath string = GetCurrentDir()
View Source
var LocalhostIP = net.ParseIP("127.0.0.1")
View Source
var _, NetworkControllerCIDR, _ = net.ParseCIDR("10.1.1.0/24")
Functions ¶
func GetCurrentDir ¶
func GetCurrentDir() string
func GetHomeDir ¶
func GetHomeDir() string
func NoValueString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.