Versions in this module Expand all Collapse all v0 v0.0.2 Oct 6, 2022 Changes in this version + type AdditionalData struct + GraphData interface{} + LastSyncDate interface{} + Overview interface{} type AgentListFilter + PageQuery string + type Application struct + Details ApplicationDetails + type ApplicationDetails struct + AdditionalData AdditionalData + ApplicationType string + Category string + CreatedAt time.Time + Description interface{} + ID int64 + InstallationCount int + ManagedByID int64 + Name string + Notes interface{} + PublisherID int64 + Sources []interface{} + Status string + UpdatedAt time.Time + UserCount int + type ApplicationInstallationDetails struct + CreatedAt time.Time + DepartmentID int + ID int + InstallationDate time.Time + InstallationMachineID int + InstallationPath string + UpdatedAt time.Time + UserID int + Version string + type ApplicationInstallations struct + List []ApplicationInstallationDetails + type ApplicationListOptions struct + PageQuery string + func (opts *ApplicationListOptions) QueryString() string + type ApplicationService interface + Get func(context.Context, int64) (*ApplicationDetails, error) + List func(context.Context, QueryFilter) ([]ApplicationDetails, string, error) + ListInstallations func(context.Context, int64) ([]ApplicationInstallationDetails, error) + ListLicenses func(context.Context, int64) ([]LicensesDetails, error) + ListUsers func(context.Context, int64) ([]ApplicationUserDetails, error) + type ApplicationServiceClient struct + func (a *ApplicationServiceClient) Get(ctx context.Context, appID int64) (*ApplicationDetails, error) + func (a *ApplicationServiceClient) List(ctx context.Context, filter QueryFilter) ([]ApplicationDetails, string, error) + func (a *ApplicationServiceClient) ListInstallations(ctx context.Context, appID int64) ([]ApplicationInstallationDetails, error) + func (a *ApplicationServiceClient) ListLicenses(ctx context.Context, appID int64) ([]LicensesDetails, error) + func (a *ApplicationServiceClient) ListUsers(ctx context.Context, appID int64) ([]ApplicationUserDetails, error) + type ApplicationUserDetails struct + AllocatedDate time.Time + CreatedAt time.Time + FirstUsed time.Time + ID int + LastUsed time.Time + LicenseID int + Source string + UpdatedAt time.Time + UserID int + type ApplicationUsers struct + List []ApplicationUserDetails + type Applications struct + List []ApplicationDetails + type Asset struct + Details AssetDetails + type AssetDetails struct + AgentID int64 + AssetTag string + AssetTypeID int + AssignedOn time.Time + AuthorType string + CreatedAt time.Time + DepartmentID int64 + Description string + DisplayID int + ID int + Impact string + LocationID int64 + Name string + UpdatedAt time.Time + UsageType string + UserID int64 + type AssetEmbedOptions struct + Trashed bool + TypeFields bool + type AssetListOptions struct + Embed *AssetEmbedOptions + PageQuery string + SortBy *SortOptions + func (opts *AssetListOptions) QueryString() string + type AssetService interface + Get func(context.Context, int) (*AssetDetails, error) + List func(context.Context, QueryFilter) ([]AssetDetails, string, error) + type AssetServiceClient struct + func (a *AssetServiceClient) Get(ctx context.Context, assetID int) (*AssetDetails, error) + func (a *AssetServiceClient) List(ctx context.Context, filter QueryFilter) ([]AssetDetails, string, error) + type Assets struct + List []AssetDetails type Client + func (fs *Client) Applications() ApplicationService + func (fs *Client) Assets() AssetService + type Licenses struct + List []LicensesDetails + type LicensesDetails struct + ContractID string + CreatedTime time.Time + ID int + UpdatedTime time.Time v0.0.1 Feb 8, 2021 Changes in this version + const HighPriority + const LowPriority + const MediumPriority + const SourceAWSCloudwatch + const SourceChat + const SourceEmail + const SourceFeedbackWidget + const SourcePagerduty + const SourcePhone + const SourcePortal + const SourceSlack + const SourceWalkup + const SourceYammer + const TicketClosed + const TicketOpen + const TicketPending + const TicketResolved + const UrgentPriority + func HasNextPage(resp *http.Response) string + func Int(i int) *int + func ParseNextPage(rawURL string) string + func String(s string) *string + func StringInSlice(a string, list []string) bool + type Agent struct + Details AgentDetails + type AgentDetails struct + Active bool + Address string + BackgroundInformation string + CustomFields struct{ ... } + Email string + FirstName string + GroupIds []int + HasLoggedIn bool + ID int + JobTitle string + Language string + LastActiveAt time.Time + LastLoginAt time.Time + LastName string + LocationID int + MemberOf []int + MobilePhoneNumber string + ObserverOf []int + Occasional bool + ReportingManagerID int + RoleIds []int + Roles []AgentRole + ScoreboardLevelID int + TimeFormat string + TimeZone string + WorkPhoneNumber string + type AgentListFilter struct + Active bool + Email *string + Fulltime bool + MobilePhone *int + Occasional bool + WorkPhone *int + func (af *AgentListFilter) QueryString() string + type AgentRole struct + AssignmentScope string + Groups []int + RoleID int + func (ar *AgentRole) Validate() error + type AgentService interface + ConvertToRequester func(context.Context, int) (*AgentDetails, error) + Create func(context.Context, *AgentDetails) (*AgentDetails, error) + Deactivate func(context.Context, int) (*AgentDetails, error) + Delete func(context.Context, int) error + Get func(context.Context, int) (*AgentDetails, error) + List func(context.Context, QueryFilter) ([]AgentDetails, string, error) + Reactivate func(context.Context, int) (*AgentDetails, error) + Update func(context.Context, int, *AgentDetails) (*AgentDetails, error) + type AgentServiceClient struct + func (as *AgentServiceClient) ConvertToRequester(ctx context.Context, id int) (*AgentDetails, error) + func (as *AgentServiceClient) Create(ctx context.Context, ad *AgentDetails) (*AgentDetails, error) + func (as *AgentServiceClient) Deactivate(ctx context.Context, id int) (*AgentDetails, error) + func (as *AgentServiceClient) Delete(ctx context.Context, id int) error + func (as *AgentServiceClient) Get(ctx context.Context, id int) (*AgentDetails, error) + func (as *AgentServiceClient) List(ctx context.Context, filter QueryFilter) ([]AgentDetails, string, error) + func (as *AgentServiceClient) Reactivate(ctx context.Context, id int) (*AgentDetails, error) + func (as *AgentServiceClient) Update(ctx context.Context, id int, ad *AgentDetails) (*AgentDetails, error) + type Agents struct + List []AgentDetails + type Announcement struct + Details AnnouncementDetails + type AnnouncementDetails struct + AdditionalEmails []string + Body string + BodyHTML string + CreatedAt time.Time + CreatedBy int + Departments []int + Groups []int + IsRead bool + SendEmail bool + State string + Title string + UpdatedAt time.Time + Visibility string + VisibleFrom time.Time + VisibleTill time.Time + type AnnouncementListFilter struct + State string + func (af *AnnouncementListFilter) QueryString() string + type AnnouncementService interface + Create func(context.Context, *AnnouncementDetails) (*AnnouncementDetails, error) + Delete func(context.Context, int) error + Get func(context.Context, int) (*AnnouncementDetails, error) + List func(context.Context, QueryFilter) ([]AnnouncementDetails, error) + Update func(context.Context, int, *AnnouncementDetails) (*AnnouncementDetails, error) + type AnnouncementServiceClient struct + func (a *AnnouncementServiceClient) Create(ctx context.Context, details *AnnouncementDetails) (*AnnouncementDetails, error) + func (a *AnnouncementServiceClient) Delete(ctx context.Context, id int) error + func (a *AnnouncementServiceClient) Get(ctx context.Context, id int) (*AnnouncementDetails, error) + func (a *AnnouncementServiceClient) List(ctx context.Context, filter QueryFilter) ([]AnnouncementDetails, error) + func (a *AnnouncementServiceClient) Update(ctx context.Context, id int, details *AnnouncementDetails) (*AnnouncementDetails, error) + type Announcements struct + List []AnnouncementDetails + type Attachment struct + AttachmentURL string + ContentType string + CreatedAt time.Time + Name string + Size int + UpdatedAt time.Time + type BasicAuth struct + APIKey string + type BusinessHours struct + List []BusinessHoursConfig + type BusinessHoursConfig struct + Details BusinessHoursDetails + type BusinessHoursDetails struct + CreatedAt time.Time + Description string + ID int + IsDefault bool + ListOfHolidays []WorkdayHoliday + Name string + ServiceDeskHours ServiceDeskHours + TimeZone string + UpdatedAt time.Time + type BusinessHoursService interface + Get func(context.Context, int) (*BusinessHoursDetails, error) + List func(context.Context) ([]BusinessHoursConfig, error) + type BusinessHoursServiceClient struct + func (c *BusinessHoursServiceClient) Get(ctx context.Context, id int) (*BusinessHoursDetails, error) + func (c *BusinessHoursServiceClient) List(ctx context.Context) ([]BusinessHoursConfig, error) + type CarbonCopy struct + CcEmails []string + FwdEmails []string + ReplyCc []string + TktCc []string + type Client struct + Auth *BasicAuth + Context context.Context + Domain string + func New(ctx context.Context, domain string, apikey string, client *http.Client) (*Client, error) + func (fs *Client) Agents() AgentService + func (fs *Client) Announcements() AnnouncementService + func (fs *Client) BusinessHours() BusinessHoursService + func (fs *Client) ServiceCatalog() ServiceCatalogService + func (fs *Client) Tasks() TaskService + func (fs *Client) Tickets() TicketService + type CustomFields map[string]interface + type Error struct + Code string + Field string + Message string + type ErrorResponse struct + Description string + Errors []Error + type QueryFilter interface + QueryString func() string + type ServiceCatalog struct + Items []ServiceCatalogItemDetails + type ServiceCatalogItem struct + Details ServiceCatalogItemDetails + type ServiceCatalogItemDetails struct + AllowAttachments bool + AllowQuantity bool + Botified bool + CategoryID int + ChildItems []interface{} + CiTypeID int + Configs map[string]string + Cost string + CostVisibility bool + CreateChild bool + CreatedAt time.Time + CustomFields []interface{} + Deleted bool + DeliveryTime int + DeliveryTimeVisibility bool + Description string + DisplayID int + GroupVisibility int + ID int + IconName string + IsBundle bool + ItemType int + Name string + ProductID int + Quantity int + ShortDescription string + UpdatedAt time.Time + Visibility int + type ServiceCatalogItemListFilter struct + CatalogID int + func (scf *ServiceCatalogItemListFilter) QueryString() string + type ServiceCatalogService interface + Categories func(context.Context) ([]ServiceCategory, error) + Get func(context.Context, int) (*ServiceCatalogItemDetails, error) + List func(context.Context, QueryFilter) ([]ServiceCatalogItemDetails, error) + type ServiceCatalogServiceClient struct + func (sc *ServiceCatalogServiceClient) Categories(ctx context.Context) ([]ServiceCategory, error) + func (sc *ServiceCatalogServiceClient) Get(ctx context.Context, id int) (*ServiceCatalogItemDetails, error) + func (sc *ServiceCatalogServiceClient) List(ctx context.Context, filter QueryFilter) ([]ServiceCatalogItemDetails, error) + type ServiceCategories struct + List []ServiceCategory + type ServiceCategory struct + CreatedAt time.Time + Description string + ID int + Name string + Position int + UpdatedAt time.Time + type ServiceDeskHours struct + Friday WorkdayHours + Monday WorkdayHours + Thursday WorkdayHours + Tuesday WorkdayHours + Wednesday WorkdayHours + type SortOptions struct + Ascending bool + Descending bool + type Task struct + Details TaskDetails + type TaskDetails struct + AgentID int + ClosedAt int + CreatedAt time.Time + Description string + DueDate time.Time + GroupID int + ID int + NotifyBefore int + Status int + Title string + UpdatedAt time.Time + type TaskService interface + Create func(context.Context, int, *TaskDetails) (*TaskDetails, error) + Delete func(context.Context, int, int) error + Get func(context.Context, int, int) (*TaskDetails, error) + List func(context.Context, int) ([]TaskDetails, error) + Update func(context.Context, int, int, *TaskDetails) (*TaskDetails, error) + type TaskServiceClient struct + func (c *TaskServiceClient) Create(ctx context.Context, tickID int, td *TaskDetails) (*TaskDetails, error) + func (c *TaskServiceClient) Delete(ctx context.Context, tickID int, tid int) error + func (c *TaskServiceClient) Get(ctx context.Context, tickID int, tid int) (*TaskDetails, error) + func (c *TaskServiceClient) List(ctx context.Context, tickID int) ([]TaskDetails, error) + func (c *TaskServiceClient) Update(ctx context.Context, tickID int, tid int, td *TaskDetails) (*TaskDetails, error) + type Tasks struct + List []TaskDetails + type Ticket struct + Details TicketDetails + type TicketDetails struct + Attachments []Attachment + Category string + CcEmails []string + CreatedAt time.Time + CustomFields CustomFields + Deleted bool + DepartmentID int + Description string + DescriptionText string + DueBy time.Time + EmailConfigID int + FrDueBy time.Time + FrEscalated bool + FwdEmails []string + GroupID int + ID int + Impact int + IsEscalated bool + ItemCategory string + Priority int + ReplyCcEmails []string + RequesterID int + ResponderID int + SLAPolicyID int + Source int + Spam bool + Status int + SubCategory string + Subject string + ToEmails []string + Type string + UpdatedAt time.Time + Urgency int + type TicketEmbedOptions struct + RequesterInfo bool + Stats bool + type TicketFilter struct + Deleted bool + NewAndMyOpen bool + RequesterEmail *string + RequesterID *int + Spam bool + Type *string + UpdatedSince *time.Time + Watching bool + type TicketListOptions struct + Embed *TicketEmbedOptions + FilterBy *TicketFilter + PageQuery string + SortBy *SortOptions + func (opts *TicketListOptions) QueryString() string + type TicketNote struct + Details TicketNoteDetails + type TicketNoteDetails struct + Attachments []Attachment + Body string + BodyHTML string + CreatedAt string + Deleted bool + ID int64 + Incoming bool + Private bool + Source int + SupportEmail interface{} + UpdatedAt string + UserID int64 + type TicketService interface + Create func(context.Context, *TicketDetails) (*TicketDetails, error) + CreateWithAttachment func() (*Ticket, error) + Delete func(context.Context, int) error + Get func(context.Context, int, QueryFilter) (*TicketDetails, error) + List func(context.Context, QueryFilter) ([]TicketDetails, string, error) + Update func(context.Context, int, *TicketDetails) (*TicketDetails, error) + type TicketServiceClient struct + func (t *TicketServiceClient) Create(ctx context.Context, td *TicketDetails) (*TicketDetails, error) + func (t *TicketServiceClient) CreateWithAttachment() (*Ticket, error) + func (t *TicketServiceClient) Delete(ctx context.Context, id int) error + func (t *TicketServiceClient) Get(ctx context.Context, id int, filter QueryFilter) (*TicketDetails, error) + func (t *TicketServiceClient) List(ctx context.Context, filter QueryFilter) ([]TicketDetails, string, error) + func (t *TicketServiceClient) Update(ctx context.Context, id int, details *TicketDetails) (*TicketDetails, error) + type Tickets struct + List []TicketDetails + type WorkdayHoliday struct + HolidayDate string + HolidayName string + type WorkdayHours struct + BeginningOfWorkday string + EndOfWorkday string