MCPcopy Create free account

hub / github.com/marmotedu/iam / functions

Functions1,506 in github.com/marmotedu/iam

MethodNew
New returns a new instance of GenericAPIServer from the given config.
internal/pkg/server/config.go:107
MethodNew
New create a grpcAPIServer instance.
internal/apiserver/server.go:126
FunctionNewAnalyticsOptions
NewAnalyticsOptions creates a AnalyticsOptions object with default parameters.
internal/pump/analytics/analytics_options.go:21
FunctionNewClientCertAuthenticationOptions
NewClientCertAuthenticationOptions creates a ClientCertAuthenticationOptions object with default parameters.
internal/pkg/options/authentication.go:30
FunctionNewCmdDB
NewCmdDB returns new initialized instance of 'db' sub command.
internal/iamctl/cmd/set/set_db.go:61
FunctionNewCommand
NewCommand creates a new sub command instance based on the given command name and other options.
pkg/app/cmd.go:53
FunctionNewEtcdOptions
NewEtcdOptions create a `zero` value instance.
internal/pkg/options/etcd_options.go:35
FunctionNewFactory
(clientGetter genericclioptions.RESTClientGetter)
internal/iamctl/cmd/util/factory_client_access.go:21
FunctionNewFeatureOptions
NewFeatureOptions creates a FeatureOptions object with default parameters.
internal/pkg/options/feature.go:20
FunctionNewForConfigOrDie
()
internal/iamctl/cmd/util/helpers.go:357
FunctionNewGRPCOptions
NewGRPCOptions is for creating an unauthenticated, unauthorized, insecure port. No one should be using these anymore.
internal/pkg/options/grpc.go:23
FunctionNewInsecureServingOptions
NewInsecureServingOptions is for creating an unauthenticated, unauthorized, insecure port. No one should be using these anymore.
internal/pkg/options/insecure_serving.go:26
FunctionNewJwtOptions
NewJwtOptions creates a JwtOptions object with default parameters.
internal/pkg/options/jwt.go:26
FunctionNewLogger
NewLogger create the field logger object by giving zap logger.
pkg/log/distribution/logger.go:40
FunctionNewLogger
NewLogger create a logrus logger, add hook to it and return it.
pkg/log/logrus/logger.go:30
FunctionNewMatchVersionFlags
(delegate genericclioptions.RESTClientGetter)
internal/iamctl/cmd/util/iam_match_version.go:108
FunctionNewMockFactory
NewMockFactory creates a new mock instance.
internal/authzserver/store/mock_store.go:31
FunctionNewMockPolicySrv
NewMockPolicySrv creates a new mock instance.
internal/apiserver/service/v1/mock_service.go:344
FunctionNewMockPolicyStore
NewMockPolicyStore creates a new mock instance.
internal/authzserver/store/mock_store.go:120
FunctionNewMockSecretSrv
NewMockSecretSrv creates a new mock instance.
internal/apiserver/service/v1/mock_service.go:235
FunctionNewMockSecretStore
NewMockSecretStore creates a new mock instance.
internal/authzserver/store/mock_store.go:82
FunctionNewMockService
NewMockService creates a new mock instance.
internal/apiserver/service/v1/mock_service.go:32
FunctionNewMockUserSrv
NewMockUserSrv creates a new mock instance.
internal/apiserver/service/v1/mock_service.go:97
FunctionNewMySQLOptions
NewMySQLOptions create a `zero` value instance.
internal/pkg/options/mysql_options.go:29
FunctionNewPunchCardWriter
NewPunchCardWriter is a NewWordWrapWriter that limits the line width to 80 columns.
internal/iamctl/util/term/term_writer.go:75
FunctionNewRedisOptions
NewRedisOptions create a `zero` value instance.
internal/pkg/options/redis_options.go:29
FunctionNewSecureServingOptions
NewSecureServingOptions creates a SecureServingOptions object with default parameters.
internal/pkg/options/secure_serving.go:52
FunctionNewServerRunOptions
NewServerRunOptions creates a new ServerRunOptions object with default parameters.
internal/pkg/options/server_run_options.go:21
FunctionNewTestIOStreams
NewTestIOStreams returns a valid IOStreams and in, out, errout buffers for unit tests.
pkg/cli/genericclioptions/io_options.go:25
FunctionNewTestIOStreamsDiscard
NewTestIOStreamsDiscard returns a valid IOStreams that just discards.
pkg/cli/genericclioptions/io_options.go:38
FunctionNoCache
NoCache is a middleware function that appends headers to prevent the client from caching the HTTP response.
internal/pkg/middleware/middleware.go:20
MethodNormalText
NormalText gets a text chunk *after* the markdown syntax was already processed and does a final cleanup on things we don't expect here, like removing
internal/iamctl/util/templates/markdown.go:33
FunctionNormalizeAll
NormalizeAll perform all required normalizations in the entire command tree.
internal/iamctl/util/templates/normalizers.go:45
MethodOnError
OnError defines the action needed to run when error occurred.
pkg/shutdown/shutdown.go:207
MethodOnShutdown
OnShutdown defines the action needed to run when shutdown triggered.
pkg/shutdown/shutdown.go:179
FunctionOptions
Options is a middleware function that appends headers for options requests and aborts then exits the middleware chain and ends the request.
internal/pkg/middleware/middleware.go:30
FunctionPanic
Panic method output panic level log and shutdown application.
pkg/log/log.go:494
MethodPanic
(msg string, fields ...Field)
pkg/log/log.go:498
MethodPanic
Panic logs a message at level Painc on the compatibleLogger.
pkg/log/distribution/logger.go:168
MethodPanicf
(format string, v ...interface{})
pkg/log/log.go:507
MethodPanicf
Panicf logs a message at level Painc on the compatibleLogger.
pkg/log/distribution/logger.go:178
MethodPanicln
Panicln logs a message at level Painc on the compatibleLogger.
pkg/log/distribution/logger.go:173
FunctionPanicw
Panicw method output panic level log.
pkg/log/log.go:512
MethodPanicw
(msg string, keysAndValues ...interface{})
pkg/log/log.go:516
MethodParagraph
Paragraph renders the start and end of a paragraph.
internal/iamctl/util/templates/markdown.go:73
MethodPolicies
()
internal/authzserver/store/store.go:13
MethodPolicies
Policies mocks base method.
internal/authzserver/store/mock_store.go:43
MethodPolicies
Policies indicates an expected call of Policies.
internal/authzserver/store/mock_store.go:51
MethodPolicies
()
internal/authzserver/store/apiserver/apiserver.go:26
MethodPolicies
Policies mocks base method.
internal/apiserver/service/v1/mock_service.go:44
MethodPolicies
Policies indicates an expected call of Policies.
internal/apiserver/service/v1/mock_service.go:52
MethodPolicies
Policies mocks base method.
internal/apiserver/store/mock_store.go:58
MethodPolicies
Policies indicates an expected call of Policies.
internal/apiserver/store/mock_store.go:66
MethodPolicies
()
internal/apiserver/store/etcd/etcd.go:60
MethodPolicies
()
internal/apiserver/store/mysql/mysql.go:37
MethodPolicies
()
internal/apiserver/store/fake/fake.go:37
MethodPolicyAudits
PolicyAudits mocks base method.
internal/apiserver/store/mock_store.go:72
MethodPolicyAudits
PolicyAudits indicates an expected call of PolicyAudits.
internal/apiserver/store/mock_store.go:80
MethodPolicyAudits
()
internal/apiserver/store/etcd/etcd.go:64
MethodPolicyAudits
()
internal/apiserver/store/mysql/mysql.go:41
MethodPolicyAudits
()
internal/apiserver/store/fake/fake.go:41
FunctionPrintFlags
PrintFlags logs the flags in the flagset.
pkg/util/flag/flag.go:48
MethodPrintf
Printf logs a message at level Print on the compatibleLogger.
pkg/log/distribution/logger.go:58
MethodPutSession
(ctx context.Context, key string, val string)
internal/apiserver/store/etcd/etcd.go:214
MethodPutWithLease
(ctx context.Context, key string, val string, ttlSeconds int64)
internal/apiserver/store/etcd/etcd.go:229
MethodRESTClient
()
internal/iamctl/cmd/util/factory_client_access.go:49
MethodRawHtmlTag
(out *bytes.Buffer, text []byte)
internal/iamctl/util/templates/markdown.go:110
MethodReference
Reference returns the reference document.
internal/pkg/code/code.go:43
MethodReload
Reload reload secrets and policies.
internal/authzserver/load/cache/cache.go:103
MethodRemoveFromList
(string, string)
pkg/storage/storage.go:59
MethodRemoveFromList
RemoveFromList delete an value from a list idetinfied with the keyName.
pkg/storage/redis_cluster.go:1009
MethodRemoveFromSet
(string, string)
pkg/storage/storage.go:52
MethodRemoveFromSet
RemoveFromSet remove a value from key set.
pkg/storage/redis_cluster.go:1127
MethodRemoveSortedSetRange
(string, string, string)
pkg/storage/storage.go:57
MethodRemoveSortedSetRange
RemoveSortedSetRange removes range of elements from sorted set identified by keyName.
pkg/storage/redis_cluster.go:1359
MethodReportError
(err error)
pkg/shutdown/shutdownmanagers/posixsignal/posixsignal_test.go:21
FunctionRequestShutdown
RequestShutdown emulates a received event that is considered as shutdown signal (SIGTERM/SIGINT) This returns whether a handler was notified.
internal/pkg/server/signal.go:40
MethodRestartSession
()
internal/apiserver/store/etcd/etcd.go:194
MethodRoundTrip
RoundTrip for APIKeyTransport auth.
internal/pump/pumps/elasticsearch.go:71
MethodRun
Run runs the watcher job.
internal/watcher/watcher/clean/watcher.go:25
MethodRun
()
internal/apiserver/server.go:101
MethodRun
Run ensures that any notifications are invoked after the provided fn exits (even if the process is interrupted by an OS termination signal). Notificat
internal/iamctl/util/interrupt/interrupt.go:77
MethodSecrets
()
internal/authzserver/store/store.go:14
MethodSecrets
Secrets mocks base method.
internal/authzserver/store/mock_store.go:57
MethodSecrets
Secrets indicates an expected call of Secrets.
internal/authzserver/store/mock_store.go:65
MethodSecrets
()
internal/authzserver/store/apiserver/apiserver.go:22
MethodSecrets
Secrets mocks base method.
internal/apiserver/service/v1/mock_service.go:58
MethodSecrets
Secrets indicates an expected call of Secrets.
internal/apiserver/service/v1/mock_service.go:66
MethodSecrets
Secrets mocks base method.
internal/apiserver/store/mock_store.go:86
MethodSecrets
Secrets indicates an expected call of Secrets.
internal/apiserver/store/mock_store.go:94
MethodSecrets
()
internal/apiserver/store/etcd/etcd.go:56
MethodSecrets
()
internal/apiserver/store/mysql/mysql.go:33
MethodSecrets
()
internal/apiserver/store/fake/fake.go:33
FunctionSecure
Secure is a middleware function that appends security and resource access headers.
internal/pkg/middleware/middleware.go:45
FunctionServeHealthCheck
ServeHealthCheck runs a http server used to provide a api to check pump health status.
internal/pkg/server/health.go:15
MethodSessionLiving
()
internal/apiserver/store/etcd/etcd.go:190
FunctionSetClient
SetClient set the iam store client.
internal/authzserver/store/store.go:23
MethodSetExp
(string, int64)
pkg/storage/storage.go:35
MethodSetExp
(string, time.Duration)
pkg/storage/storage.go:69
MethodSetFilters
SetFilters set attributes `filters` for CommonPumpConfig.
internal/pump/pumps/common.go:17
← previousnext →1,101–1,200 of 1,506, ranked by callers