Documentation ¶
Index ¶
- func GenerateEtcHostsContent(ctx context.Context, hostname string) string
- func GenerateResolvConfContent(ctx context.Context, searches, servers, options []string) (_ string, err error)
- func InstanceIDToName(ctx context.Context, id string) (_ string, err error)
- func MergeValues(first, second []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateEtcHostsContent ¶
GenerateEtcHostsContent generates a /etc/hosts file based on `hostname`.
func GenerateResolvConfContent ¶
func GenerateResolvConfContent(ctx context.Context, searches, servers, options []string) (_ string, err error)
GenerateResolvConfContent generates the resolv.conf file content based on `searches`, `servers`, and `options`.
func InstanceIDToName ¶
InstanceIDToName converts from the given instance ID (a GUID generated on the Windows host) to its corresponding interface name (e.g. "eth0").
Will retry the operation until `ctx` is exceeded or canceled.
func MergeValues ¶
MergeValues merges `first` and `second` maintaining order `first, second`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.