Documentation
¶
Index ¶
- Constants
- func NewWebHelpDeskDestination(destinationConfig internal.DestinationConfig) (internal.Destination, error)
- type User
- type WebHelpDesk
- func (w *WebHelpDesk) ApplyChangeSet(changes internal.ChangeSet, eventLog chan<- internal.EventLogItem) internal.ChangeResults
- func (w *WebHelpDesk) CreateUser(person internal.Person, counter *uint64, wg *sync.WaitGroup, ...)
- func (w *WebHelpDesk) ForSet(syncSetJson json.RawMessage) error
- func (w *WebHelpDesk) ListUsers(desiredAttrs []string) ([]internal.Person, error)
- func (w *WebHelpDesk) UpdateUser(person internal.Person, counter *uint64, wg *sync.WaitGroup, ...)
Constants ¶
View Source
const ClientsAPIPath = "/ra/Clients"
View Source
const DefaultBatchDelaySeconds = 60
View Source
const DefaultBatchSize = 50
View Source
const DefaultListClientsPageLimit = 100
Variables ¶
This section is empty.
Functions ¶
func NewWebHelpDeskDestination ¶
func NewWebHelpDeskDestination(destinationConfig internal.DestinationConfig) (internal.Destination, error)
Types ¶
type User ¶
type User struct { ID int `json:"id,omitempty"` FirstName string `json:"firstName"` LastName string `json:"lastName"` Email string `json:"email"` Username string `json:"username"` }
In WebHelpDesk the basic user is called a "Client", so this is not an API Client
type WebHelpDesk ¶
type WebHelpDesk struct { URL string Username string Password string ListClientsPageLimit int BatchSize int BatchDelaySeconds int }
func (*WebHelpDesk) ApplyChangeSet ¶
func (w *WebHelpDesk) ApplyChangeSet( changes internal.ChangeSet, eventLog chan<- internal.EventLogItem) internal.ChangeResults
func (*WebHelpDesk) CreateUser ¶
func (w *WebHelpDesk) CreateUser( person internal.Person, counter *uint64, wg *sync.WaitGroup, eventLog chan<- internal.EventLogItem)
func (*WebHelpDesk) ForSet ¶
func (w *WebHelpDesk) ForSet(syncSetJson json.RawMessage) error
func (*WebHelpDesk) ListUsers ¶
func (w *WebHelpDesk) ListUsers(desiredAttrs []string) ([]internal.Person, error)
func (*WebHelpDesk) UpdateUser ¶
func (w *WebHelpDesk) UpdateUser( person internal.Person, counter *uint64, wg *sync.WaitGroup, eventLog chan<- internal.EventLogItem)
Click to show internal directories.
Click to hide internal directories.