MCPcopy
hub / github.com/tsuru/tsuru / Token

Interface Token

types/auth/token.go:18–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16const TsuruTokenEmailDomain = "tsuru-team-token"
17
18type Token interface {
19 GetValue() string
20 GetUserName() string
21 User(ctx context.Context) (*User, error)
22 Engine() string
23 Permissions(ctx context.Context) ([]permission.Permission, error)
24}
25
26type NamedToken interface {
27 GetTokenName() string

Callers 29

TestLoginMethod · 0.65
TestAuthMethod · 0.65
TestSaveMethod · 0.65
TestOAuthLoginMethod · 0.65
TestOAuthAuthMethod · 0.65
TestGetTokenMethod · 0.65
TestOAuthLoginMethod · 0.65
TestLoginWithRSAKeyMethod · 0.65

Implementers 6

userTokenauth/team_token_test.go
APITokenauth/api_token.go
Tokenauth/peer/peer.go
tokenWrapperauth/oauth/token.go
jwtTokenauth/oidc/token.go
Tokenauth/native/token.go

Calls

no outgoing calls

Tested by

no test coverage detected