Documentation
¶
Index ¶
- type Client
- func (c *Client) AddArticleToTicket(ctx context.Context, article zammad.Article) error
- func (c *Client) CreateTicket(ctx context.Context, ticket zammad.NewTicket) error
- func (c *Client) SearchTickets(ctx context.Context, hostname, service string) ([]zammad.Ticket, error)
- func (c *Client) UpdateTicketState(ctx context.Context, ticket zammad.Ticket, state zammad.TicketState) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) AddArticleToTicket ¶
AddArticleToTicket adds an article to an existing ticket
func (*Client) CreateTicket ¶
CreateTicket create a new ticket in Zammad
func (*Client) SearchTickets ¶
func (c *Client) SearchTickets(ctx context.Context, hostname, service string) ([]zammad.Ticket, error)
SearchTickets searches tickets for the given hostname and service. If only the hostname is provided all tickets with this hostname are returned, if a service is provided only tickets with matching service and hostname are returned.
func (*Client) UpdateTicketState ¶
func (c *Client) UpdateTicketState(ctx context.Context, ticket zammad.Ticket, state zammad.TicketState) error
UpdateTicketState updates the ticket to the given state
Click to show internal directories.
Click to hide internal directories.