Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) ListIntegrations(ctx context.Context, nextPageLink string) ([]Integration, string, *http.Response, error)
- func (c *Client) ListIntegrationsUsers(ctx context.Context, integrationId, nextPageLink string) ([]User, string, *http.Response, error)
- func (c *Client) ListUsers(ctx context.Context, nextPageLink string) ([]User, string, *http.Response, error)
- func (c *Client) UpdateAccessLevelOnUser(ctx context.Context, userId, accessLevel string) (*http.Response, error)
- type Integration
- type IntegrationsAccessLevel
- type Region
- type User
- type UserDetails
Constants ¶
View Source
const ( ManageAccessLevel = "manage" MonitorAccessLevel = "monitor" AdminAccessLevel = "administrator" )
View Source
const ( BaseEUUrl = "https://api.eu.integrator.io" BaseUrl = "https://api.integrator.io" USRegion Region = iota EURegion )
Variables ¶
View Source
var ( AccessLevels = []string{ManageAccessLevel, MonitorAccessLevel, AdminAccessLevel} IntegrationsAccessLevels = []string{ManageAccessLevel, MonitorAccessLevel} )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { uhttp.BaseHttpClient // contains filtered or unexported fields }
func (*Client) ListIntegrations ¶
func (*Client) ListIntegrationsUsers ¶
type Integration ¶
type IntegrationsAccessLevel ¶
type User ¶
type User struct { Id string `json:"_id"` AccessLevel string `json:"accessLevel"` IntegrationsAccessLevels []IntegrationsAccessLevel `json:"integrationAccessLevel"` AccountSSORequired bool `json:"accountSSORequired"` Details UserDetails `json:"sharedWithUser"` }
type UserDetails ¶
Click to show internal directories.
Click to hide internal directories.