Documentation ¶
Index ¶
- func DoRequest(client *http.Client, u *url.URL, method string, path string, body []byte, ...) (int, []byte, error)
- func DoStreamRequest(client *http.Client, u *url.URL, method string, path string, in io.Reader, ...) (int, io.ReadCloser, error)
- func DockerPid(containername string) int
- func EtcdClientNew(endpoints []string) client.KeysAPI
- func GenerateRandomName(prefix string, size int) (string, error)
- func GetDockerNameFromID(ID string) string
- func GetEnv(data []byte) map[string]string
- func GetIfaceAddr(name string) (*net.IPNet, error)
- func GetNetworkMode(data []byte) string
- func MakeMac(ip net.IP) string
- func NewHTTPClient(u *url.URL, tlsConfig *tls.Config) *http.Client
- func ValidateHostIface(ifaceStr string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoStreamRequest ¶
func EtcdClientNew ¶
func GenerateRandomName ¶
GenerateRandomName returns a new name joined with a prefix. This size specified is used to truncate the randomly generated value
func GetDockerNameFromID ¶
func GetIfaceAddr ¶
Return the IPv4 address of a network interface
func GetNetworkMode ¶
func ValidateHostIface ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.