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.
Passed
Pull Request — master (#5)
by
unknown
04:09
created

credentials/sts_credential.go   A

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 6
eloc 20
dl 0
loc 39
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A credentials.newStsTokenCredential 0 5 1
A credentials.*StsTokenCredential.GetSecurityToken 0 2 1
A credentials.*StsTokenCredential.GetAccessSecret 0 2 1
A credentials.*StsTokenCredential.GetBearerToken 0 2 1
A credentials.*StsTokenCredential.GetType 0 2 1
A credentials.*StsTokenCredential.GetAccessKeyID 0 2 1
1
package credentials
2
3
type StsTokenCredential struct {
0 ignored issues
show
introduced by
exported type StsTokenCredential should have comment or be unexported
Loading history...
4
	AccessKeyID     string
5
	AccessKeySecret string
6
	SecurityToken   string
7
}
8
9
func newStsTokenCredential(accessKeyID, accessKeySecret, securityToken string) *StsTokenCredential {
10
	return &StsTokenCredential{
11
		AccessKeyID:     accessKeyID,
12
		AccessKeySecret: accessKeySecret,
13
		SecurityToken:   securityToken,
14
	}
15
}
16
17
// GetAccessKeyID reutrns  StsTokenCredential's AccessKeyID
18
func (s *StsTokenCredential) GetAccessKeyID() (string, error) {
19
	return s.AccessKeyID, nil
20
}
21
22
// GetAccessSecret reutrns  StsTokenCredential's AccessKeySecret
23
func (s *StsTokenCredential) GetAccessSecret() (string, error) {
24
	return s.AccessKeySecret, nil
25
}
26
27
// GetSecurityToken reutrns  StsTokenCredential's SecurityToken
28
func (s *StsTokenCredential) GetSecurityToken() (string, error) {
29
	return s.SecurityToken, nil
30
}
31
32
// GetBearerToken is useless StsTokenCredential
33
func (s *StsTokenCredential) GetBearerToken() string {
34
	return ""
35
}
36
37
// GetType reutrns  StsTokenCredential's type
38
func (s *StsTokenCredential) GetType() string {
39
	return "sts"
40
}
41