celigo

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

Functions

This section is empty.

Types

type Client

type Client struct {
	uhttp.BaseHttpClient
	// contains filtered or unexported fields
}

func New

func New(accessToken string, region Region, httpClient *http.Client) (*Client, error)

func (*Client) ListIntegrations

func (c *Client) ListIntegrations(ctx context.Context, nextPageLink string) ([]Integration, string, *http.Response, error)

func (*Client) ListIntegrationsUsers

func (c *Client) ListIntegrationsUsers(ctx context.Context, integrationId, nextPageLink string) ([]User, string, *http.Response, error)

func (*Client) ListUsers

func (c *Client) ListUsers(ctx context.Context, nextPageLink string) ([]User, string, *http.Response, error)

func (*Client) UpdateAccessLevelOnUser

func (c *Client) UpdateAccessLevelOnUser(ctx context.Context, userId, accessLevel string) (*http.Response, error)

type Integration

type Integration struct {
	Id          string `json:"_id"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type IntegrationsAccessLevel

type IntegrationsAccessLevel struct {
	AccessLevel   string `json:"accessLevel"`
	IntegrationId string `json:"_integrationId"`
}

type Region

type Region int

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

type UserDetails struct {
	Email             string `json:"email"`
	AllowedToResetMFA bool   `json:"allowedToResetMFA"`
	AccountSSOLinked  string `json:"accountSSOLinked"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL