Documentation ¶
Index ¶
- func ExecuteRequest(ctx context.Context, hc *http.Client, req *http.Request, value proto.Message) error
- func GetHostname(d *lab.ChromeOSDevice) string
- func GetLocation(input string) (loc *fleet.Location)
- func GetMacHostMappingFromDHCPConf(ctx context.Context) (map[string]string, error)
- func SanitizeChopsAsset(a []*ca.ChopsAsset) []*ca.ChopsAsset
- type HTTPError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteRequest ¶
func GetHostname ¶
func GetHostname(d *lab.ChromeOSDevice) string
GetHostname returns the hostname of input ChromeOSDevice.
func GetLocation ¶
GetLocation attempts to parse the input string and return a Location object. Default location is updated with values from the string. This is done because the barcodes do not specify the complete location of the asset
func GetMacHostMappingFromDHCPConf ¶
GetMacHostMappingFromDHCPConf downloads the dhcp conf from chromeos-admin repo. Parses the file and returns Mac:Hostname mapping
func SanitizeChopsAsset ¶
func SanitizeChopsAsset(a []*ca.ChopsAsset) []*ca.ChopsAsset
SanitizeChopsAsset removes all the trailing and leading whitespaces in all ChopsAsset proto string fields in the input slice
Types ¶
Click to show internal directories.
Click to hide internal directories.