google

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(csvPath string) *Client

func (*Client) GetAllDevices

func (c *Client) GetAllDevices() ([]Device, error)

type Device

type Device struct {
	Name       string `csv:"Name"`
	Email      string `csv:"Email"`
	OS         string `csv:"OS"`
	Type       string `csv:"Type"`
	LastSync   string `csv:"Last Sync"`
	FirstSync  string `csv:"First Sync"`
	DeviceName string `csv:"Device Name"`
	HostName   string `csv:"Host Name"`

	FirstSyncTime time.Time
	LastSyncTime  time.Time
}

Device is the struct returned by the CSV output at https://admin.google.com/ac/devices/list?default=true&category=desktop.

func (*Device) String

func (d *Device) String() string

Jump to

Keyboard shortcuts

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