MCPcopy Create free account

hub / github.com/marmotedu/iam / functions

Functions1,506 in github.com/marmotedu/iam

MethodApplyTo
ApplyTo applies the run options to the method receiver and returns self.
internal/pkg/options/jwt.go:38
MethodApplyTo
ApplyTo applies the run options to the method receiver and returns self.
internal/pkg/options/feature.go:30
MethodApplyTo
ApplyTo applies the run options to the method receiver and returns self.
internal/pkg/options/insecure_serving.go:34
MethodApplyTo
ApplyTo applies the run options to the method receiver and returns self.
internal/pkg/options/secure_serving.go:65
MethodAuthFunc
AuthFunc defines cache strategy as the gin authentication middleware.
internal/pkg/middleware/auth/cache.go:48
MethodAuthFunc
AuthFunc defines basic strategy as the gin authentication middleware.
internal/pkg/middleware/auth/basic.go:34
MethodAuthFunc
AuthFunc defines jwt bearer strategy as the gin authentication middleware.
internal/pkg/middleware/auth/jwt.go:30
MethodAuthFunc
AuthFunc defines auto strategy as the gin authentication middleware.
internal/pkg/middleware/auth/auto.go:38
MethodAuthorize
Authorize returns whether a request is allow or deny to access a resource and do some action under specified condition.
internal/authzserver/controller/v1/authorize/authorize.go:33
MethodAutoLink
(out *bytes.Buffer, link []byte, kind int)
internal/iamctl/util/templates/markdown.go:106
FunctionBehaviorOnFatal
BehaviorOnFatal allows you to override the default behavior when a fatal error occurs, which is to call os.Exit(code). You can pass 'panic' as a funct
internal/iamctl/cmd/util/helpers.go:42
FunctionBenchmarkListUser
(b *testing.B)
internal/apiserver/service/v1/user_test.go:27
MethodBlockCode
BlockCode renders a chunk of text that represents source code.
internal/iamctl/util/templates/markdown.go:80
MethodBlockHtml
(out *bytes.Buffer, text []byte)
internal/iamctl/util/templates/markdown.go:97
MethodBlockQuote
(out *bytes.Buffer, text []byte)
internal/iamctl/util/templates/markdown.go:98
FunctionChain
Chain creates a new handler that invokes all notify functions when the critical section exits and then invokes the optional handler's notifications. T
internal/iamctl/util/interrupt/interrupt.go:32
MethodChangePassword
ChangePassword mocks base method.
internal/apiserver/service/v1/mock_service.go:109
MethodChangePassword
ChangePassword indicates an expected call of ChangePassword.
internal/apiserver/service/v1/mock_service.go:117
FunctionCheckDiffErr
CheckDiffErr prints a user-friendly error to STDERR and exits with a non-zero and non-one exit code. Unrecognized errors will be printed with an "erro
internal/iamctl/cmd/util/helpers.go:83
FunctionCheckIntLevel
CheckIntLevel used for other log wrapper such as klog which return if logging a message at the specified level is enabled.
pkg/log/log.go:373
MethodClearOutdated
ClearOutdated clear data older than a given days.
internal/apiserver/store/etcd/policy_audit.go:20
MethodClearOutdated
ClearOutdated clear data older than a given days.
internal/apiserver/store/mysql/policy_audit.go:23
MethodClearOutdated
ClearOutdated clear data older than a given days.
internal/apiserver/store/fake/policy_audit.go:20
FunctionClient
Client return the store client instance.
internal/authzserver/store/store.go:18
MethodClient
()
internal/apiserver/store/etcd/etcd.go:186
MethodClose
Close graceful shutdown the api server.
internal/pkg/server/genericapiserver.go:196
MethodClose
()
internal/apiserver/grpc.go:35
MethodClose
Close mocks base method.
internal/apiserver/store/mock_store.go:44
MethodClose
Close indicates an expected call of Close.
internal/apiserver/store/mock_store.go:52
MethodClose
()
internal/apiserver/store/mysql/mysql.go:45
MethodClose
()
internal/apiserver/store/fake/fake.go:45
MethodCode
Code returns the integer code of ErrCode.
internal/pkg/code/code.go:32
MethodCodeSpan
(out *bytes.Buffer, text []byte)
internal/iamctl/util/templates/markdown.go:107
FunctionCombineRequestErr
CombineRequestErr combines the http response error and error in errs array.
internal/iamctl/cmd/util/helpers.go:340
MethodComplete
Complete set default Options.
internal/authzserver/options/options.go:83
MethodComplete
Complete fills in any fields not set that are required to have valid data.
internal/pkg/options/secure_serving.go:137
MethodComplete
Complete fills in any fields not set that are required to have valid data and can be derived from other fields. If you're going to `ApplyOptions`, do
internal/pkg/server/config.go:102
MethodComplete
Complete set default Options.
internal/apiserver/options/options.go:75
MethodConnect
()
pkg/storage/storage.go:41
MethodConnect
()
pkg/storage/storage.go:66
FunctionCopyObjViaYaml
CopyObjViaYaml marshal "from" to yaml data, then unMarshal data to "to".
internal/pkg/util/reflect/reflect.go:109
MethodCreate
(*ladon.DefaultPolicy)
internal/authzserver/authorization/types.go:15
MethodCreate
Create mocks base method.
internal/authzserver/authorization/mock_authorization.go:42
MethodCreate
Create indicates an expected call of Create.
internal/authzserver/authorization/mock_authorization.go:50
MethodCreate
Create create a policy. Return nil because we use mysql storage to store the policy.
internal/authzserver/authorization/authorizer/authorizer.go:37
MethodCreate
Create creates a new ladon policy. It will convert the policy to string and store it in the storage.
internal/apiserver/controller/v1/policy/create.go:21
MethodCreate
Create add new secret key pairs to the storage.
internal/apiserver/controller/v1/secret/create.go:24
MethodCreate
Create mocks base method.
internal/apiserver/service/v1/mock_service.go:123
MethodCreate
Create indicates an expected call of Create.
internal/apiserver/service/v1/mock_service.go:131
MethodCreate
Create mocks base method.
internal/apiserver/service/v1/mock_service.go:247
MethodCreate
Create indicates an expected call of Create.
internal/apiserver/service/v1/mock_service.go:255
MethodCreate
Create mocks base method.
internal/apiserver/service/v1/mock_service.go:356
MethodCreate
Create indicates an expected call of Create.
internal/apiserver/service/v1/mock_service.go:364
MethodCreate
(ctx context.Context, policy *v1.Policy, opts metav1.CreateOptions)
internal/apiserver/store/policy.go:16
MethodCreate
(ctx context.Context, secret *v1.Secret, opts metav1.CreateOptions)
internal/apiserver/store/secret.go:16
MethodCreate
Create mocks base method.
internal/apiserver/store/mock_store.go:137
MethodCreate
Create indicates an expected call of Create.
internal/apiserver/store/mock_store.go:145
MethodCreate
Create mocks base method.
internal/apiserver/store/mock_store.go:246
MethodCreate
Create indicates an expected call of Create.
internal/apiserver/store/mock_store.go:254
MethodCreate
Create mocks base method.
internal/apiserver/store/mock_store.go:355
MethodCreate
Create indicates an expected call of Create.
internal/apiserver/store/mock_store.go:363
MethodCreate
Create creates a new policy.
internal/apiserver/store/etcd/policy.go:33
MethodCreate
Create creates a new secret.
internal/apiserver/store/etcd/secret.go:33
MethodCreate
Create creates a new user account.
internal/apiserver/store/etcd/user.go:33
MethodCreate
Create creates a new ladon policy.
internal/apiserver/store/mysql/policy.go:29
MethodCreate
Create creates a new secret.
internal/apiserver/store/mysql/secret.go:29
MethodCreate
Create creates a new user account.
internal/apiserver/store/mysql/user.go:29
MethodCreate
Create creates a new ladon policy.
internal/apiserver/store/fake/policy.go:32
MethodCreate
Create creates a new secret.
internal/apiserver/store/fake/secret.go:31
MethodCreate
Create creates a new user account.
internal/apiserver/store/fake/user.go:31
FunctionCreateListener
CreateListener create net listener by given address and returns it and port.
internal/pkg/options/secure_serving.go:159
MethodDebug
(msg string, fields ...Field)
pkg/log/log.go:390
MethodDebug
Debug logs a message at level Debug on the compatibleLogger.
pkg/log/distribution/logger.go:78
MethodDebugf
(format string, v ...interface{})
pkg/log/log.go:399
MethodDebugf
Debugf logs a message at level Debug on the compatibleLogger.
pkg/log/distribution/logger.go:88
MethodDebugln
Debugln logs a message at level Debug on the compatibleLogger.
pkg/log/distribution/logger.go:83
FunctionDebugw
Debugw method output debug level log.
pkg/log/log.go:404
MethodDebugw
(msg string, keysAndValues ...interface{})
pkg/log/log.go:408
MethodDecrement
(string)
pkg/storage/storage.go:45
MethodDecrement
Decrement will decrement a key in redis.
pkg/storage/redis_cluster.go:556
FunctionDefaultBehaviorOnFatal
DefaultBehaviorOnFatal allows you to undo any previous override. Useful in tests.
internal/iamctl/cmd/util/helpers.go:48
FunctionDefaultSubCommandRun
DefaultSubCommandRun prints a command's help string to the specified output if no arguments (sub-commands) are provided, or a usage error otherwise.
internal/iamctl/cmd/util/helpers.go:297
MethodDelete
(id string)
internal/authzserver/authorization/types.go:17
MethodDelete
Delete mocks base method.
internal/authzserver/authorization/mock_authorization.go:56
MethodDelete
Delete indicates an expected call of Delete.
internal/authzserver/authorization/mock_authorization.go:64
MethodDelete
Delete delete a policy by the given identifier. Return nil because we use mysql storage to store the policy.
internal/authzserver/authorization/authorizer/authorizer.go:49
MethodDelete
Delete deletes the policy by the policy identifier.
internal/apiserver/controller/v1/policy/delete.go:17
MethodDelete
Delete delete a secret by the secret identifier.
internal/apiserver/controller/v1/secret/delete.go:17
MethodDelete
(ctx context.Context, username, name string, opts metav1.DeleteOptions)
internal/apiserver/service/v1/policy.go:55
MethodDelete
(ctx context.Context, username, secretID string, opts metav1.DeleteOptions)
internal/apiserver/service/v1/secret.go:55
MethodDelete
Delete mocks base method.
internal/apiserver/service/v1/mock_service.go:137
MethodDelete
Delete indicates an expected call of Delete.
internal/apiserver/service/v1/mock_service.go:145
MethodDelete
Delete mocks base method.
internal/apiserver/service/v1/mock_service.go:261
MethodDelete
Delete indicates an expected call of Delete.
internal/apiserver/service/v1/mock_service.go:269
MethodDelete
Delete mocks base method.
internal/apiserver/service/v1/mock_service.go:370
MethodDelete
Delete indicates an expected call of Delete.
internal/apiserver/service/v1/mock_service.go:378
MethodDelete
(ctx context.Context, username string, name string, opts metav1.DeleteOptions)
internal/apiserver/store/policy.go:18
MethodDelete
(ctx context.Context, username, secretID string, opts metav1.DeleteOptions)
internal/apiserver/store/secret.go:18
MethodDelete
Delete mocks base method.
internal/apiserver/store/mock_store.go:151
MethodDelete
Delete indicates an expected call of Delete.
internal/apiserver/store/mock_store.go:159
← previousnext →701–800 of 1,506, ranked by callers