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/bearer_token_credential.go   A

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 6
eloc 16
dl 0
loc 37
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A credentials.newBearerTokenCredential 0 3 1
A credentials.*BearerTokenCredential.GetSecurityToken 0 2 1
A credentials.*BearerTokenCredential.GetType 0 2 1
A credentials.*BearerTokenCredential.GetBearerToken 0 2 1
A credentials.*BearerTokenCredential.GetAccessKeySecret 0 2 1
A credentials.*BearerTokenCredential.GetAccessKeyId 0 2 1
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