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
Update
Update update a user info by the user identifier.
internal/apiserver/controller/v1/user/update.go:19
↓ 1 callers
Method
Update
(ctx context.Context, policy *v1.Policy, opts metav1.UpdateOptions)
internal/apiserver/service/v1/policy.go:21
↓ 1 callers
Method
Update
(ctx context.Context, secret *v1.Secret, opts metav1.UpdateOptions)
internal/apiserver/service/v1/secret.go:21
↓ 1 callers
Method
Update
(ctx context.Context, user *v1.User, opts metav1.UpdateOptions)
internal/apiserver/service/v1/user.go:181
↓ 1 callers
Function
UsageErrorf
UsageErrorf returns error with command path.
internal/iamctl/cmd/util/helpers.go:190
↓ 1 callers
Function
UseOptionsTemplates
(cmd *cobra.Command)
internal/iamctl/util/templates/templater.go:42
↓ 1 callers
Method
Users
()
internal/apiserver/service/v1/service.go:29
↓ 1 callers
Method
V
V returns an InfoLogger value for a specific verbosity level. A higher verbosity level means a log message is less important. It's illegal to pass a
pkg/log/log.go:77
↓ 1 callers
Method
Validate
Validate validate the options fields.
pkg/log/options.go:74
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/policy/policy_delete.go:92
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/policy/policy_list.go:91
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/policy/policy_get.go:92
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/policy/policy_create.go:109
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/policy/policy_update.go:107
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/user/user_list.go:88
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/user/user_create.go:121
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/user/user_get.go:89
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/user/user_delete.go:91
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/user/user_update.go:103
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/new/new.go:563
↓ 1 callers
Method
Validate
Validate validates the provided options.
internal/iamctl/cmd/version/version.go:94
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/set/set_db.go:105
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/color/color.go:228
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/validate/validate.go:76
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/secret/secret_list.go:88
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/secret/secret_get.go:91
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/secret/secret_delete.go:92
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/secret/secret_create.go:117
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/secret/secret_update.go:104
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/jwt/jwt_verify.go:92
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/jwt/jwt_sign.go:129
↓ 1 callers
Method
Validate
Validate makes sure there is no discrepency in command options.
internal/iamctl/cmd/jwt/jwt_show.go:87
↓ 1 callers
Function
Validation
Validation make sure users have the right resource permission and operation.
internal/pkg/middleware/user_validation.go:20
↓ 1 callers
Method
WithDeprecatedPasswordFlag
WithDeprecatedPasswordFlag enables the username and password config flags.
pkg/cli/genericclioptions/config_flags.go:200
↓ 1 callers
Method
WithDeprecatedSecretFlag
WithDeprecatedSecretFlag enables the secretID and secretKey config flags.
pkg/cli/genericclioptions/config_flags.go:208
↓ 1 callers
Method
WithValues
WithValues adds some key-value pairs of context to a logger. See Info for documentation on how key/value pairs work.
pkg/log/log.go:82
↓ 1 callers
Method
Write
(lvl zapcore.Level, msg string, fields []zap.Field, caller *runtime.Frame)
pkg/log/logrus/hook.go:66
↓ 1 callers
Method
WriteData
(context.Context, []interface{})
internal/pump/pumps/pump.go:19
↓ 1 callers
Function
addCmdTemplate
(cmd *cobra.Command, namedFlagSets cliflag.NamedFlagSets)
pkg/app/app.go:297
↓ 1 callers
Function
addConfigFlag
addConfigFlag adds flags for a specific server to the specified FlagSet object.
pkg/app/config.go:32
↓ 1 callers
Function
addHelpCommandFlag
addHelpCommandFlag adds flags for a specific command of application to the specified FlagSet object.
pkg/app/help.go:50
↓ 1 callers
Method
addPackage
addPackage adds a type checked Package and its syntax files to the generator.
tools/codegen/codegen.go:219
↓ 1 callers
Function
addProfilingFlags
(flags *pflag.FlagSet)
internal/iamctl/cmd/profiling.go:21
↓ 1 callers
Method
addWatchers
()
internal/watcher/watcher.go:56
↓ 1 callers
Method
applyOptionRules
()
pkg/app/app.go:274
↓ 1 callers
Function
authenticator
()
internal/apiserver/auth.go:99
↓ 1 callers
Function
authorizator
()
internal/apiserver/auth.go:206
↓ 1 callers
Function
bindUser
()
examples/error/main.go:55
↓ 1 callers
Method
buildCommand
()
pkg/app/app.go:172
↓ 1 callers
Function
buildExtraConfig
nolint: unparam
internal/apiserver/server.go:171
↓ 1 callers
Function
buildGenericConfig
(cfg *config.Config)
internal/authzserver/server.go:107
↓ 1 callers
Function
buildGenericConfig
(cfg *config.Config)
internal/apiserver/server.go:149
↓ 1 callers
Method
buildStorageConfig
()
internal/authzserver/server.go:128
↓ 1 callers
Method
capCollection
()
internal/pump/pumps/mongo.go:285
↓ 1 callers
Method
checkMatchingServerVersion
()
internal/iamctl/cmd/util/iam_match_version.go:37
↓ 1 callers
Function
cleanDatabase
cleanDatabase tear downs the database tables. nolint:unused // may be reused in the feature, or just show a migrate usage.
internal/apiserver/store/mysql/mysql.go:97
↓ 1 callers
Method
clone
nolint:predeclared
pkg/log/log.go:569
↓ 1 callers
Method
cluster
()
pkg/storage/redis_cluster.go:258
↓ 1 callers
Function
clusterConnectionIsOpen
(cluster RedisCluster)
pkg/storage/redis_cluster.go:121
↓ 1 callers
Method
cmdGroups
(c *cobra.Command, all []*cobra.Command)
internal/iamctl/util/templates/templater.go:131
↓ 1 callers
Method
cobraCommand
()
pkg/app/cmd.go:76
↓ 1 callers
Method
collectionExists
collectionExists checks to see if a collection name exists in the db.
internal/pump/pumps/mongo.go:336
↓ 1 callers
Method
complete
Complete fills in any fields not set that are required to have valid data and can be derived from other fields.
internal/apiserver/server.go:117
↓ 1 callers
Function
connectSingleton
nolint: unparam
pkg/storage/redis_cluster.go:98
↓ 1 callers
Function
createAPIServer
(cfg *config.Config)
internal/apiserver/server.go:48
↓ 1 callers
Function
createAuthzServer
func createAuthzServer(cfg *config.Config) (*authzServer, error) {.
internal/authzserver/server.go:43
↓ 1 callers
Function
createJWTToken
(algorithm string, timeout time.Duration, secretID, secretKey string)
tools/gentoken/main.go:55
↓ 1 callers
Function
createPumpServer
(cfg *config.Config)
internal/pump/server.go:42
↓ 1 callers
Function
createWatcherServer
(cfg *config.Config)
internal/watcher/server.go:32
↓ 1 callers
Function
defaultMiddlewares
()
internal/pkg/middleware/middleware.go:56
↓ 1 callers
Method
ensureConnection
()
internal/pump/storage/redis/redis.go:338
↓ 1 callers
Method
ensureIndexes
()
internal/pump/pumps/mongo.go:356
↓ 1 callers
Method
ensureSchema
()
internal/iamctl/cmd/set/set_db.go:152
↓ 1 callers
Function
execPumpWriting
(wg *sync.WaitGroup, pmp pumps.Pump, keys *[]interface{}, purgeDelay int)
internal/pump/server.go:199
↓ 1 callers
Method
failover
()
pkg/storage/redis_cluster.go:324
↓ 1 callers
Function
filter
(cmds []*cobra.Command, names ...string)
internal/iamctl/util/templates/templater.go:267
↓ 1 callers
Function
filterData
(pump pumps.Pump, keys []interface{})
internal/pump/server.go:174
↓ 1 callers
Function
findString
findString return true if target in slice, return false if not.
internal/pkg/util/reflect/reflect.go:122
↓ 1 callers
Function
flushProfiling
()
internal/iamctl/cmd/profiling.go:62
↓ 1 callers
Function
format
nolint: unparam
internal/pkg/logger/sql_test.go:39
↓ 1 callers
Method
format
format returns the gofmt-ed contents of the Generator's buffer.
tools/codegen/codegen.go:293
↓ 1 callers
Function
genFlagResult
(flags *pflag.FlagSet)
cmd/genyaml/gen_iamctl_yaml.go:72
↓ 1 callers
Function
genMarkdown
(command *cobra.Command, parent, docsDir string)
cmd/genman/gen_iam_man.go:139
↓ 1 callers
Function
genYaml
(command *cobra.Command, parent, docsDir string)
cmd/genyaml/gen_iamctl_yaml.go:100
↓ 1 callers
Method
generate
()
tools/geniptables/main.go:205
↓ 1 callers
Method
generate
generate produces the register calls for the named type.
tools/codegen/codegen.go:236
↓ 1 callers
Method
generateDocs
generateDocs produces error code markdown document for the named type.
tools/codegen/codegen.go:262
↓ 1 callers
Function
getIndexName
(esConf *ElasticsearchConf)
internal/pump/pumps/elasticsearch.go:198
↓ 1 callers
Function
getMapping
(datum analytics.AnalyticsRecord)
internal/pump/pumps/elasticsearch.go:210
↓ 1 callers
Function
getOperator
(ctx context.Context, conf ElasticsearchConf)
internal/pump/pumps/elasticsearch.go:80
↓ 1 callers
Function
getRedisAddrs
(config *Config)
pkg/storage/redis_cluster.go:239
↓ 1 callers
Function
getSecretFunc
()
internal/authzserver/jwt.go:19
↓ 1 callers
Function
getUser
()
examples/error/main.go:64
↓ 1 callers
Function
getUser
(name string)
examples/code/main.go:35
↓ 1 callers
Method
grantLease
(ctx context.Context, ttlSeconds int64)
internal/apiserver/store/etcd/etcd.go:218
↓ 1 callers
Function
handleRedisEvent
(v interface{}, handled func(NotificationCommand), reloaded func())
internal/authzserver/load/redis_signals.go:45
↓ 1 callers
Method
hashKey
(in string)
internal/pump/storage/redis/redis.go:254
↓ 1 callers
Function
helpCommand
(name string)
pkg/app/help.go:21
↓ 1 callers
Method
heredoc
()
internal/iamctl/util/templates/normalizers.go:70
↓ 1 callers
Method
indent
()
internal/iamctl/util/templates/normalizers.go:80
← previous
next →
501–600 of 1,506, ranked by callers