Documentation ¶
Index ¶
- func MarshalData(entity interface{}) (io.Reader, error)
- func UnmarshalData(data io.ReadCloser, entity interface{}) (interface{}, error)
- type Cause
- type Client
- func (c *Client) CreateCause(cause *Cause) (*Cause, error)
- func (c *Client) CreateFunctionality(f *Functionality) (*Functionality, error)
- func (c *Client) CreateIncidentRole(i *IncidentRole) (*IncidentRole, error)
- func (c *Client) CreateIncidentType(i *IncidentType) (*IncidentType, error)
- func (c *Client) CreateService(s *Service) (*Service, error)
- func (c *Client) CreateSeverity(s *Severity) (*Severity, error)
- func (c *Client) CreateTeam(t *Team) (*Team, error)
- func (c *Client) DeleteCause(id string) error
- func (c *Client) DeleteFunctionality(id string) error
- func (c *Client) DeleteIncidentRole(id string) error
- func (c *Client) DeleteIncidentType(id string) error
- func (c *Client) DeleteService(id string) error
- func (c *Client) DeleteSeverity(id string) error
- func (c *Client) DeleteTeam(id string) error
- func (c *Client) Do(req *http.Request) (*http.Response, error)
- func (c *Client) GetCause(id string) (*Cause, error)
- func (c *Client) GetFunctionality(id string) (*Functionality, error)
- func (c *Client) GetIncidentRole(id string) (*IncidentRole, error)
- func (c *Client) GetIncidentType(id string) (*IncidentType, error)
- func (c *Client) GetService(id string) (*Service, error)
- func (c *Client) GetSeverity(id string) (*Severity, error)
- func (c *Client) GetTeam(id string) (*Team, error)
- func (c *Client) UpdateCause(id string, cause *Cause) (*Cause, error)
- func (c *Client) UpdateFunctionality(id string, f *Functionality) (*Functionality, error)
- func (c *Client) UpdateIncidentRole(id string, i *IncidentRole) (*IncidentRole, error)
- func (c *Client) UpdateIncidentType(id string, i *IncidentType) (*IncidentType, error)
- func (c *Client) UpdateService(id string, s *Service) (*Service, error)
- func (c *Client) UpdateSeverity(id string, s *Severity) (*Severity, error)
- func (c *Client) UpdateTeam(id string, t *Team) (*Team, error)
- type Functionality
- type IncidentRole
- type IncidentType
- type NotFoundError
- type RequestError
- type Service
- type Severity
- type Team
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalData ¶
func UnmarshalData ¶
func UnmarshalData(data io.ReadCloser, entity interface{}) (interface{}, error)
Types ¶
type Client ¶
func (*Client) CreateFunctionality ¶
func (c *Client) CreateFunctionality(f *Functionality) (*Functionality, error)
func (*Client) CreateIncidentRole ¶
func (c *Client) CreateIncidentRole(i *IncidentRole) (*IncidentRole, error)
func (*Client) CreateIncidentType ¶
func (c *Client) CreateIncidentType(i *IncidentType) (*IncidentType, error)
func (*Client) DeleteCause ¶
func (*Client) DeleteFunctionality ¶
func (*Client) DeleteIncidentRole ¶
func (*Client) DeleteIncidentType ¶
func (*Client) DeleteService ¶
func (*Client) DeleteSeverity ¶
func (*Client) DeleteTeam ¶
func (*Client) GetFunctionality ¶
func (c *Client) GetFunctionality(id string) (*Functionality, error)
func (*Client) GetIncidentRole ¶
func (c *Client) GetIncidentRole(id string) (*IncidentRole, error)
func (*Client) GetIncidentType ¶
func (c *Client) GetIncidentType(id string) (*IncidentType, error)
func (*Client) UpdateFunctionality ¶
func (c *Client) UpdateFunctionality(id string, f *Functionality) (*Functionality, error)
func (*Client) UpdateIncidentRole ¶
func (c *Client) UpdateIncidentRole(id string, i *IncidentRole) (*IncidentRole, error)
func (*Client) UpdateIncidentType ¶
func (c *Client) UpdateIncidentType(id string, i *IncidentType) (*IncidentType, error)
func (*Client) UpdateService ¶
func (*Client) UpdateSeverity ¶
type Functionality ¶
type IncidentRole ¶
type IncidentType ¶
type NotFoundError ¶
func NewNotFoundError ¶
func NewNotFoundError(message string) NotFoundError
func (NotFoundError) Error ¶
func (err NotFoundError) Error() string
type RequestError ¶
func NewRequestError ¶
func NewRequestError(StatusCode int, message string) RequestError
func (RequestError) Error ¶
func (err RequestError) Error() string
type Service ¶
type Service struct { ID string `jsonapi:"primary,services"` Name string `jsonapi:"attr,name,omitempty"` Slug string `jsonapi:"attr,slug,omitempty"` Color string `jsonapi:"attr,color,omitempty"` Description string `jsonapi:"attr,description,omitempty"` PublicDescription string `jsonapi:"attr,public_description,omitempty"` }
type Severity ¶
type Severity struct { ID string `jsonapi:"primary,severities"` Name string `jsonapi:"attr,name,omitempty"` Slug string `jsonapi:"attr,slug,omitempty"` Color string `jsonapi:"attr,color,omitempty"` Description string `jsonapi:"attr,description,omitempty"` Severity string `jsonapi:"attr,severity,omitempty"` }
Click to show internal directories.
Click to hide internal directories.