Documentation ¶
Index ¶
- type Client
- type ClientKey
- type ClientKeyDSN
- type ErrorResponse
- type Fake
- func (s *Fake) CreateClientKey(ctx context.Context, org, proj, name string) (*ClientKey, *http.Response, error)
- func (s *Fake) CreateProject(ctx context.Context, org, team, name, slug string) (*Project, *http.Response, error)
- func (s *Fake) CreateTeam(ctx context.Context, org, name, slug string) (*Team, *http.Response, error)
- func (s *Fake) DeleteClientKey(ctx context.Context, org, proj, id string) (*http.Response, error)
- func (s *Fake) DeleteProject(ctx context.Context, org, slug string) (*http.Response, error)
- func (s *Fake) DeleteTeam(ctx context.Context, org, slug string) (*http.Response, error)
- func (s *Fake) GetClientKeys(ctx context.Context, org, proj string) ([]*ClientKey, *http.Response, error)
- func (s *Fake) GetOrganization(ctx context.Context, slug string) (*Organization, *http.Response, error)
- func (s *Fake) GetProject(ctx context.Context, org, slug string) (*Project, *http.Response, error)
- func (s *Fake) GetTeam(ctx context.Context, org, slug string) (*Team, *http.Response, error)
- func (s *Fake) UpdateClientKey(ctx context.Context, org, proj, id, name string) (*http.Response, error)
- func (s *Fake) UpdateProject(ctx context.Context, org, slug, newName, newSlug string) (*Project, *http.Response, error)
- func (s *Fake) UpdateTeam(ctx context.Context, org, slug, newName, newSlug string) (*Team, *http.Response, error)
- type Organization
- type Project
- type Team
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetOrganization(ctx context.Context, slug string) (*Organization, *http.Response, error) GetTeam(ctx context.Context, org, slug string) (*Team, *http.Response, error) CreateTeam(ctx context.Context, org, name, slug string) (*Team, *http.Response, error) UpdateTeam(ctx context.Context, org, slug, newName, newSlug string) (*Team, *http.Response, error) DeleteTeam(ctx context.Context, org, slug string) (*http.Response, error) GetProject(ctx context.Context, org, slug string) (*Project, *http.Response, error) CreateProject(ctx context.Context, org, team, name, slug string) (*Project, *http.Response, error) UpdateProject(ctx context.Context, org, slug, newName, newSlug string) (*Project, *http.Response, error) DeleteProject(ctx context.Context, org, slug string) (*http.Response, error) GetClientKeys(ctx context.Context, org, proj string) ([]*ClientKey, *http.Response, error) CreateClientKey(ctx context.Context, org, proj, name string) (*ClientKey, *http.Response, error) UpdateClientKey(ctx context.Context, org, proj, id, name string) (*http.Response, error) DeleteClientKey(ctx context.Context, org, proj, id string) (*http.Response, error) }
type ClientKey ¶
type ClientKey struct { ID string `json:"id"` Name string `json:"name"` DSN *ClientKeyDSN `json:"dsn"` }
type ClientKeyDSN ¶
type ErrorResponse ¶
func (*ErrorResponse) Error ¶
func (e *ErrorResponse) Error() string
type Fake ¶
type Fake struct { Orgs []*Organization Teams []*Team Projects []*Project ClientKeys []*ClientKey }
Fake is a fake implementation of the Client interface.
func (*Fake) CreateClientKey ¶
func (*Fake) CreateProject ¶
func (*Fake) CreateTeam ¶
func (*Fake) DeleteClientKey ¶
func (*Fake) DeleteProject ¶
func (*Fake) DeleteTeam ¶
func (*Fake) GetClientKeys ¶
func (*Fake) GetOrganization ¶
func (*Fake) GetProject ¶
func (*Fake) UpdateClientKey ¶
func (*Fake) UpdateProject ¶
type Organization ¶
type Organization struct {
Slug string `json:"slug"`
}
Click to show internal directories.
Click to hide internal directories.