crosconfig

package
v0.0.0-...-683b059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package crosconfig provides methods for using the cros_config command line utility. See https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/chromeos-config for more information about cros_config.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(ctx context.Context, path, prop string) (string, error)

Get returns the given property as a string if it is set and returns an empty string if it is not.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns true if the given error is of type errNotFound.

Types

type ErrNotFound

type ErrNotFound struct {
	*errors.E
}

ErrNotFound describes an error encountered when a property is not found by cros_config.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL