Versions in this module Expand all Collapse all v0 v0.1.0 Mar 13, 2024 Changes in this version + const DefaultEndpoint + const DefaultHost + const DefaultTimeout + const MembersEndpointName + const OrgEndpointName + const UsersEndpointName + var AlertRuleMatchAll = alertRuleMatchPolicy("all") + var AlertRuleMatchAny = alertRuleMatchPolicy("any") + var AlertRuleMatchNone = alertRuleMatchPolicy("none") + type APIError struct + Detail string + StatusCode int + func (s APIError) Error() string + type Activity struct + Data *map[string]interface{} + DateCreated *time.Time + ID *string + Type *string + User *InternalUser + type AlertFilters struct + Attribute string + ComparisonType string + ID string + Key string + Level string + Match string + Name string + TargetIdentifier string + TargetType string + Time string + Value interface{} + type AlertRule struct + ActionMatch alertRuleMatchPolicy + Actions []AlertRuleAction + Conditions []AlertRuleCondition + DateCreated *time.Time + Environment *string + FilterMatch alertRuleMatchPolicy + Filters []AlertFilters + Frequency uint + ID string + Name string + Owner string + Status string + type AlertRuleAction struct + Account string + Channel string + ChannelID string + FallThroughType string + ID string + Name string + Service string + Tags string + TargetIdentifier uint + TargetType string + Workspace string + type AlertRuleCondition struct + Attribute string + ID string + Interval string + Key string + Name string + Value interface{} + type Asset struct + URL string + type Avatar struct + AvatarType *string + AvatarUUID *string + type Client struct + AuthToken string + Endpoint string + HTTPClient *http.Client + func NewClient(authtoken string, endpoint *string, timeout *int) (*Client, error) + func (c *Client) AddAlertRule(o Organization, p Project, r AlertRule) (AlertRule, error) + func (c *Client) AddExistingMemberToTeam(o Organization, t Team, m Member) error + func (c *Client) BulkDeleteIssues(o Organization, p Project, issues []string) error + func (c *Client) BulkMutateIssues(o Organization, p Project, req IssueBulkRequest, issues *[]string, ...) (IssueBulkResponse, error) + func (c *Client) CreateClientKey(o Organization, p Project, name string) (Key, error) + func (c *Client) CreateMember(o Organization, email string) (Member, error) + func (c *Client) CreateOrganization(orgname string) (Organization, error) + func (c *Client) CreateProject(o Organization, t Team, name string, slug *string) (Project, error) + func (c *Client) CreateRelease(o Organization, p Project, r NewRelease) (Release, error) + func (c *Client) CreateTeam(o Organization, name string, slug *string) (Team, error) + func (c *Client) DeleteAlertRule(o Organization, p Project, r AlertRule) error + func (c *Client) DeleteClientKey(o Organization, p Project, k Key) error + func (c *Client) DeleteIssue(i Issue) error + func (c *Client) DeleteMember(o Organization, m Member) error + func (c *Client) DeleteOrganization(org Organization) error + func (c *Client) DeleteProject(o Organization, p Project) error + func (c *Client) DeleteRelease(o Organization, p Project, r Release) error + func (c *Client) DeleteReleaseFile(o Organization, p Project, r Release, f File) error + func (c *Client) DeleteTeam(o Organization, t Team) error + func (c *Client) DisablePlugin(o Organization, p Project, pluginID string) error + func (c *Client) EnablePlugin(o Organization, p Project, pluginID string) error + func (c *Client) GetAlertRules(o Organization, p Project) ([]AlertRule, *Link, error) + func (c *Client) GetClientKeys(o Organization, p Project) ([]Key, error) + func (c *Client) GetIssue(id string) (Issue, error) + func (c *Client) GetIssueEvents(i Issue) ([]Event, *Link, error) + func (c *Client) GetIssueHashes(i Issue) ([]Hash, *Link, error) + func (c *Client) GetIssueTag(i Issue, tagname string) (IssueTag, error) + func (c *Client) GetIssueTagValues(i Issue, tag IssueTag) ([]IssueTagValue, *Link, error) + func (c *Client) GetIssueTags(i Issue) ([]IssueTag, *Link, error) + func (c *Client) GetIssues(o Organization, p Project, StatsPeriod *string, ShortIDLookup *bool, ...) ([]Issue, *Link, error) + func (c *Client) GetLatestEvent(i Issue) (Event, error) + func (c *Client) GetMemberByEmail(o Organization, memberEmail string) (Member, error) + func (c *Client) GetOldestEvent(i Issue) (Event, error) + func (c *Client) GetOrgProjects(o Organization) ([]Project, *Link, error) + func (c *Client) GetOrganization(orgslug string) (Organization, error) + func (c *Client) GetOrganizationMember(orgslug string, memberID string) (Member, error) + func (c *Client) GetOrganizationStats(org Organization, stat StatQuery, since, until int64, resolution *string) ([]Stat, error) + func (c *Client) GetOrganizationTeams(o Organization) ([]Team, error) + func (c *Client) GetOrganizations() ([]Organization, *Link, error) + func (c *Client) GetPage(p Page, out interface{}) (*Link, error) + func (c *Client) GetPlugin(o Organization, p Project, pluginID string) (plugin Plugin, err error) + func (c *Client) GetProject(o Organization, projslug string) (Project, error) + func (c *Client) GetProjectEvent(o Organization, p Project, eventID string) (Event, error) + func (c *Client) GetProjectStats(o Organization, p Project, stat StatQuery, since, until int64, ...) ([]Stat, error) + func (c *Client) GetProjectUserFeedback(o Organization, p Project) ([]UserFeedback, *Link, error) + func (c *Client) GetProjects() ([]Project, *Link, error) + func (c *Client) GetRelease(o Organization, p Project, version string) (Release, error) + func (c *Client) GetReleaseFile(o Organization, p Project, r Release, id string) (File, error) + func (c *Client) GetReleaseFiles(o Organization, p Project, r Release) ([]File, error) + func (c *Client) GetReleases(o Organization, p Project) ([]Release, *Link, error) + func (c *Client) GetTeam(o Organization, teamSlug string) (Team, error) + func (c *Client) GetTeamProjects(o Organization, t Team) ([]Project, error) + func (c *Client) GetTeamStats(o Organization, t Team, stat StatQuery, since, until int64, resolution *string) ([]Stat, error) + func (c *Client) GetTeams(o Organization) ([]Team, *Link, error) + func (c *Client) ListOrganizationUsers(orgslug string) ([]User, error) + func (c *Client) MakeAdmin(o Organization, a Member) error + func (c *Client) SetClientKeyRateLimit(o Organization, p Project, k Key, count, window int) (Key, error) + func (c *Client) SetPluginConfig(o Organization, p Project, pluginID string, config map[string]interface{}) (plugin Plugin, err error) + func (c *Client) SubmitUserFeedback(o Organization, p Project, u *UserFeedback) error + func (c *Client) UpdateAlertRule(o Organization, p Project, r AlertRule) (AlertRule, error) + func (c *Client) UpdateClientKey(o Organization, p Project, k Key, name string) (Key, error) + func (c *Client) UpdateIssue(i Issue) error + func (c *Client) UpdateOrganization(org Organization) error + func (c *Client) UpdateProject(o Organization, p Project) error + func (c *Client) UpdateRelease(o Organization, p Project, r Release) error + func (c *Client) UpdateReleaseFile(o Organization, p Project, r Release, f File) error + func (c *Client) UpdateTeam(o Organization, t Team) error + func (c *Client) UploadReleaseFile(o Organization, p Project, r Release, name string, buffer io.Reader, ...) (File, error) + type DSN struct + CSP string + Public string + Secret string + type Entry struct + Data json.RawMessage + Type string + func (e *Entry) GetInterface() (string, interface{}, error) + type Event struct + Context *map[string]interface{} + Contexts *map[string]interface{} + DateCreated *time.Time + DateReceived *time.Time + Entries []Entry + EventID string + GroupID *string + ID *string + Message *string + Metadata *map[string]string + NextEventID *string + Packages *map[string]string + Platform *string + PreviousEventID *string + Release *Release + SDK *map[string]interface{} + Size *int + Tags *[]Tag + Type *string + User *User + UserReport *string + type File struct + DateCreated time.Time + Headers map[string]string + ID string + Name string + SHA1 string + Size int + type Hash struct + ID string + type InternalUser struct + AvatarURL *string + DateJoined *time.Time + Email *string + Has2FA *bool + ID *string + IsActive *bool + IsManaged *bool + LastLogin *time.Time + Name *string + Username *string + type Issue struct + Activity *[]Activity + Annotations *[]string + AssignedTo *InternalUser + Count *string + Culprit *string + FirstSeen *time.Time + HasSeen *bool + ID *string + IsBookmarked *bool + IsPublic *bool + IsSubscribed *bool + LastSeen *time.Time + Level *string + Logger *string + Metadata *map[string]interface{} + NumComments *int + Permalink *string + Project *Project + ShareID *string + ShortID *string + Stats *IssueStats + Status *Status + StatusDetails *map[string]interface{} + SubscriptionDetails *map[string]string + Tags *[]IssueTag + Title *string + Type *string + UserCount *int + UserReportCount *int + type IssueBulkRequest struct + HasSeen *bool + IgnoreDuration *int + IsBookmarked *bool + IsPublic *bool + Merge *bool + Status *Status + type IssueBulkResponse struct + IsPublic *bool + Status *Status + StatusDetails *map[string]string + type IssueStats struct + FourteenDays *[]Stat + ThirtyDays *[]Stat + TwentyFourHour *[]Stat + type IssueTag struct + ID string + Key string + Name string + TopValues []IssueTagValue + UniqueValues int + type IssueTagValue struct + Count *int64 + FirstSeen *time.Time + ID *string + Key *string + LastSeen *time.Time + Name *string + Value *string + type Key struct + DSN DSN + DateCreated time.Time + ID string + Label string + Public string + RateLimit *KeyRateLimit + Secret string + type KeyRateLimit struct + Count int + Window int + type Link struct + Next Page + Previous Page + func NewLink(linkheader string) *Link + type Member struct + DateCreated *time.Time + Email string + Expired *bool + ID *string + IsPending *bool + Name *string + Role string + RoleName *string + Teams []string + type NewRelease struct + DateReleased *time.Time + DateStarted *time.Time + Ref *string + URL *string + Version string + type Organization struct + DateCreated *time.Time + Features *[]string + ID *string + IsEarlyAdopter *bool + Name string + PendingAccessRequest *int + Quota *Quota + Slug *string + Teams *[]Team + type Page struct + Results bool + URL string + type Plugin struct + Assets []Asset + CanDisable bool + Config []PluginConfigItem + Enabled bool + ID string + IsTestable bool + Metadata map[string]interface{} + Name string + Type string + type PluginConfigItem struct + Choices []interface{} + DefaultValue interface{} + Help string + Label string + Name string + Placeholder string + ReadOnly bool + Required bool + Type string + Value interface{} + type Project struct + CallSign string + CallSignReviewed bool + Color *string + DateCreated *time.Time + DefaultEnvironment *string + DigestMaxDelay *int + DigestMinDelay *int + FirstEvent *time.Time + ID string + IsBookmarked bool + IsPublic bool + Name string + Options *map[string]interface{} + Organization *Organization + Platforms *[]string + Plugins *[]Plugin + Slug *string + Status string + Team *Team + VerifySSL *bool + type QueryArgs interface + ToQueryString func() string + type Quota struct + MaxRate int + ProjectLimit int + type Release struct + DateCreated *time.Time + DateReleased *time.Time + DateStarted *time.Time + FirstEvent *time.Time + LastEvent *time.Time + NewGroups *int + Owner *string + Ref *string + ShortVersion string + URL *string + Version string + type Stat [2]float64 + type StatQuery string + const StatBlacklisted + const StatReceived + const StatRejected + type Status string + const Ignored + const Resolved + const Unresolved + type Tag struct + Key *string + Value *string + type Team struct + DateCreated *time.Time + HasAccess *bool + ID *string + IsMember *bool + IsPending *bool + Name string + Projects *[]Project + Slug *string + type User struct + Email *string + ID *string + Name *string + Projects []string + Role *string + RoleName *string + Username *string + type UserFeedback struct + Comments *string + DateCreated *time.Time + Email *string + EventID *string + ID *string + Issue *Issue + Name *string + func NewUserFeedback(name, comments, email, eventID string) UserFeedback