Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/marmotedu/iam
/ functions
Functions
1,506 in github.com/marmotedu/iam
⨍
Functions
1,506
◇
Types & classes
336
↓ 1 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/apiserver/store/mock_store.go:241
↓ 1 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/apiserver/store/mock_store.go:350
↓ 1 callers
Method
Enabled
Enabled tests whether this InfoLogger is enabled. For example, commandline flags might be used to set the logging verbosity and disable some info log
pkg/log/log.go:49
↓ 1 callers
Function
Errorw
Errorw method output error level log.
pkg/log/log.go:485
↓ 1 callers
Method
Exists
(string)
pkg/storage/storage.go:61
↓ 1 callers
Method
FindPoliciesForResource
FindPoliciesForResource returns policies that could match the resource. It either returns a set of policies that apply to the resource, or a superset
internal/authzserver/authorization/manager.go:84
↓ 1 callers
Method
FindPoliciesForSubject
FindPoliciesForSubject returns policies that could match the subject. It either returns a set of policies that applies to the subject, or a superset o
internal/authzserver/authorization/manager.go:77
↓ 1 callers
Method
FindRequestCandidates
FindRequestCandidates returns candidates that could match the request object. It either returns a set that exactly matches the request, or a superset
internal/authzserver/authorization/manager.go:54
↓ 1 callers
Method
FlagErrorFunc
(exposedFlags ...string)
internal/iamctl/util/templates/templater.go:59
↓ 1 callers
Function
FormatBaseName
FormatBaseName is formatted as an executable file name under different operating systems according to the given name.
pkg/app/cmd.go:123
↓ 1 callers
Method
Get
Get retrieves a policy.
internal/authzserver/authorization/manager.go:37
↓ 1 callers
Method
Get
Get get an user by the user identifier.
internal/apiserver/controller/v1/user/get.go:16
↓ 1 callers
Method
Get
(ctx context.Context, username string, name string, opts metav1.GetOptions)
internal/apiserver/service/v1/policy.go:24
↓ 1 callers
Method
Get
(ctx context.Context, username, secretID string, opts metav1.GetOptions)
internal/apiserver/service/v1/secret.go:24
↓ 1 callers
Method
Get
(ctx context.Context, username string, opts metav1.GetOptions)
internal/apiserver/service/v1/user.go:172
↓ 1 callers
Function
GetAPIServerFactoryOrDie
GetAPIServerFactoryOrDie return cache instance and panics on any error.
internal/authzserver/store/apiserver/apiserver.go:36
↓ 1 callers
Method
GetAll
GetAll retrieves all policies.
internal/authzserver/authorization/manager.go:47
↓ 1 callers
Method
GetAndDeleteSet
(string)
internal/pump/storage/store.go:13
↓ 1 callers
Function
GetCacheInsOr
GetCacheInsOr return cache server instance with given factory.
internal/apiserver/controller/v1/cache/cache.go:33
↓ 1 callers
Function
GetDefaultLogFormatterWithRequestID
GetDefaultLogFormatterWithRequestID returns gin.LogFormatter with 'RequestID'.
internal/pkg/middleware/requestid.go:55
↓ 1 callers
Method
GetEtcdTLSConfig
GetEtcdTLSConfig returns etcd tls config.
internal/pkg/options/etcd_options.go:86
↓ 1 callers
Method
GetExp
GetExp return the expiry of the given key.
pkg/storage/redis_cluster.go:493
↓ 1 callers
Method
GetFieldNames
GetFieldNames returns all the AnalyticsRecord field names.
internal/pump/analytics/analytics.go:28
↓ 1 callers
Method
GetFilters
()
internal/pump/pumps/pump.go:21
↓ 1 callers
Method
GetKeys
GetKeys will return all keys according to the filter (filter is a prefix - e.g. tyk.keys.*).
pkg/storage/redis_cluster.go:593
↓ 1 callers
Method
GetKeysAndValuesWithFilter
GetKeysAndValuesWithFilter will return all keys and their values with a filter.
pkg/storage/redis_cluster.go:664
↓ 1 callers
Method
GetLineValues
GetLineValues returns all the line values.
internal/pump/analytics/analytics.go:41
↓ 1 callers
Function
GetLoggerConfig
GetLoggerConfig return gin.LoggerConfig which will write the logs to specified io.Writer with given gin.LogFormatter. By default gin.DefaultWriter = o
internal/pkg/middleware/requestid.go:42
↓ 1 callers
Method
GetName
()
pkg/shutdown/shutdown.go:190
↓ 1 callers
Method
GetOmitDetailedRecording
()
internal/pump/pumps/pump.go:25
↓ 1 callers
Method
GetPolicy
(key string)
internal/authzserver/authorization/authorizer/authorizer.go:22
↓ 1 callers
Method
GetSecret
GetSecret return secret detail for the given key.
internal/authzserver/load/cache/cache.go:77
↓ 1 callers
Method
GetTimeout
()
internal/pump/pumps/pump.go:23
↓ 1 callers
Method
Has
(c *cobra.Command)
internal/iamctl/util/templates/command_groups.go:24
↓ 1 callers
Function
Infow
Infow method output info level log.
pkg/log/log.go:431
↓ 1 callers
Method
Init
(ctx context.Context, rs *redsync.Mutex, config interface{})
internal/watcher/watcher/registry.go:18
↓ 1 callers
Function
InitLogger
InitLogger init klog by zap logger.
pkg/log/klog/logger.go:30
↓ 1 callers
Method
InstallAPIs
InstallAPIs install generic apis.
internal/pkg/server/genericapiserver.go:59
↓ 1 callers
Method
InstallMiddlewares
InstallMiddlewares install generic middlewares.
internal/pkg/server/genericapiserver.go:91
↓ 1 callers
Function
KeyExpired
KeyExpired checks if a key has expired, if the value of user.SessionState.Expires is 0, it will be ignored.
internal/pkg/middleware/auth/cache.go:107
↓ 1 callers
Method
L
(ctx context.Context)
pkg/log/log.go:552
↓ 1 callers
Method
List
List list the users in the storage. Only administrator can call this function.
internal/apiserver/controller/v1/user/list.go:19
↓ 1 callers
Method
List
(ctx context.Context, username string, opts metav1.ListOptions)
internal/apiserver/service/v1/policy.go:25
↓ 1 callers
Method
List
(ctx context.Context, username string, opts metav1.ListOptions)
internal/apiserver/service/v1/secret.go:25
↓ 1 callers
Function
ListWatchers
ListWatchers returns registered watchers in map format.
internal/watcher/watcher/registry.go:64
↓ 1 callers
Method
ListWithBadPerformance
ListWithBadPerformance returns user list in the storage. This function has a bad performance.
internal/apiserver/service/v1/user.go:114
↓ 1 callers
Method
LogGrantedAccessRequest
LogGrantedAccessRequest write granted subject access to log.
internal/authzserver/authorization/logger.go:32
↓ 1 callers
Method
LogRejectedAccessRequest
LogRejectedAccessRequest write rejected subject access to log.
internal/authzserver/authorization/logger.go:26
↓ 1 callers
Function
Logger
Logger instances a Logger middleware that will write the logs to gin.DefaultWriter. By default gin.DefaultWriter = os.Stdout.
internal/pkg/middleware/logger.go:46
↓ 1 callers
Function
MainHelpTemplate
MainHelpTemplate if the template for 'help' used by most commands.
internal/iamctl/util/templates/templates.go:63
↓ 1 callers
Function
MainUsageTemplate
MainUsageTemplate if the template for 'usage' used by most commands.
internal/iamctl/util/templates/templates.go:68
↓ 1 callers
Function
MarkdownPostProcessing
MarkdownPostProcessing goes though the generated files.
cmd/geniamdocs/postprocessing.go:16
↓ 1 callers
Function
MultipleErrors
MultipleErrors returns a newline delimited string containing the prefix and referenced errors in standard form.
internal/iamctl/cmd/util/helpers.go:172
↓ 1 callers
Function
New
New create a gorm logger instance.
internal/pkg/logger/logger.go:59
↓ 1 callers
Function
New
New creates a new handler that guarantees all notify functions are run after the critical section exits (or is interrupted by the OS), then invokes th
internal/iamctl/util/interrupt/interrupt.go:43
↓ 1 callers
Function
NewAnalytics
NewAnalytics returns a new analytics instance.
internal/authzserver/analytics/analytics.go:64
↓ 1 callers
Function
NewAnalyticsOptions
NewAnalyticsOptions creates a AnalyticsOptions object with default parameters.
internal/authzserver/analytics/analytics_options.go:25
↓ 1 callers
Function
NewAuthorization
NewAuthorization create a new Authorization instance.
internal/authzserver/authorization/authorizer/authorizer.go:31
↓ 1 callers
Function
NewAuthzController
NewAuthzController creates a authorize handler.
internal/authzserver/controller/v1/authorize/authorize.go:25
↓ 1 callers
Function
NewAutoStrategy
NewAutoStrategy create auto strategy with basic strategy and jwt strategy.
internal/pkg/middleware/auth/auto.go:30
↓ 1 callers
Function
NewBasicStrategy
NewBasicStrategy create basic strategy with compare function.
internal/pkg/middleware/auth/basic.go:27
↓ 1 callers
Function
NewCacheStrategy
NewCacheStrategy create cache strategy with function which can list and cache secrets.
internal/pkg/middleware/auth/cache.go:43
↓ 1 callers
Function
NewCmdColor
NewCmdColor returns new initialized instance of color sub command.
internal/iamctl/cmd/color/color.go:184
↓ 1 callers
Function
NewCmdCompletion
NewCmdCompletion creates the `completion` command.
internal/iamctl/cmd/completion/completion.go:72
↓ 1 callers
Function
NewCmdCreate
NewCmdCreate returns new initialized instance of create sub command.
internal/iamctl/cmd/policy/policy_create.go:54
↓ 1 callers
Function
NewCmdCreate
NewCmdCreate returns new initialized instance of create sub command.
internal/iamctl/cmd/user/user_create.go:61
↓ 1 callers
Function
NewCmdCreate
NewCmdCreate returns new initialized instance of create sub command.
internal/iamctl/cmd/secret/secret_create.go:65
↓ 1 callers
Function
NewCmdDelete
NewCmdDelete returns new initialized instance of delete sub command.
internal/iamctl/cmd/policy/policy_delete.go:51
↓ 1 callers
Function
NewCmdDelete
NewCmdDelete returns new initialized instance of delete sub command.
internal/iamctl/cmd/user/user_delete.go:51
↓ 1 callers
Function
NewCmdDelete
NewCmdDelete returns new initialized instance of delete sub command.
internal/iamctl/cmd/secret/secret_delete.go:52
↓ 1 callers
Function
NewCmdGet
NewCmdGet returns new initialized instance of get sub command.
internal/iamctl/cmd/policy/policy_get.go:51
↓ 1 callers
Function
NewCmdGet
NewCmdGet returns new initialized instance of get sub command.
internal/iamctl/cmd/user/user_get.go:49
↓ 1 callers
Function
NewCmdGet
NewCmdGet returns new initialized instance of get sub command.
internal/iamctl/cmd/secret/secret_get.go:51
↓ 1 callers
Function
NewCmdInfo
NewCmdInfo returns new initialized instance of 'info' sub command.
internal/iamctl/cmd/info/info.go:49
↓ 1 callers
Function
NewCmdJWT
NewCmdJWT returns new initialized instance of 'jwt' sub command.
internal/iamctl/cmd/jwt/jwt.go:22
↓ 1 callers
Function
NewCmdList
NewCmdList returns new initialized instance of list sub command.
internal/iamctl/cmd/policy/policy_list.go:53
↓ 1 callers
Function
NewCmdList
NewCmdList returns new initialized instance of list sub command.
internal/iamctl/cmd/user/user_list.go:50
↓ 1 callers
Function
NewCmdList
NewCmdList returns new initialized instance of list sub command.
internal/iamctl/cmd/secret/secret_list.go:51
↓ 1 callers
Function
NewCmdNew
NewCmdNew returns new initialized instance of 'new' sub command.
internal/iamctl/cmd/new/new.go:522
↓ 1 callers
Function
NewCmdOptions
NewCmdOptions implements the options command.
internal/iamctl/cmd/options/options.go:21
↓ 1 callers
Function
NewCmdPolicy
NewCmdPolicy returns new initialized instance of 'policy' sub command.
internal/iamctl/cmd/policy/policy.go:22
↓ 1 callers
Function
NewCmdSecret
NewCmdSecret returns new initialized instance of 'secret' sub command.
internal/iamctl/cmd/secret/secret.go:23
↓ 1 callers
Function
NewCmdSet
NewCmdSet returns an initialized Command instance for 'set' sub command.
internal/iamctl/cmd/set/set.go:22
↓ 1 callers
Function
NewCmdShow
NewCmdShow returns new initialized instance of show sub command.
internal/iamctl/cmd/jwt/jwt_show.go:49
↓ 1 callers
Function
NewCmdSign
NewCmdSign returns new initialized instance of sign sub command.
internal/iamctl/cmd/jwt/jwt_sign.go:70
↓ 1 callers
Function
NewCmdUpdate
NewCmdUpdate returns new initialized instance of update sub command.
internal/iamctl/cmd/policy/policy_update.go:54
↓ 1 callers
Function
NewCmdUpdate
NewCmdUpdate returns new initialized instance of update sub command.
internal/iamctl/cmd/user/user_update.go:60
↓ 1 callers
Function
NewCmdUpdate
NewCmdUpdate returns new initialized instance of update sub command.
internal/iamctl/cmd/secret/secret_update.go:55
↓ 1 callers
Function
NewCmdUser
NewCmdUser returns new initialized instance of 'user' sub command.
internal/iamctl/cmd/user/user.go:23
↓ 1 callers
Function
NewCmdValidate
NewCmdValidate returns new initialized instance of 'validate' sub command.
internal/iamctl/cmd/validate/validate.go:48
↓ 1 callers
Function
NewCmdVerify
NewCmdVerify returns new initialized instance of verify sub command.
internal/iamctl/cmd/jwt/jwt_verify.go:53
↓ 1 callers
Function
NewCmdVersion
NewCmdVersion returns a cobra command for fetching versions.
internal/iamctl/cmd/version/version.go:52
↓ 1 callers
Function
NewColorOptions
NewColorOptions returns an initialized ColorOptions instance.
internal/iamctl/cmd/color/color.go:175
↓ 1 callers
Function
NewConfigFlags
NewConfigFlags returns ConfigFlags with default values set.
pkg/cli/genericclioptions/config_flags.go:216
↓ 1 callers
Function
NewCreateOptions
NewCreateOptions returns an initialized CreateOptions instance.
internal/iamctl/cmd/policy/policy_create.go:47
↓ 1 callers
Function
NewCreateOptions
NewCreateOptions returns an initialized CreateOptions instance.
internal/iamctl/cmd/user/user_create.go:54
↓ 1 callers
Function
NewCreateOptions
NewCreateOptions returns an initialized CreateOptions instance.
internal/iamctl/cmd/secret/secret_create.go:57
↓ 1 callers
Function
NewDBOptions
NewDBOptions returns an initialized DBOptions instance.
internal/iamctl/cmd/set/set_db.go:47
↓ 1 callers
Function
NewDeleteOptions
NewDeleteOptions returns an initialized DeleteOptions instance.
internal/iamctl/cmd/policy/policy_delete.go:44
↓ 1 callers
Function
NewDeleteOptions
NewDeleteOptions returns an initialized DeleteOptions instance.
internal/iamctl/cmd/user/user_delete.go:44
← previous
next →
301–400 of 1,506, ranked by callers