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.*StsTokenCredential.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
// StsTokenCredential is a kind of credentials
4
type StsTokenCredential struct {
5
	AccessKeyID     string
6
	AccessKeySecret string
7
	SecurityToken   string
8
}
9
10
func newStsTokenCredential(accessKeyID, accessKeySecret, securityToken string) *StsTokenCredential {
11
	return &StsTokenCredential{
12
		AccessKeyID:     accessKeyID,
13
		AccessKeySecret: accessKeySecret,
14
		SecurityToken:   securityToken,
15
	}
16
}
17
18
// GetAccessKeyID reutrns  StsTokenCredential's AccessKeyID
19
func (s *StsTokenCredential) GetAccessKeyId() (string, error) {
20
	return s.AccessKeyID, nil
21
}
22
23
// GetAccessSecret reutrns  StsTokenCredential's AccessKeySecret
24
func (s *StsTokenCredential) GetAccessKeySecret() (string, error) {
25
	return s.AccessKeySecret, nil
26
}
27
28
// GetSecurityToken reutrns  StsTokenCredential's SecurityToken
29
func (s *StsTokenCredential) GetSecurityToken() (string, error) {
30
	return s.SecurityToken, nil
31
}
32
33
// GetBearerToken is useless StsTokenCredential
34
func (s *StsTokenCredential) GetBearerToken() string {
35
	return ""
36
}
37
38
// GetType reutrns  StsTokenCredential's type
39
func (s *StsTokenCredential) GetType() string {
40
	return "sts"
41
}
42