Documentation ¶
Index ¶
- func GenerateHash(data string) string
- type Github
- func (g *Github) Connect() error
- func (g *Github) Create(ticket *Ticket) error
- func (g *Github) Fetch(ticket *Ticket) error
- func (g *Github) FetchRemoteTicket(remoteData interface{}) (Ticket, error)
- func (g *Github) GenerateTemplate(ticket *Ticket) (TicketTemplate, error)
- func (g *Github) ParseCredentials(creds interface{}) error
- func (g *Github) TicketExists(ticket *Ticket) (bool, TicketDetails, error)
- func (g *Github) Update(ticket *Ticket) error
- type GithubCredentials
- type GithubRepo
- type Hash
- type Jira
- func (j *Jira) Connect() error
- func (j *Jira) Create(ticket *Ticket) error
- func (j Jira) Fetch(ticket *Ticket) error
- func (j Jira) FetchRemoteTicket(data interface{}) (Ticket, error)
- func (j *Jira) GenerateTemplate(ticket *Ticket) (TicketTemplate, error)
- func (j *Jira) ParseCredentials(creds interface{}) error
- func (j Jira) TicketExists(ticket *Ticket) (bool, TicketDetails, error)
- func (j Jira) Update(ticket *Ticket) error
- type JiraCredentials
- type JiraProject
- type Status
- type Ticket
- type TicketDetails
- type TicketID
- type TicketTemplate
- type Ticketing
- type TicketingCredentials
- type TicketingStorage
- func (t TicketingStorage) FetchCredentials(a agent.Agent) (TicketingCredentials, error)
- func (t TicketingStorage) FindTicket(details TicketDetails) (TicketDetails, error)
- func (t TicketingStorage) StoreCredentials(credentials TicketingCredentials) error
- func (t TicketingStorage) StoreTicketDetails(details TicketDetails) error
- func (t TicketingStorage) TicketExists(details TicketDetails) (bool, error)
- type TicketingSystem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateHash ¶
Types ¶
type Github ¶
type Github struct { Client *github.Client Context context.Context Credentials GithubCredentials Config config.Config }
func (*Github) FetchRemoteTicket ¶
func (*Github) GenerateTemplate ¶
func (g *Github) GenerateTemplate(ticket *Ticket) (TicketTemplate, error)
func (*Github) ParseCredentials ¶
func (*Github) TicketExists ¶
func (g *Github) TicketExists(ticket *Ticket) (bool, TicketDetails, error)
type GithubCredentials ¶
type GithubCredentials struct { agent.Agent AccessToken string `json:"access_token"` InstallationID string `json:"installation_id"` GithubRepo }
type GithubRepo ¶
type Jira ¶
type Jira struct { Client *jira.Client Context context.Context Config config.Config Credentials JiraCredentials }
func (Jira) FetchRemoteTicket ¶
func (*Jira) GenerateTemplate ¶
func (j *Jira) GenerateTemplate(ticket *Ticket) (TicketTemplate, error)
func (*Jira) ParseCredentials ¶
func (Jira) TicketExists ¶
func (j Jira) TicketExists(ticket *Ticket) (bool, TicketDetails, error)
type JiraCredentials ¶
type JiraProject ¶
type Ticket ¶
type Ticket struct { agent.Agent Level string `json:"level"` LevelNumber string `json:"level_number"` Bug string `json:"bug"` Raw string `json:"raw"` Line string `json:"line"` File string `json:"file"` TimesReported int `json:"times_reported" default:"1"` RemoteID string `json:"remote_id"` RemoteDetails interface{} `json:"remote_details"` Hash Hash `json:"hash"` State string `json:"state"` RemoteLink string `json:"remote_link"` RemoteSystem string `json:"remote_system"` }
type TicketDetails ¶ added in v0.8.0
type TicketTemplate ¶
type Ticketing ¶
func NewTicketing ¶
func (Ticketing) CreateTicket ¶
func (Ticketing) CreateTicketHandler ¶
func (t Ticketing) CreateTicketHandler(w http.ResponseWriter, r *http.Request)
func (Ticketing) TicketCreate ¶
func (t Ticketing) TicketCreate(system TicketingSystem, creds TicketingCredentials, ticket *Ticket) error
type TicketingCredentials ¶ added in v0.8.0
type TicketingStorage ¶ added in v0.8.0
func NewTicketingStorage ¶ added in v0.8.0
func NewTicketingStorage(c config.Config) *TicketingStorage
func (TicketingStorage) FetchCredentials ¶ added in v0.8.0
func (t TicketingStorage) FetchCredentials(a agent.Agent) (TicketingCredentials, error)
func (TicketingStorage) FindTicket ¶ added in v0.8.0
func (t TicketingStorage) FindTicket(details TicketDetails) (TicketDetails, error)
func (TicketingStorage) StoreCredentials ¶ added in v0.8.0
func (t TicketingStorage) StoreCredentials(credentials TicketingCredentials) error
func (TicketingStorage) StoreTicketDetails ¶ added in v0.8.0
func (t TicketingStorage) StoreTicketDetails(details TicketDetails) error
func (TicketingStorage) TicketExists ¶ added in v0.8.0
func (t TicketingStorage) TicketExists(details TicketDetails) (bool, error)
type TicketingSystem ¶
Click to show internal directories.
Click to hide internal directories.