Renaming PortConf to PortProfile; cleanup Device API func names
This commit is contained in:
committed by
Paul Tyng
parent
4b8ec1e2f8
commit
6203ee9620
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user