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

AccessKeySecret   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
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
package credentials
2
3
// BearerTokenCredential is a kind of credential
4
type BearerTokenCredential struct {
5
	BearerToken string
6
}
7
8
// newBearerTokenCredential return a BearerTokenCredential object
9
func newBearerTokenCredential(token string) *BearerTokenCredential {
10
	return &BearerTokenCredential{
11
		BearerToken: token,
12
	}
13
}
14
15
// GetAccessKeyID is useless for BearerTokenCredential
16
func (b *BearerTokenCredential) GetAccessKeyId() (string, error) {
17
	return "", nil
18
}
19
20
// GetAccessSecret is useless for BearerTokenCredential
21
func (b *BearerTokenCredential) GetAccessKeySecret() (string, error) {
22
	return "", nil
23
}
24
25
// GetSecurityToken is useless for BearerTokenCredential
26
func (b *BearerTokenCredential) GetSecurityToken() (string, error) {
27
	return "", nil
28
}
29
30
// GetBearerToken reutrns  BearerTokenCredential's BearerToken
31
func (b *BearerTokenCredential) GetBearerToken() string {
32
	return b.BearerToken
33
}
34
35
// GetType reutrns  BearerTokenCredential's type
36
func (b *BearerTokenCredential) GetType() string {
37
	return "bearer"
38
}
39