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
Push — master ( b62427...a0b73a )
by
unknown
07:57
created

credentials.*BearerTokenCredential.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
import "github.com/alibabacloud-go/tea/tea"
4
5
// BearerTokenCredential is a kind of credential
6
type BearerTokenCredential struct {
7
	BearerToken string
8
}
9
10
// newBearerTokenCredential return a BearerTokenCredential object
11
func newBearerTokenCredential(token string) *BearerTokenCredential {
12
	return &BearerTokenCredential{
13
		BearerToken: token,
14
	}
15
}
16
17
func (s *BearerTokenCredential) GetCredential() (*CredentialModel, error) {
18
	credential := &CredentialModel{
19
		BearerToken: tea.String(s.BearerToken),
20
		Type:        tea.String("bearer"),
21
	}
22
	return credential, nil
23
}
24
25
// GetAccessKeyId is useless for BearerTokenCredential
26
func (b *BearerTokenCredential) GetAccessKeyId() (*string, error) {
27
	return tea.String(""), nil
28
}
29
30
// GetAccessSecret is useless for BearerTokenCredential
31
func (b *BearerTokenCredential) GetAccessKeySecret() (*string, error) {
32
	return tea.String(("")), nil
33
}
34
35
// GetSecurityToken is useless for BearerTokenCredential
36
func (b *BearerTokenCredential) GetSecurityToken() (*string, error) {
37
	return tea.String(""), nil
38
}
39
40
// GetBearerToken reutrns  BearerTokenCredential's BearerToken
41
func (b *BearerTokenCredential) GetBearerToken() *string {
42
	return tea.String(b.BearerToken)
43
}
44
45
// GetType reutrns  BearerTokenCredential's type
46
func (b *BearerTokenCredential) GetType() *string {
47
	return tea.String("bearer")
48
}
49