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
↓ 4 callers
Method
Run
(stopCh <-chan struct{})
internal/pump/server.go:73
↓ 4 callers
Method
SetErrorHandler
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 callers
Function
WithDefaultValidArgs
WithDefaultValidArgs set default validation function to valid non-flag arguments.
pkg/app/app.go:141
↓ 4 callers
Function
WithDescription
WithDescription is used to set the description of the application.
pkg/app/app.go:104
↓ 4 callers
Function
WithOptions
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 callers
Function
WithRunFunc
WithRunFunc is used to set the application startup callback function option.
pkg/app/app.go:97
↓ 4 callers
Function
fileWithLineNum
()
internal/pkg/logger/logger.go:165
↓ 3 callers
Method
AuthFunc
()
internal/pkg/middleware/auth.go:13
↓ 3 callers
Function
Client
Client return the store client instance.
internal/apiserver/store/store.go:21
↓ 3 callers
Method
Debugw
(msg string, keysAndValues ...interface{})
pkg/log/log.go:60
↓ 3 callers
Function
FakePolicies
FakePolicies returns fake policy data.
internal/apiserver/store/fake/fake.go:109
↓ 3 callers
Function
FakeSecrets
FakeSecrets returns fake secret data.
internal/apiserver/store/fake/fake.go:91
↓ 3 callers
Method
Flush
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 callers
Function
GetAnalytics
GetAnalytics returns the existed analytics instance. Need to initialize `analytics` instance before calling GetAnalytics.
internal/authzserver/analytics/analytics.go:85
↓ 3 callers
Function
GetCacheInsOr
GetCacheInsOr return store instance.
internal/authzserver/load/cache/cache.go:39
↓ 3 callers
Method
LogGrantedAccessRequest
(request *ladon.Request, pool ladon.Policies, deciders ladon.Policies)
internal/authzserver/authorization/types.go:24
↓ 3 callers
Method
LogRejectedAccessRequest
The following two functions tracks denied and granted authorizations.
internal/authzserver/authorization/types.go:23
↓ 3 callers
Function
LoggerWithConfig
LoggerWithConfig instance a Logger middleware with config.
internal/pkg/middleware/logger.go:67
↓ 3 callers
Function
NewApp
NewApp creates an App object with default parameters.
internal/pump/app.go:22
↓ 3 callers
Function
NewApp
NewApp creates an App object with default parameters.
internal/authzserver/app.go:25
↓ 3 callers
Function
NewApp
NewApp creates an App object with default parameters.
internal/watcher/app.go:22
↓ 3 callers
Function
NewApp
NewApp creates an App object with default parameters.
internal/apiserver/app.go:23
↓ 3 callers
Function
NewAuthorizer
NewAuthorizer creates a local repository authorizer and returns it.
internal/authzserver/authorization/authorizer.go:21
↓ 3 callers
Function
NewConfig
NewConfig returns a Config struct with the default values.
internal/pkg/server/config.go:80
↓ 3 callers
Function
NewWordWrapWriter
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 callers
Method
Notify
Notify will send a notification to a channel.
internal/authzserver/load/redis_signals.go:82
↓ 3 callers
Method
Printf
Printf like fmt.Printf, but add the string to g.buf.
tools/codegen/codegen.go:175
↓ 3 callers
Method
UsageFunc
(exposedFlags ...string)
internal/iamctl/util/templates/templater.go:89
↓ 3 callers
Function
V
V return a leveled InfoLogger.
pkg/log/log.go:309
↓ 3 callers
Method
Value
()
internal/pkg/logger/sql_test.go:22
↓ 3 callers
Method
WithContext
WithContext returns a copy of context in which the log value is set.
pkg/log/log.go:92
↓ 3 callers
Function
WithValues
WithValues creates a child logger and adds adds Zap fields to it.
pkg/log/log.go:329
↓ 3 callers
Method
fixKey
(keyName string)
internal/pump/storage/redis/redis.go:258
↓ 3 callers
Function
newPolicies
(srv *service)
internal/apiserver/service/v1/policy.go:34
↓ 3 callers
Function
newPolicies
(ds *datastore)
internal/apiserver/store/etcd/policy.go:22
↓ 3 callers
Function
newPolicies
(ds *datastore)
internal/apiserver/store/mysql/policy.go:24
↓ 3 callers
Function
newPolicies
(ds *datastore)
internal/apiserver/store/fake/policy.go:27
↓ 3 callers
Function
newSecrets
(srv *service)
internal/apiserver/service/v1/secret.go:34
↓ 3 callers
Function
newUsers
(srv *service)
internal/apiserver/service/v1/user.go:39
↓ 3 callers
Function
setIAMDefaults
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 callers
Function
singleton
(cache bool)
pkg/storage/redis_cluster.go:81
↓ 2 callers
Method
AddFlags
AddFlags adds flags for log to the specified FlagSet object.
pkg/log/options.go:91
↓ 2 callers
Method
AddFlags
AddFlags adds flags related to features for a specific api server to the specified FlagSet.
internal/authzserver/analytics/analytics_options.go:53
↓ 2 callers
Method
Authorize
Authorize to determine the subject access.
internal/authzserver/authorization/authorizer.go:31
↓ 2 callers
Method
ChangePassword
(ctx context.Context, user *v1.User)
internal/apiserver/service/v1/user.go:30
↓ 2 callers
Function
CheckErr
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 callers
Method
Command
Command returns cobra command instance inside the application.
pkg/app/app.go:230
↓ 2 callers
Method
Connect
Connect will establish a connection to the r.db.
internal/pump/storage/redis/redis.go:238
↓ 2 callers
Function
ConnectToRedis
ConnectToRedis starts a go routine that periodically tries to connect to redis.
pkg/storage/redis_cluster.go:139
↓ 2 callers
Function
CreateConfigFromOptions
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 callers
Function
CreateConfigFromOptions
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 callers
Method
DoReload
DoReload reload secrets and policies.
internal/authzserver/load/load.go:140
↓ 2 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/apiserver/store/mock_store.go:39
↓ 2 callers
Method
Fatalw
(msg string, keysAndValues ...interface{})
pkg/log/log.go:72
↓ 2 callers
Function
FromContext
FromContext returns the value of the log key on the ctx.
pkg/log/context.go:41
↓ 2 callers
Method
GenerateGoCode
GenerateGoCode generate go source file.
internal/iamctl/cmd/new/new.go:599
↓ 2 callers
Method
Get
(id string)
internal/authzserver/authorization/types.go:19
↓ 2 callers
Method
GetName
()
internal/pump/pumps/pump.go:16
↓ 2 callers
Function
GetObjFieldsMap
(obj interface{}, fields []string)
internal/pkg/util/reflect/reflect.go:61
↓ 2 callers
Function
GetPumpByName
GetPumpByName returns the pump instance by given name.
internal/pump/pumps/pump.go:29
↓ 2 callers
Function
GetSize
GetSize returns the current size of the terminal associated with fd.
internal/iamctl/util/term/resize.go:35
↓ 2 callers
Method
HasFilter
HasFilter determine whether a record has a filter.
internal/pump/analytics/analytics_filters.go:26
↓ 2 callers
Function
HashStr
HashStr return hash the give string and return.
pkg/storage/storage.go:156
↓ 2 callers
Method
HelpFunc
()
internal/iamctl/util/templates/templater.go:76
↓ 2 callers
Method
Init
(interface{})
internal/pump/pumps/pump.go:18
↓ 2 callers
Method
List
List returns user list in the storage. This function has a good performance.
internal/apiserver/service/v1/user.go:44
↓ 2 callers
Method
ListPolicies
ListPolicies returns all policies.
internal/apiserver/controller/v1/cache/cache.go:80
↓ 2 callers
Method
ListSecrets
ListSecrets returns all secrets.
internal/apiserver/controller/v1/cache/cache.go:48
↓ 2 callers
Function
New
New create logger by opts which can custmoized by command arguments.
pkg/log/log.go:215
↓ 2 callers
Function
New
New create a new gorm db instance with the given options.
pkg/db/mysql.go:30
↓ 2 callers
Function
NewIAMCtlCommand
NewIAMCtlCommand returns new initialized instance of 'iamctl' root command.
internal/iamctl/cmd/cmd.go:41
↓ 2 callers
Function
NewLogger
NewLogger creates a new logr.Logger using the given Zap Logger to log.
pkg/log/log.go:356
↓ 2 callers
Function
NewMockPolicyStore
NewMockPolicyStore creates a new mock instance.
internal/apiserver/store/mock_store.go:343
↓ 2 callers
Function
NewMockSecretStore
NewMockSecretStore creates a new mock instance.
internal/apiserver/store/mock_store.go:234
↓ 2 callers
Function
NewOptions
NewOptions creates a new Options object with default parameters.
internal/pump/options/options.go:38
↓ 2 callers
Function
NewOptions
NewOptions creates a new Options object with default parameters.
internal/watcher/options/options.go:43
↓ 2 callers
Function
NewResponsiveWriter
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 callers
Function
NewUserController
NewUserController creates a user handler.
internal/apiserver/controller/v1/user/user.go:18
↓ 2 callers
Method
Panicf
(format string, v ...interface{})
pkg/log/log.go:68
↓ 2 callers
Method
Panicw
(msg string, keysAndValues ...interface{})
pkg/log/log.go:69
↓ 2 callers
Method
ParseComment
ParseComment parse comment to http code and error code description.
tools/codegen/codegen.go:327
↓ 2 callers
Method
Printf
Printf like fmt.Printf, but add the string to g.buf.
tools/geniptables/main.go:226
↓ 2 callers
Method
Publish
Publish publish a message to the specify channel.
pkg/storage/redis_cluster.go:923
↓ 2 callers
Method
RecordHit
RecordHit will store an AnalyticsRecord in Redis.
internal/authzserver/analytics/analytics.go:114
↓ 2 callers
Function
Register
Register registers a watcher and save in global variable `registry`.
internal/watcher/watcher/registry.go:36
↓ 2 callers
Function
RequestID
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 callers
Method
SetExpiry
SetExpiry set expiration time to a key.
internal/authzserver/analytics/analytics.go:40
↓ 2 callers
Method
ShouldFilter
ShouldFilter determine whether a record should to be filtered out.
internal/pump/analytics/analytics_filters.go:14
↓ 2 callers
Function
StandardErrorMessage
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 callers
Method
Start
Start starts listening for posix signals.
pkg/shutdown/shutdownmanagers/posixsignal/posixsignal.go:50
↓ 2 callers
Method
ToRESTConfig
()
internal/iamctl/cmd/util/factory_client_access.go:33
↓ 2 callers
Method
ToRawIAMConfigLoader
ToRawIAMConfigLoader return iamconfig loader as-is
pkg/cli/genericclioptions/config_flags.go:46
↓ 2 callers
Method
Warnf
(format string, v ...interface{})
pkg/log/log.go:62
↓ 2 callers
Method
Warnw
(msg string, keysAndValues ...interface{})
pkg/log/log.go:63
↓ 2 callers
Function
WithName
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 callers
Method
WithName
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 callers
Function
checkErr
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 callers
Method
cleanKey
(keyName string)
pkg/storage/redis_cluster.go:378
↓ 2 callers
Function
cleanupForInclude
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 callers
Method
cluster
()
internal/pump/storage/redis/redis.go:121
← previous
next →
101–200 of 1,506, ranked by callers