Documentation
¶
Index ¶
- type Service
- func (s *Service) AddArtifact(ctx context.Context, i int64, artifact *model.Artifact) (doc *model.TicketWithTickets, err error)
- func (s *Service) AddComment(ctx context.Context, i int64, form *model.CommentForm) (doc *model.TicketWithTickets, err error)
- func (s *Service) AddTicketPlaybook(ctx context.Context, i int64, form *model.PlaybookTemplateForm) (doc *model.TicketWithTickets, err error)
- func (s *Service) CompleteTask(ctx context.Context, i int64, s3 string, s2 string, m map[string]any) (doc *model.TicketWithTickets, err error)
- func (s *Service) CreateAutomation(ctx context.Context, form *model.AutomationForm) (doc *model.AutomationResponse, err error)
- func (s *Service) CreateDashboard(ctx context.Context, dashboard *model.Dashboard) (doc *model.DashboardResponse, err error)
- func (s *Service) CreatePlaybook(ctx context.Context, form *model.PlaybookTemplateForm) (doc *model.PlaybookTemplateResponse, err error)
- func (s *Service) CreateTemplate(ctx context.Context, form *model.TicketTemplateForm) (doc *model.TicketTemplateResponse, err error)
- func (s *Service) CreateTicket(ctx context.Context, form *model.TicketForm) (doc *model.TicketResponse, err error)
- func (s *Service) CreateTicketBatch(ctx context.Context, ticketFormArray *model.TicketFormArray) error
- func (s *Service) CreateTicketType(ctx context.Context, form *model.TicketTypeForm) (doc *model.TicketTypeResponse, err error)
- func (s *Service) CreateUser(ctx context.Context, form *model.UserForm) (doc *model.NewUserResponse, err error)
- func (s *Service) CurrentUser(ctx context.Context) (*model.UserResponse, error)
- func (s *Service) CurrentUserData(ctx context.Context) (doc *model.UserDataResponse, err error)
- func (s *Service) DashboardData(ctx context.Context, aggregation string, filter *string) (map[string]any, error)
- func (s *Service) DeleteAutomation(ctx context.Context, id string) (err error)
- func (s *Service) DeleteDashboard(ctx context.Context, id string) (err error)
- func (s *Service) DeletePlaybook(ctx context.Context, id string) (err error)
- func (s *Service) DeleteTemplate(ctx context.Context, id string) (err error)
- func (s *Service) DeleteTicket(ctx context.Context, i int64) (err error)
- func (s *Service) DeleteTicketType(ctx context.Context, id string) (err error)
- func (s *Service) DeleteUser(ctx context.Context, s2 string) (err error)
- func (s *Service) EnrichArtifact(ctx context.Context, i int64, s2 string, form *model.EnrichmentForm) (doc *model.TicketWithTickets, err error)
- func (s *Service) GetArtifact(ctx context.Context, i int64, s2 string) (*model.Artifact, error)
- func (s *Service) GetAutomation(ctx context.Context, id string) (*model.AutomationResponse, error)
- func (s *Service) GetDashboard(ctx context.Context, id string) (*model.DashboardResponse, error)
- func (s *Service) GetJob(ctx context.Context, id string) (*model.JobResponse, error)
- func (s *Service) GetLogs(ctx context.Context, reference string) ([]*model.LogEntry, error)
- func (s *Service) GetPlaybook(ctx context.Context, id string) (*model.PlaybookTemplateResponse, error)
- func (s *Service) GetSettings(ctx context.Context) (*model.SettingsResponse, error)
- func (s *Service) GetStatistics(ctx context.Context) (*model.Statistics, error)
- func (s *Service) GetTemplate(ctx context.Context, id string) (*model.TicketTemplateResponse, error)
- func (s *Service) GetTicket(ctx context.Context, i int64) (*model.TicketWithTickets, error)
- func (s *Service) GetTicketType(ctx context.Context, id string) (*model.TicketTypeResponse, error)
- func (s *Service) GetUser(ctx context.Context, s2 string) (*model.UserResponse, error)
- func (s *Service) GetUserData(ctx context.Context, id string) (*model.UserDataResponse, error)
- func (s *Service) LinkTicket(ctx context.Context, i int64, i2 int64) (*model.TicketWithTickets, error)
- func (s *Service) ListAutomations(ctx context.Context) ([]*model.AutomationResponse, error)
- func (s *Service) ListDashboards(ctx context.Context) ([]*model.DashboardResponse, error)
- func (s *Service) ListJobs(ctx context.Context) ([]*model.JobResponse, error)
- func (s *Service) ListPlaybooks(ctx context.Context) ([]*model.PlaybookTemplateResponse, error)
- func (s *Service) ListTasks(ctx context.Context) ([]*model.TaskWithContext, error)
- func (s *Service) ListTemplates(ctx context.Context) ([]*model.TicketTemplateResponse, error)
- func (s *Service) ListTicketTypes(ctx context.Context) ([]*model.TicketTypeResponse, error)
- func (s *Service) ListTickets(ctx context.Context, ticketType *string, offsetP, countP *int, sort []string, ...) (*model.TicketList, error)
- func (s *Service) ListUserData(ctx context.Context) (doc []*model.UserDataResponse, err error)
- func (s *Service) ListUsers(ctx context.Context) ([]*model.UserResponse, error)
- func (s *Service) RemoveArtifact(ctx context.Context, i int64, s2 string) (doc *model.TicketWithTickets, err error)
- func (s *Service) RemoveComment(ctx context.Context, i int64, i2 int) (doc *model.TicketWithTickets, err error)
- func (s *Service) RemoveTicketPlaybook(ctx context.Context, i int64, s2 string) (doc *model.TicketWithTickets, err error)
- func (s *Service) RunArtifact(ctx context.Context, id int64, name string, automation string) error
- func (s *Service) RunJob(ctx context.Context, form *model.JobForm) (doc *model.JobResponse, err error)
- func (s *Service) RunTask(ctx context.Context, i int64, s3 string, s2 string) (err error)
- func (s *Service) SaveSettings(ctx context.Context, settings *model.Settings) (*model.SettingsResponse, error)
- func (s *Service) SetArtifact(ctx context.Context, i int64, s2 string, artifact *model.Artifact) (doc *model.TicketWithTickets, err error)
- func (s *Service) SetReferences(ctx context.Context, i int64, references *model.ReferenceArray) (doc *model.TicketWithTickets, err error)
- func (s *Service) SetSchema(ctx context.Context, i int64, s2 string) (doc *model.TicketWithTickets, err error)
- func (s *Service) SetTaskData(ctx context.Context, i int64, s3 string, s2 string, data map[string]any) (doc *model.TicketWithTickets, err error)
- func (s *Service) SetTaskOwner(ctx context.Context, i int64, s3 string, s2 string, owner string) (doc *model.TicketWithTickets, err error)
- func (s *Service) UnlinkTicket(ctx context.Context, i int64, i2 int64) (*model.TicketWithTickets, error)
- func (s *Service) UpdateAutomation(ctx context.Context, id string, form *model.AutomationForm) (doc *model.AutomationResponse, err error)
- func (s *Service) UpdateCurrentUserData(ctx context.Context, data *model.UserData) (doc *model.UserDataResponse, err error)
- func (s *Service) UpdateDashboard(ctx context.Context, id string, form *model.Dashboard) (doc *model.DashboardResponse, err error)
- func (s *Service) UpdateJob(ctx context.Context, id string, job *model.JobUpdate) (doc *model.JobResponse, err error)
- func (s *Service) UpdatePlaybook(ctx context.Context, id string, form *model.PlaybookTemplateForm) (doc *model.PlaybookTemplateResponse, err error)
- func (s *Service) UpdateTemplate(ctx context.Context, id string, form *model.TicketTemplateForm) (doc *model.TicketTemplateResponse, err error)
- func (s *Service) UpdateTicket(ctx context.Context, i int64, ticket *model.Ticket) (doc *model.TicketWithTickets, err error)
- func (s *Service) UpdateTicketType(ctx context.Context, id string, form *model.TicketTypeForm) (doc *model.TicketTypeResponse, err error)
- func (s *Service) UpdateUser(ctx context.Context, s2 string, form *model.UserForm) (doc *model.UserResponse, err error)
- func (s *Service) UpdateUserData(ctx context.Context, id string, data *model.UserData) (doc *model.UserDataResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AddArtifact ¶
func (*Service) AddComment ¶
func (s *Service) AddComment(ctx context.Context, i int64, form *model.CommentForm) (doc *model.TicketWithTickets, err error)
func (*Service) AddTicketPlaybook ¶
func (s *Service) AddTicketPlaybook(ctx context.Context, i int64, form *model.PlaybookTemplateForm) (doc *model.TicketWithTickets, err error)
func (*Service) CompleteTask ¶
func (*Service) CreateAutomation ¶
func (s *Service) CreateAutomation(ctx context.Context, form *model.AutomationForm) (doc *model.AutomationResponse, err error)
func (*Service) CreateDashboard ¶ added in v0.9.0
func (*Service) CreatePlaybook ¶
func (s *Service) CreatePlaybook(ctx context.Context, form *model.PlaybookTemplateForm) (doc *model.PlaybookTemplateResponse, err error)
func (*Service) CreateTemplate ¶
func (s *Service) CreateTemplate(ctx context.Context, form *model.TicketTemplateForm) (doc *model.TicketTemplateResponse, err error)
func (*Service) CreateTicket ¶
func (s *Service) CreateTicket(ctx context.Context, form *model.TicketForm) (doc *model.TicketResponse, err error)
func (*Service) CreateTicketBatch ¶
func (*Service) CreateTicketType ¶
func (s *Service) CreateTicketType(ctx context.Context, form *model.TicketTypeForm) (doc *model.TicketTypeResponse, err error)
func (*Service) CreateUser ¶
func (*Service) CurrentUser ¶
func (*Service) CurrentUserData ¶
func (*Service) DashboardData ¶ added in v0.9.0
func (*Service) DeleteAutomation ¶
func (*Service) DeleteDashboard ¶ added in v0.9.0
func (*Service) DeletePlaybook ¶
func (*Service) DeleteTemplate ¶
func (*Service) DeleteTicket ¶
func (*Service) DeleteTicketType ¶
func (*Service) DeleteUser ¶
func (*Service) EnrichArtifact ¶
func (s *Service) EnrichArtifact(ctx context.Context, i int64, s2 string, form *model.EnrichmentForm) (doc *model.TicketWithTickets, err error)
func (*Service) GetArtifact ¶
func (*Service) GetAutomation ¶
func (*Service) GetDashboard ¶ added in v0.9.0
func (*Service) GetPlaybook ¶
func (*Service) GetSettings ¶
func (*Service) GetStatistics ¶
func (*Service) GetTemplate ¶
func (*Service) GetTicketType ¶
func (*Service) GetUserData ¶
func (*Service) LinkTicket ¶
func (*Service) ListAutomations ¶
func (*Service) ListDashboards ¶ added in v0.9.0
func (*Service) ListPlaybooks ¶
func (*Service) ListTemplates ¶
func (*Service) ListTicketTypes ¶
func (*Service) ListTickets ¶
func (*Service) ListUserData ¶
func (*Service) RemoveArtifact ¶
func (*Service) RemoveComment ¶
func (*Service) RemoveTicketPlaybook ¶
func (*Service) RunArtifact ¶
func (*Service) SaveSettings ¶ added in v0.9.0
func (*Service) SetArtifact ¶
func (*Service) SetReferences ¶
func (s *Service) SetReferences(ctx context.Context, i int64, references *model.ReferenceArray) (doc *model.TicketWithTickets, err error)
func (*Service) SetTaskData ¶ added in v0.8.0
func (*Service) SetTaskOwner ¶ added in v0.8.0
func (*Service) UnlinkTicket ¶
func (*Service) UpdateAutomation ¶
func (s *Service) UpdateAutomation(ctx context.Context, id string, form *model.AutomationForm) (doc *model.AutomationResponse, err error)
func (*Service) UpdateCurrentUserData ¶
func (*Service) UpdateDashboard ¶ added in v0.9.0
func (*Service) UpdatePlaybook ¶
func (s *Service) UpdatePlaybook(ctx context.Context, id string, form *model.PlaybookTemplateForm) (doc *model.PlaybookTemplateResponse, err error)
func (*Service) UpdateTemplate ¶
func (s *Service) UpdateTemplate(ctx context.Context, id string, form *model.TicketTemplateForm) (doc *model.TicketTemplateResponse, err error)
func (*Service) UpdateTicket ¶
func (*Service) UpdateTicketType ¶
func (s *Service) UpdateTicketType(ctx context.Context, id string, form *model.TicketTypeForm) (doc *model.TicketTypeResponse, err error)
func (*Service) UpdateUser ¶
Click to show internal directories.
Click to hide internal directories.