Documentation ¶
Index ¶
- Constants
- Variables
- type Artifact
- type ArtifactOrigin
- type Automation
- type AutomationForm
- type AutomationResponse
- type Comment
- type CommentForm
- type Context
- type Dashboard
- type DashboardResponse
- type Enrichment
- type EnrichmentForm
- type File
- type Job
- type JobForm
- type JobResponse
- type JobUpdate
- type LogEntry
- type Message
- type NewUserResponse
- type Origin
- type Playbook
- type PlaybookResponse
- type PlaybookTemplate
- type PlaybookTemplateForm
- type PlaybookTemplateResponse
- type Reference
- type ReferenceArray
- type Settings
- type SettingsResponse
- type Statistics
- type Task
- type TaskOrigin
- type TaskResponse
- type TaskWithContext
- type Ticket
- type TicketForm
- type TicketFormArray
- type TicketList
- type TicketResponse
- type TicketSimpleResponse
- type TicketTemplate
- type TicketTemplateForm
- type TicketTemplateResponse
- type TicketType
- type TicketTypeForm
- type TicketTypeResponse
- type TicketWithTickets
- type Type
- type User
- type UserData
- type UserDataResponse
- type UserForm
- type UserResponse
- type Widget
Constants ¶
View Source
const ( SettingsResponseTierCommunity = "community" SettingsResponseTierEnterprise = "enterprise" TaskTypeTask = "task" TaskTypeInput = "input" TaskTypeAutomation = "automation" TaskResponseTypeTask = "task" TaskResponseTypeInput = "input" TaskResponseTypeAutomation = "automation" TypeColorError = "error" TypeColorInfo = "info" TypeColorSuccess = "success" TypeColorWarning = "warning" WidgetTypeBar = "bar" WidgetTypeLine = "line" WidgetTypePie = "pie" )
Variables ¶
View Source
var ( ArtifactSchema = new(gojsonschema.Schema) ArtifactOriginSchema = new(gojsonschema.Schema) AutomationSchema = new(gojsonschema.Schema) AutomationFormSchema = new(gojsonschema.Schema) AutomationResponseSchema = new(gojsonschema.Schema) CommentSchema = new(gojsonschema.Schema) CommentFormSchema = new(gojsonschema.Schema) ContextSchema = new(gojsonschema.Schema) DashboardSchema = new(gojsonschema.Schema) DashboardResponseSchema = new(gojsonschema.Schema) EnrichmentSchema = new(gojsonschema.Schema) EnrichmentFormSchema = new(gojsonschema.Schema) FileSchema = new(gojsonschema.Schema) JobSchema = new(gojsonschema.Schema) JobFormSchema = new(gojsonschema.Schema) JobResponseSchema = new(gojsonschema.Schema) JobUpdateSchema = new(gojsonschema.Schema) LogEntrySchema = new(gojsonschema.Schema) MessageSchema = new(gojsonschema.Schema) NewUserResponseSchema = new(gojsonschema.Schema) OriginSchema = new(gojsonschema.Schema) PlaybookSchema = new(gojsonschema.Schema) PlaybookResponseSchema = new(gojsonschema.Schema) PlaybookTemplateSchema = new(gojsonschema.Schema) PlaybookTemplateFormSchema = new(gojsonschema.Schema) PlaybookTemplateResponseSchema = new(gojsonschema.Schema) ReferenceSchema = new(gojsonschema.Schema) ReferenceArraySchema = new(gojsonschema.Schema) SettingsSchema = new(gojsonschema.Schema) SettingsResponseSchema = new(gojsonschema.Schema) StatisticsSchema = new(gojsonschema.Schema) TaskSchema = new(gojsonschema.Schema) TaskOriginSchema = new(gojsonschema.Schema) TaskResponseSchema = new(gojsonschema.Schema) TaskWithContextSchema = new(gojsonschema.Schema) TicketSchema = new(gojsonschema.Schema) TicketFormSchema = new(gojsonschema.Schema) TicketFormArraySchema = new(gojsonschema.Schema) TicketListSchema = new(gojsonschema.Schema) TicketResponseSchema = new(gojsonschema.Schema) TicketSimpleResponseSchema = new(gojsonschema.Schema) TicketTemplateSchema = new(gojsonschema.Schema) TicketTemplateFormSchema = new(gojsonschema.Schema) TicketTemplateResponseSchema = new(gojsonschema.Schema) TicketTypeSchema = new(gojsonschema.Schema) TicketTypeFormSchema = new(gojsonschema.Schema) TicketTypeResponseSchema = new(gojsonschema.Schema) TicketWithTicketsSchema = new(gojsonschema.Schema) TypeSchema = new(gojsonschema.Schema) UserSchema = new(gojsonschema.Schema) UserDataSchema = new(gojsonschema.Schema) UserDataResponseSchema = new(gojsonschema.Schema) UserFormSchema = new(gojsonschema.Schema) UserResponseSchema = new(gojsonschema.Schema) WidgetSchema = new(gojsonschema.Schema) )
Functions ¶
This section is empty.
Types ¶
type ArtifactOrigin ¶
type Automation ¶
type AutomationForm ¶
type AutomationResponse ¶
type CommentForm ¶
type Context ¶
type Context struct { Artifact *Artifact `json:"artifact,omitempty"` Playbook *PlaybookResponse `json:"playbook,omitempty"` Task *TaskResponse `json:"task,omitempty"` Ticket *TicketResponse `json:"ticket,omitempty"` }
type DashboardResponse ¶ added in v0.9.0
type Enrichment ¶
type EnrichmentForm ¶
type Job ¶
type Job struct { Automation string `json:"automation"` Container *string `json:"container,omitempty"` Log *string `json:"log,omitempty"` Origin *Origin `json:"origin,omitempty"` Output map[string]any `json:"output,omitempty"` Payload any `json:"payload,omitempty"` Running bool `json:"running"` Status string `json:"status"` }
type JobResponse ¶
type JobResponse struct { Automation string `json:"automation"` Container *string `json:"container,omitempty"` ID string `json:"id"` Log *string `json:"log,omitempty"` Origin *Origin `json:"origin,omitempty"` Output map[string]any `json:"output,omitempty"` Payload any `json:"payload,omitempty"` Status string `json:"status"` }
type NewUserResponse ¶
type Origin ¶
type Origin struct { ArtifactOrigin *ArtifactOrigin `json:"artifact_origin,omitempty"` TaskOrigin *TaskOrigin `json:"task_origin,omitempty"` }
type PlaybookResponse ¶
type PlaybookResponse struct { Name string `json:"name"` Tasks map[string]*TaskResponse `json:"tasks"` }
type PlaybookTemplate ¶
type PlaybookTemplateForm ¶
type ReferenceArray ¶ added in v0.8.0
type ReferenceArray []*Reference
type SettingsResponse ¶ added in v0.9.0
type SettingsResponse struct { ArtifactKinds []*Type `json:"artifactKinds"` ArtifactStates []*Type `json:"artifactStates"` Roles []string `json:"roles,omitempty"` TicketTypes []*TicketTypeResponse `json:"ticketTypes"` Tier string `json:"tier"` Timeformat string `json:"timeformat"` Version string `json:"version"` }
type Statistics ¶
type Task ¶
type Task struct { Automation *string `json:"automation,omitempty"` Closed *time.Time `json:"closed,omitempty"` Created time.Time `json:"created"` Data map[string]any `json:"data,omitempty"` Done bool `json:"done"` Join *bool `json:"join,omitempty"` Name string `json:"name"` Next map[string]string `json:"next,omitempty"` Owner *string `json:"owner,omitempty"` Payload map[string]string `json:"payload,omitempty"` Schema map[string]any `json:"schema,omitempty"` Type string `json:"type"` }
type TaskOrigin ¶
type TaskResponse ¶
type TaskResponse struct { Active bool `json:"active"` Automation *string `json:"automation,omitempty"` Closed *time.Time `json:"closed,omitempty"` Created time.Time `json:"created"` Data map[string]any `json:"data,omitempty"` Done bool `json:"done"` Join *bool `json:"join,omitempty"` Name string `json:"name"` Next map[string]string `json:"next,omitempty"` Order int64 `json:"order"` Owner *string `json:"owner,omitempty"` Payload map[string]string `json:"payload,omitempty"` Schema map[string]any `json:"schema,omitempty"` Type string `json:"type"` }
type TaskWithContext ¶
type Ticket ¶
type Ticket struct { Artifacts []*Artifact `json:"artifacts,omitempty"` Comments []*Comment `json:"comments,omitempty"` Created time.Time `json:"created"` Details map[string]any `json:"details,omitempty"` Files []*File `json:"files,omitempty"` Modified time.Time `json:"modified"` Name string `json:"name"` Owner *string `json:"owner,omitempty"` Playbooks map[string]*Playbook `json:"playbooks,omitempty"` Read []string `json:"read,omitempty"` References []*Reference `json:"references,omitempty"` Schema string `json:"schema"` Status string `json:"status"` Type string `json:"type"` Write []string `json:"write,omitempty"` }
type TicketForm ¶
type TicketForm struct { Artifacts []*Artifact `json:"artifacts,omitempty"` Comments []*Comment `json:"comments,omitempty"` Created *time.Time `json:"created,omitempty"` Details map[string]any `json:"details,omitempty"` Files []*File `json:"files,omitempty"` ID *int64 `json:"id,omitempty"` Modified *time.Time `json:"modified,omitempty"` Name string `json:"name"` Owner *string `json:"owner,omitempty"` Playbooks []*PlaybookTemplateForm `json:"playbooks,omitempty"` Read []string `json:"read,omitempty"` References []*Reference `json:"references,omitempty"` Schema *string `json:"schema,omitempty"` Status string `json:"status"` Type string `json:"type"` Write []string `json:"write,omitempty"` }
type TicketFormArray ¶ added in v0.8.0
type TicketFormArray []*TicketForm
type TicketList ¶
type TicketList struct { Count int `json:"count"` Tickets []*TicketSimpleResponse `json:"tickets"` }
type TicketResponse ¶
type TicketResponse struct { Artifacts []*Artifact `json:"artifacts,omitempty"` Comments []*Comment `json:"comments,omitempty"` Created time.Time `json:"created"` Details map[string]any `json:"details,omitempty"` Files []*File `json:"files,omitempty"` ID int64 `json:"id"` Modified time.Time `json:"modified"` Name string `json:"name"` Owner *string `json:"owner,omitempty"` Playbooks map[string]*PlaybookResponse `json:"playbooks,omitempty"` Read []string `json:"read,omitempty"` References []*Reference `json:"references,omitempty"` Schema string `json:"schema"` Status string `json:"status"` Type string `json:"type"` Write []string `json:"write,omitempty"` }
type TicketSimpleResponse ¶
type TicketSimpleResponse struct { Artifacts []*Artifact `json:"artifacts,omitempty"` Comments []*Comment `json:"comments,omitempty"` Created time.Time `json:"created"` Details map[string]any `json:"details,omitempty"` Files []*File `json:"files,omitempty"` ID int64 `json:"id"` Modified time.Time `json:"modified"` Name string `json:"name"` Owner *string `json:"owner,omitempty"` Playbooks map[string]*Playbook `json:"playbooks,omitempty"` Read []string `json:"read,omitempty"` References []*Reference `json:"references,omitempty"` Schema string `json:"schema"` Status string `json:"status"` Type string `json:"type"` Write []string `json:"write,omitempty"` }
type TicketTemplate ¶
type TicketTemplateForm ¶
type TicketTemplateResponse ¶
type TicketType ¶
type TicketTypeForm ¶
type TicketTypeResponse ¶
type TicketWithTickets ¶
type TicketWithTickets struct { Artifacts []*Artifact `json:"artifacts,omitempty"` Comments []*Comment `json:"comments,omitempty"` Created time.Time `json:"created"` Details map[string]any `json:"details,omitempty"` Files []*File `json:"files,omitempty"` ID int64 `json:"id"` Logs []*LogEntry `json:"logs,omitempty"` Modified time.Time `json:"modified"` Name string `json:"name"` Owner *string `json:"owner,omitempty"` Playbooks map[string]*PlaybookResponse `json:"playbooks,omitempty"` Read []string `json:"read,omitempty"` References []*Reference `json:"references,omitempty"` Schema string `json:"schema"` Status string `json:"status"` Tickets []*TicketSimpleResponse `json:"tickets,omitempty"` Type string `json:"type"` Write []string `json:"write,omitempty"` }
type UserDataResponse ¶
type UserResponse ¶
Click to show internal directories.
Click to hide internal directories.