Renaming PortConf to PortProfile; cleanup Device API func names

This commit is contained in:
James Stephenson
2020-10-07 08:58:59 -04:00
committed by Paul Tyng
parent 4b8ec1e2f8
commit 6203ee9620
6 changed files with 44 additions and 42 deletions

View File

@@ -8,7 +8,7 @@ func (c *Client) ListDevice(ctx context.Context, site string) ([]Device, error)
return c.listDevice(ctx, site)
}
func (c *Client) GetDevice(ctx context.Context, site, mac string) (*Device, error) {
func (c *Client) GetDeviceByMAC(ctx context.Context, site, mac string) (*Device, error) {
return c.getDevice(ctx, site, mac)
}
@@ -24,7 +24,7 @@ func (c *Client) UpdateDevice(ctx context.Context, site string, d *Device) (*Dev
return c.updateDevice(ctx, site, d)
}
func (c *Client) GetDeviceById(ctx context.Context, site, id string) (*Device, error) {
func (c *Client) GetDevice(ctx context.Context, site, id string) (*Device, error) {
devices, err := c.ListDevice(ctx, site)
if err != nil {