Documentation ¶
Index ¶
- Constants
- Variables
- type Artifact
- type ArtifactOrigin
- type Automation
- type AutomationForm
- type AutomationResponse
- type Comment
- type CommentForm
- type Context
- type Enrichment
- type EnrichmentForm
- type File
- type Job
- type JobForm
- type JobResponse
- type LogEntry
- type Message
- type NewUserResponse
- type Origin
- type Playbook
- type PlaybookResponse
- type PlaybookTemplate
- type PlaybookTemplateForm
- type PlaybookTemplateResponse
- type Reference
- type Settings
- type Statistics
- type Task
- type TaskForm
- type TaskOrigin
- type TaskResponse
- type TaskWithContext
- type Ticket
- type TicketForm
- 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
Constants ¶
View Source
const ( SettingsTierCommunity = "community" SettingsTierEnterprise = "enterprise" TaskTypeTask = "task" TaskTypeInput = "input" TaskTypeAutomation = "automation" TaskFormTypeTask = "task" TaskFormTypeInput = "input" TaskFormTypeAutomation = "automation" TaskResponseTypeTask = "task" TaskResponseTypeInput = "input" TaskResponseTypeAutomation = "automation" TypeColorError = "error" TypeColorInfo = "info" TypeColorSuccess = "success" TypeColorWarning = "warning" )
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) EnrichmentSchema = new(gojsonschema.Schema) EnrichmentFormSchema = new(gojsonschema.Schema) FileSchema = new(gojsonschema.Schema) JobSchema = new(gojsonschema.Schema) JobFormSchema = new(gojsonschema.Schema) JobResponseSchema = 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) SettingsSchema = new(gojsonschema.Schema) StatisticsSchema = new(gojsonschema.Schema) TaskSchema = new(gojsonschema.Schema) TaskFormSchema = new(gojsonschema.Schema) TaskOriginSchema = new(gojsonschema.Schema) TaskResponseSchema = new(gojsonschema.Schema) TaskWithContextSchema = new(gojsonschema.Schema) TicketSchema = new(gojsonschema.Schema) TicketFormSchema = 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) )
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact struct { Enrichments map[string]*Enrichment `json:"enrichments,omitempty"` Name string `json:"name"` Status *string `json:"status,omitempty"` Type *string `json:"type,omitempty"` }
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 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]interface{} `json:"output,omitempty"` Payload interface{} `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]interface{} `json:"output,omitempty"` Payload interface{} `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 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]interface{} `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]interface{} `json:"schema,omitempty"` Type string `json:"type"` }
type TaskForm ¶
type TaskForm struct { Automation *string `json:"automation,omitempty"` Closed *time.Time `json:"closed,omitempty"` Created *time.Time `json:"created,omitempty"` Data map[string]interface{} `json:"data,omitempty"` Done *bool `json:"done,omitempty"` 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]interface{} `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]interface{} `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]interface{} `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]interface{} `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]interface{} `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 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]interface{} `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]interface{} `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]interface{} `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 ¶
Click to show internal directories.
Click to hide internal directories.