Documentation ¶
Index ¶
- type Bugtracker
- func (b *Bugtracker) CloseTicket(auth *forge.Authenticator, ticketID string) error
- func (b *Bugtracker) CreateTicket(auth *forge.Authenticator, title string, body string, opts bugtracker.Options) (string, error)
- func (b *Bugtracker) EditTicket(auth *forge.Authenticator, ticketID string, title string, body string, ...) error
- func (b *Bugtracker) GetAuthenticator() (*forge.Authenticator, error)
- func (b *Bugtracker) TicketURI(ticketID string) (string, error)
- func (b *Bugtracker) URIToTicket(uri string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bugtracker ¶
type Bugtracker struct {
// contains filtered or unexported fields
}
func (*Bugtracker) CloseTicket ¶
func (b *Bugtracker) CloseTicket(auth *forge.Authenticator, ticketID string) error
CloseTicket closes the ticket in the bug tracker. Returns an error if the ticket could not be closed.
func (*Bugtracker) CreateTicket ¶
func (b *Bugtracker) CreateTicket(auth *forge.Authenticator, title string, body string, opts bugtracker.Options) (string, error)
CreateTicket creates a ticket in the bug tracker. Returns the ticket ID or an error.
func (*Bugtracker) EditTicket ¶
func (b *Bugtracker) EditTicket(auth *forge.Authenticator, ticketID string, title string, body string, opts bugtracker.Options) error
EditTicket edits the ticket in the bug tracker. Returns an error if the ticket could not be edited.
func (*Bugtracker) GetAuthenticator ¶
func (b *Bugtracker) GetAuthenticator() (*forge.Authenticator, error)
GetAuthenticator returns an authenticator for the bug tracker.
func (*Bugtracker) TicketURI ¶
func (b *Bugtracker) TicketURI(ticketID string) (string, error)
TicketURI returns the URI to the ticket in the bug tracker. Returns an error if the URI could not be generated.
func (*Bugtracker) URIToTicket ¶
func (b *Bugtracker) URIToTicket(uri string) (string, error)
URIToTicket returns the ticket ID from the URI. Returns an error if the ticket ID could not be extracted.
Click to show internal directories.
Click to hide internal directories.