MCPcopy Create free account

hub / github.com/marmotedu/iam / functions

Functions1,506 in github.com/marmotedu/iam

↓ 4 callersMethodRun
(stopCh <-chan struct{})
internal/pump/server.go:73
↓ 4 callersMethodSetErrorHandler
SetErrorHandler sets an ErrorHandler that will be called when an error is encountered in ShutdownCallback or in ShutdownManager. You can provide anyt
pkg/shutdown/shutdown.go:275
↓ 4 callersFunctionWithDefaultValidArgs
WithDefaultValidArgs set default validation function to valid non-flag arguments.
pkg/app/app.go:141
↓ 4 callersFunctionWithDescription
WithDescription is used to set the description of the application.
pkg/app/app.go:104
↓ 4 callersFunctionWithOptions
WithOptions to open the application's function to read from the command line or read parameters from the configuration file.
pkg/app/app.go:87
↓ 4 callersFunctionWithRunFunc
WithRunFunc is used to set the application startup callback function option.
pkg/app/app.go:97
↓ 4 callersFunctionfileWithLineNum
()
internal/pkg/logger/logger.go:165
↓ 3 callersMethodAuthFunc
()
internal/pkg/middleware/auth.go:13
↓ 3 callersFunctionClient
Client return the store client instance.
internal/apiserver/store/store.go:21
↓ 3 callersMethodDebugw
(msg string, keysAndValues ...interface{})
pkg/log/log.go:60
↓ 3 callersFunctionFakePolicies
FakePolicies returns fake policy data.
internal/apiserver/store/fake/fake.go:109
↓ 3 callersFunctionFakeSecrets
FakeSecrets returns fake secret data.
internal/apiserver/store/fake/fake.go:91
↓ 3 callersMethodFlush
Flush calls the underlying Core's Sync method, flushing any buffered log entries. Applications should take care to call Sync before exiting.
pkg/log/log.go:96
↓ 3 callersFunctionGetAnalytics
GetAnalytics returns the existed analytics instance. Need to initialize `analytics` instance before calling GetAnalytics.
internal/authzserver/analytics/analytics.go:85
↓ 3 callersFunctionGetCacheInsOr
GetCacheInsOr return store instance.
internal/authzserver/load/cache/cache.go:39
↓ 3 callersMethodLogGrantedAccessRequest
(request *ladon.Request, pool ladon.Policies, deciders ladon.Policies)
internal/authzserver/authorization/types.go:24
↓ 3 callersMethodLogRejectedAccessRequest
The following two functions tracks denied and granted authorizations.
internal/authzserver/authorization/types.go:23
↓ 3 callersFunctionLoggerWithConfig
LoggerWithConfig instance a Logger middleware with config.
internal/pkg/middleware/logger.go:67
↓ 3 callersFunctionNewApp
NewApp creates an App object with default parameters.
internal/pump/app.go:22
↓ 3 callersFunctionNewApp
NewApp creates an App object with default parameters.
internal/authzserver/app.go:25
↓ 3 callersFunctionNewApp
NewApp creates an App object with default parameters.
internal/watcher/app.go:22
↓ 3 callersFunctionNewApp
NewApp creates an App object with default parameters.
internal/apiserver/app.go:23
↓ 3 callersFunctionNewAuthorizer
NewAuthorizer creates a local repository authorizer and returns it.
internal/authzserver/authorization/authorizer.go:21
↓ 3 callersFunctionNewConfig
NewConfig returns a Config struct with the default values.
internal/pkg/server/config.go:80
↓ 3 callersFunctionNewWordWrapWriter
NewWordWrapWriter is a Writer that supports a limit of characters on every line and does auto word wrapping that respects that limit.
internal/iamctl/util/term/term_writer.go:58
↓ 3 callersMethodNotify
Notify will send a notification to a channel.
internal/authzserver/load/redis_signals.go:82
↓ 3 callersMethodPrintf
Printf like fmt.Printf, but add the string to g.buf.
tools/codegen/codegen.go:175
↓ 3 callersMethodUsageFunc
(exposedFlags ...string)
internal/iamctl/util/templates/templater.go:89
↓ 3 callersFunctionV
V return a leveled InfoLogger.
pkg/log/log.go:309
↓ 3 callersMethodValue
()
internal/pkg/logger/sql_test.go:22
↓ 3 callersMethodWithContext
WithContext returns a copy of context in which the log value is set.
pkg/log/log.go:92
↓ 3 callersFunctionWithValues
WithValues creates a child logger and adds adds Zap fields to it.
pkg/log/log.go:329
↓ 3 callersMethodfixKey
(keyName string)
internal/pump/storage/redis/redis.go:258
↓ 3 callersFunctionnewPolicies
(srv *service)
internal/apiserver/service/v1/policy.go:34
↓ 3 callersFunctionnewPolicies
(ds *datastore)
internal/apiserver/store/etcd/policy.go:22
↓ 3 callersFunctionnewPolicies
(ds *datastore)
internal/apiserver/store/mysql/policy.go:24
↓ 3 callersFunctionnewPolicies
(ds *datastore)
internal/apiserver/store/fake/policy.go:27
↓ 3 callersFunctionnewSecrets
(srv *service)
internal/apiserver/service/v1/secret.go:34
↓ 3 callersFunctionnewUsers
(srv *service)
internal/apiserver/service/v1/user.go:39
↓ 3 callersFunctionsetIAMDefaults
setIAMDefaults sets default values on the provided client config for accessing the IAM API or returns an error if any of the defaults are impossible o
internal/iamctl/cmd/util/iam_match_version.go:117
↓ 3 callersFunctionsingleton
(cache bool)
pkg/storage/redis_cluster.go:81
↓ 2 callersMethodAddFlags
AddFlags adds flags for log to the specified FlagSet object.
pkg/log/options.go:91
↓ 2 callersMethodAddFlags
AddFlags adds flags related to features for a specific api server to the specified FlagSet.
internal/authzserver/analytics/analytics_options.go:53
↓ 2 callersMethodAuthorize
Authorize to determine the subject access.
internal/authzserver/authorization/authorizer.go:31
↓ 2 callersMethodChangePassword
(ctx context.Context, user *v1.User)
internal/apiserver/service/v1/user.go:30
↓ 2 callersFunctionCheckErr
CheckErr prints a user-friendly error to STDERR and exits with a non-zero exit code. Unrecognized errors will be printed with an "error: " prefix. Th
internal/iamctl/cmd/util/helpers.go:73
↓ 2 callersMethodCommand
Command returns cobra command instance inside the application.
pkg/app/app.go:230
↓ 2 callersMethodConnect
Connect will establish a connection to the r.db.
internal/pump/storage/redis/redis.go:238
↓ 2 callersFunctionConnectToRedis
ConnectToRedis starts a go routine that periodically tries to connect to redis.
pkg/storage/redis_cluster.go:139
↓ 2 callersFunctionCreateConfigFromOptions
CreateConfigFromOptions creates a running configuration instance based on a given IAM pump command line or configuration file option.
internal/pump/config/config.go:16
↓ 2 callersFunctionCreateConfigFromOptions
CreateConfigFromOptions creates a running configuration instance based on a given IAM pump command line or configuration file option.
internal/watcher/config/config.go:16
↓ 2 callersMethodDoReload
DoReload reload secrets and policies.
internal/authzserver/load/load.go:140
↓ 2 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/apiserver/store/mock_store.go:39
↓ 2 callersMethodFatalw
(msg string, keysAndValues ...interface{})
pkg/log/log.go:72
↓ 2 callersFunctionFromContext
FromContext returns the value of the log key on the ctx.
pkg/log/context.go:41
↓ 2 callersMethodGenerateGoCode
GenerateGoCode generate go source file.
internal/iamctl/cmd/new/new.go:599
↓ 2 callersMethodGet
(id string)
internal/authzserver/authorization/types.go:19
↓ 2 callersMethodGetName
()
internal/pump/pumps/pump.go:16
↓ 2 callersFunctionGetObjFieldsMap
(obj interface{}, fields []string)
internal/pkg/util/reflect/reflect.go:61
↓ 2 callersFunctionGetPumpByName
GetPumpByName returns the pump instance by given name.
internal/pump/pumps/pump.go:29
↓ 2 callersFunctionGetSize
GetSize returns the current size of the terminal associated with fd.
internal/iamctl/util/term/resize.go:35
↓ 2 callersMethodHasFilter
HasFilter determine whether a record has a filter.
internal/pump/analytics/analytics_filters.go:26
↓ 2 callersFunctionHashStr
HashStr return hash the give string and return.
pkg/storage/storage.go:156
↓ 2 callersMethodHelpFunc
()
internal/iamctl/util/templates/templater.go:76
↓ 2 callersMethodInit
(interface{})
internal/pump/pumps/pump.go:18
↓ 2 callersMethodList
List returns user list in the storage. This function has a good performance.
internal/apiserver/service/v1/user.go:44
↓ 2 callersMethodListPolicies
ListPolicies returns all policies.
internal/apiserver/controller/v1/cache/cache.go:80
↓ 2 callersMethodListSecrets
ListSecrets returns all secrets.
internal/apiserver/controller/v1/cache/cache.go:48
↓ 2 callersFunctionNew
New create logger by opts which can custmoized by command arguments.
pkg/log/log.go:215
↓ 2 callersFunctionNew
New create a new gorm db instance with the given options.
pkg/db/mysql.go:30
↓ 2 callersFunctionNewIAMCtlCommand
NewIAMCtlCommand returns new initialized instance of 'iamctl' root command.
internal/iamctl/cmd/cmd.go:41
↓ 2 callersFunctionNewLogger
NewLogger creates a new logr.Logger using the given Zap Logger to log.
pkg/log/log.go:356
↓ 2 callersFunctionNewMockPolicyStore
NewMockPolicyStore creates a new mock instance.
internal/apiserver/store/mock_store.go:343
↓ 2 callersFunctionNewMockSecretStore
NewMockSecretStore creates a new mock instance.
internal/apiserver/store/mock_store.go:234
↓ 2 callersFunctionNewOptions
NewOptions creates a new Options object with default parameters.
internal/pump/options/options.go:38
↓ 2 callersFunctionNewOptions
NewOptions creates a new Options object with default parameters.
internal/watcher/options/options.go:43
↓ 2 callersFunctionNewResponsiveWriter
NewResponsiveWriter creates a Writer that detects the column width of the terminal we are in, and adjusts every line width to fit and use recommended
internal/iamctl/util/term/term_writer.go:28
↓ 2 callersFunctionNewUserController
NewUserController creates a user handler.
internal/apiserver/controller/v1/user/user.go:18
↓ 2 callersMethodPanicf
(format string, v ...interface{})
pkg/log/log.go:68
↓ 2 callersMethodPanicw
(msg string, keysAndValues ...interface{})
pkg/log/log.go:69
↓ 2 callersMethodParseComment
ParseComment parse comment to http code and error code description.
tools/codegen/codegen.go:327
↓ 2 callersMethodPrintf
Printf like fmt.Printf, but add the string to g.buf.
tools/geniptables/main.go:226
↓ 2 callersMethodPublish
Publish publish a message to the specify channel.
pkg/storage/redis_cluster.go:923
↓ 2 callersMethodRecordHit
RecordHit will store an AnalyticsRecord in Redis.
internal/authzserver/analytics/analytics.go:114
↓ 2 callersFunctionRegister
Register registers a watcher and save in global variable `registry`.
internal/watcher/watcher/registry.go:36
↓ 2 callersFunctionRequestID
RequestID is a middleware that injects a 'X-Request-ID' into the context and request/response header of each request.
internal/pkg/middleware/requestid.go:22
↓ 2 callersMethodSetExpiry
SetExpiry set expiration time to a key.
internal/authzserver/analytics/analytics.go:40
↓ 2 callersMethodShouldFilter
ShouldFilter determine whether a record should to be filtered out.
internal/pump/analytics/analytics_filters.go:14
↓ 2 callersFunctionStandardErrorMessage
StandardErrorMessage translates common errors into a human readable message, or returns false if the error is not one of the recognized types. It may
internal/iamctl/cmd/util/helpers.go:126
↓ 2 callersMethodStart
Start starts listening for posix signals.
pkg/shutdown/shutdownmanagers/posixsignal/posixsignal.go:50
↓ 2 callersMethodToRESTConfig
()
internal/iamctl/cmd/util/factory_client_access.go:33
↓ 2 callersMethodToRawIAMConfigLoader
ToRawIAMConfigLoader return iamconfig loader as-is
pkg/cli/genericclioptions/config_flags.go:46
↓ 2 callersMethodWarnf
(format string, v ...interface{})
pkg/log/log.go:62
↓ 2 callersMethodWarnw
(msg string, keysAndValues ...interface{})
pkg/log/log.go:63
↓ 2 callersFunctionWithName
WithName adds a new path segment to the logger's name. Segments are joined by periods. By default, Loggers are unnamed.
pkg/log/log.go:339
↓ 2 callersMethodWithName
WithName adds a new element to the logger's name. Successive calls with WithName continue to append suffixes to the logger's name. It's strongly reco
pkg/log/log.go:89
↓ 2 callersFunctioncheckErr
checkErr formats a given error as a string and calls the passed handleErr func with that string and an iamctl exit code.
internal/iamctl/cmd/util/helpers.go:91
↓ 2 callersMethodcleanKey
(keyName string)
pkg/storage/redis_cluster.go:378
↓ 2 callersFunctioncleanupForInclude
cleanupForInclude parts of markdown that will make difficult to use it as include in the website: - The title of the document (this allow more flexibi
cmd/geniamdocs/postprocessing.go:43
↓ 2 callersMethodcluster
()
internal/pump/storage/redis/redis.go:121
← previousnext →101–200 of 1,506, ranked by callers