{"modulePath":"github.com/GoogleCloudPlatform/sql-server-agent","version":"v0.0.0-20261117191239-595af8526327","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package instanceinfo\n\nPackage instanceinfo provides functionality for interfacing with the compute API.\n\n## Functions\n\n```go\nfunc DeviceType(diskType string) string\n```\nDeviceType returns a formatted device type for a given disk type and name. The returned device type will be formatted as: \"LOCAL-SSD\" or \"PERSISTENT-SSD\". \"OTHER\" if another disk type\n\n## Types\n\n```go\ntype Disks struct {\n\tDeviceName string\n\tDiskType   string\n\tMapping    string\n}\n```\nDisks contains information about a device name and the disk type\n\n```go\ntype Reader struct {\n\t// contains filtered or unexported fields\n}\n```\nReader handles the retrieval of instance properties from a compute client instance.\n\n```go\nfunc New(gceService gceInterface) *Reader\n```\nNew instantiates a Reader with default instance properties.\n\n```go\nfunc NewReader(gceService gceInterface) *Reader\n```\nNewReader instantiates a Reader with gceService\n\n```go\nfunc (r *Reader) AllDisks(ctx context.Context, projectID, zone, instanceID string) ([]*Disks, error)\n```\nAllDisks returns all possible disks with data from compute instance call Returns nil with error if the service account is missing Compute Viewer IAM role.\n\n","path":"github.com/GoogleCloudPlatform/sql-server-agent/internal/instanceinfo","name":"instanceinfo","synopsis":"Package instanceinfo provides functionality for interfacing with the compute API.","isRedistributable":true}
