From 14e88eece94cbf8ea99712ea3012213b2e20db7a Mon Sep 17 00:00:00 2001 From: James Stephenson Date: Fri, 21 Aug 2020 08:47:37 -0400 Subject: [PATCH] Expose `PortConf` ("port profiles") API --- unifi/port_conf.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 unifi/port_conf.go diff --git a/unifi/port_conf.go b/unifi/port_conf.go new file mode 100644 index 0000000..3adeb1b --- /dev/null +++ b/unifi/port_conf.go @@ -0,0 +1,25 @@ +package unifi + +import ( + "context" +) + +func (c *Client) ListPortConf(ctx context.Context, site string) ([]PortConf, error) { + return c.listPortConf(ctx, site) +} + +func (c *Client) GetPortConf(ctx context.Context, site, id string) (*PortConf, error) { + return c.getPortConf(ctx, site, id) +} + +func (c *Client) DeletePortConf(ctx context.Context, site, id string) error { + return c.deletePortConf(ctx, site, id) +} + +func (c *Client) CreatePortConf(ctx context.Context, site string, d *PortConf) (*PortConf, error) { + return c.createPortConf(ctx, site, d) +} + +func (c *Client) UpdatePortConf(ctx context.Context, site string, d *PortConf) (*PortConf, error) { + return c.updatePortConf(ctx, site, d) +}