mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Switch from govendor to go modules. (#587)
Thanks to @BenoitKnecht for leading the way on this.
This commit is contained in:
6
vendor/github.com/google/go-github/github/users_keys.go
generated
vendored
6
vendor/github.com/google/go-github/github/users_keys.go
generated
vendored
@ -12,7 +12,7 @@ import (
|
||||
|
||||
// Key represents a public SSH key used to authenticate a user or deploy script.
|
||||
type Key struct {
|
||||
ID *int `json:"id,omitempty"`
|
||||
ID *int64 `json:"id,omitempty"`
|
||||
Key *string `json:"key,omitempty"`
|
||||
URL *string `json:"url,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
@ -56,7 +56,7 @@ func (s *UsersService) ListKeys(ctx context.Context, user string, opt *ListOptio
|
||||
// GetKey fetches a single public key.
|
||||
//
|
||||
// GitHub API docs: https://developer.github.com/v3/users/keys/#get-a-single-public-key
|
||||
func (s *UsersService) GetKey(ctx context.Context, id int) (*Key, *Response, error) {
|
||||
func (s *UsersService) GetKey(ctx context.Context, id int64) (*Key, *Response, error) {
|
||||
u := fmt.Sprintf("user/keys/%v", id)
|
||||
|
||||
req, err := s.client.NewRequest("GET", u, nil)
|
||||
@ -96,7 +96,7 @@ func (s *UsersService) CreateKey(ctx context.Context, key *Key) (*Key, *Response
|
||||
// DeleteKey deletes a public key.
|
||||
//
|
||||
// GitHub API docs: https://developer.github.com/v3/users/keys/#delete-a-public-key
|
||||
func (s *UsersService) DeleteKey(ctx context.Context, id int) (*Response, error) {
|
||||
func (s *UsersService) DeleteKey(ctx context.Context, id int64) (*Response, error) {
|
||||
u := fmt.Sprintf("user/keys/%v", id)
|
||||
|
||||
req, err := s.client.NewRequest("DELETE", u, nil)
|
||||
|
Reference in New Issue
Block a user