Documentation
¶
Overview ¶
Package metaflag sets command-line flags according to the metadata specified in a Google Compute Engine instance creation request.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init()
Init looks up each registered command-line flag in the Google Compute Engine instance metadata server to see if a value was specified in the instance creation request. If so, Init sets the flag to that value.
For example, if the instance request said --metadata x=y and there is a flag named x, metaflag.Init causes the flag x to be set to y.
The expected use is:
metadata.Init() flag.Parse()
to allow the instance creation request to set default flag values but still allow the command line to override those.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.