Documentation
¶
Index ¶
- Variables
- func TokenResponseToSessionData(token *api.TokenResponse) session.Data
- type APIError
- type AuthTransport
- type Client
- func (c *Client) CreateDeviceCode(ctx context.Context, clientName string) (*api.DeviceCode, error)
- func (c *Client) CreateNetworkDevice(ctx context.Context, body api.NetworkDeviceWrite) (*api.NetworkDevice, error)
- func (c *Client) CreateVlan(ctx context.Context, body api.VlanWrite) (*api.Vlan, error)
- func (c *Client) DeleteNetworkDevice(ctx context.Context, id string) error
- func (c *Client) DeleteVlan(ctx context.Context, vlanID int32) error
- func (c *Client) ExchangeDeviceCode(ctx context.Context, deviceCode string) (*api.TokenResponse, error)
- func (c *Client) GetProfile(ctx context.Context) (*api.Profile, error)
- func (c *Client) ListNetworkDevices(ctx context.Context) ([]api.NetworkDevice, error)
- func (c *Client) ListSessions(ctx context.Context, all bool, limit, offset int32) (*api.AuthSessionPage, error)
- func (c *Client) ListVlans(ctx context.Context) ([]api.Vlan, error)
- func (c *Client) Logout(ctx context.Context, refreshToken string) error
- func (c *Client) RevokeAllSessions(ctx context.Context, all bool) error
- func (c *Client) RevokeSession(ctx context.Context, id string, all bool) error
- func (c *Client) UpdateNetworkDevice(ctx context.Context, id string, body api.NetworkDevicePatch) (*api.NetworkDevice, error)
- func (c *Client) UpdateVlan(ctx context.Context, vlanID int32, body api.VlanPatch) (*api.Vlan, error)
- type ClientAuthError
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrForbidden = errors.New("forbidden")
Functions ¶
func TokenResponseToSessionData ¶
func TokenResponseToSessionData(token *api.TokenResponse) session.Data
Types ¶
type AuthTransport ¶
type AuthTransport struct {
// contains filtered or unexported fields
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateDeviceCode ¶
func (*Client) CreateNetworkDevice ¶
func (c *Client) CreateNetworkDevice(ctx context.Context, body api.NetworkDeviceWrite) (*api.NetworkDevice, error)
func (*Client) CreateVlan ¶
func (*Client) DeleteNetworkDevice ¶
func (*Client) ExchangeDeviceCode ¶
func (*Client) ListNetworkDevices ¶
func (*Client) ListSessions ¶
func (*Client) RevokeAllSessions ¶
func (*Client) RevokeSession ¶
func (*Client) UpdateNetworkDevice ¶
func (c *Client) UpdateNetworkDevice(ctx context.Context, id string, body api.NetworkDevicePatch) (*api.NetworkDevice, error)
type ClientAuthError ¶
func (ClientAuthError) Error ¶
func (e ClientAuthError) Error() string
Click to show internal directories.
Click to hide internal directories.