GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( ecef9a...1c7b65 )
by Jackson
08:09
created

credentials.*AccessKeyCredential.GetType   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
nop 0
1
package credentials
2
3
// AccessKeyCredential is a kind of credential
4
type AccessKeyCredential struct {
5
	AccessKeyID     string
6
	AccessKeySecret string
7
}
8
9
func newAccessKeyCredential(accessKeyID, accessKeySecret string) *AccessKeyCredential {
10
	return &AccessKeyCredential{
11
		AccessKeyID:     accessKeyID,
12
		AccessKeySecret: accessKeySecret,
13
	}
14
}
15
16
// GetAccessKeyID reutrns  AccessKeyCreential's AccessKeyID
17
func (a *AccessKeyCredential) GetAccessKeyId() (string, error) {
18
	return a.AccessKeyID, nil
19
}
20
21
// GetAccessSecret reutrns  AccessKeyCreential's AccessKeySecret
22
func (a *AccessKeyCredential) GetAccessKeySecret() (string, error) {
23
	return a.AccessKeySecret, nil
24
}
25
26
// GetSecurityToken is useless for AccessKeyCreential
27
func (a *AccessKeyCredential) GetSecurityToken() (string, error) {
28
	return "", nil
29
}
30
31
// GetBearerToken is useless for AccessKeyCreential
32
func (a *AccessKeyCredential) GetBearerToken() string {
33
	return ""
34
}
35
36
// GetType reutrns  AccessKeyCreential's type
37
func (a *AccessKeyCredential) GetType() string {
38
	return "access_key"
39
}
40