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
Method
ApplyTo
ApplyTo applies the run options to the method receiver and returns self.
internal/pkg/options/jwt.go:38
Method
ApplyTo
ApplyTo applies the run options to the method receiver and returns self.
internal/pkg/options/feature.go:30
Method
ApplyTo
ApplyTo applies the run options to the method receiver and returns self.
internal/pkg/options/insecure_serving.go:34
Method
ApplyTo
ApplyTo applies the run options to the method receiver and returns self.
internal/pkg/options/secure_serving.go:65
Method
AuthFunc
AuthFunc defines cache strategy as the gin authentication middleware.
internal/pkg/middleware/auth/cache.go:48
Method
AuthFunc
AuthFunc defines basic strategy as the gin authentication middleware.
internal/pkg/middleware/auth/basic.go:34
Method
AuthFunc
AuthFunc defines jwt bearer strategy as the gin authentication middleware.
internal/pkg/middleware/auth/jwt.go:30
Method
AuthFunc
AuthFunc defines auto strategy as the gin authentication middleware.
internal/pkg/middleware/auth/auto.go:38
Method
Authorize
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
Method
AutoLink
(out *bytes.Buffer, link []byte, kind int)
internal/iamctl/util/templates/markdown.go:106
Function
BehaviorOnFatal
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
Function
BenchmarkListUser
(b *testing.B)
internal/apiserver/service/v1/user_test.go:27
Method
BlockCode
BlockCode renders a chunk of text that represents source code.
internal/iamctl/util/templates/markdown.go:80
Method
BlockHtml
(out *bytes.Buffer, text []byte)
internal/iamctl/util/templates/markdown.go:97
Method
BlockQuote
(out *bytes.Buffer, text []byte)
internal/iamctl/util/templates/markdown.go:98
Function
Chain
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
Method
ChangePassword
ChangePassword mocks base method.
internal/apiserver/service/v1/mock_service.go:109
Method
ChangePassword
ChangePassword indicates an expected call of ChangePassword.
internal/apiserver/service/v1/mock_service.go:117
Function
CheckDiffErr
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
Function
CheckIntLevel
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
Method
ClearOutdated
ClearOutdated clear data older than a given days.
internal/apiserver/store/etcd/policy_audit.go:20
Method
ClearOutdated
ClearOutdated clear data older than a given days.
internal/apiserver/store/mysql/policy_audit.go:23
Method
ClearOutdated
ClearOutdated clear data older than a given days.
internal/apiserver/store/fake/policy_audit.go:20
Function
Client
Client return the store client instance.
internal/authzserver/store/store.go:18
Method
Client
()
internal/apiserver/store/etcd/etcd.go:186
Method
Close
Close graceful shutdown the api server.
internal/pkg/server/genericapiserver.go:196
Method
Close
()
internal/apiserver/grpc.go:35
Method
Close
Close mocks base method.
internal/apiserver/store/mock_store.go:44
Method
Close
Close indicates an expected call of Close.
internal/apiserver/store/mock_store.go:52
Method
Close
()
internal/apiserver/store/mysql/mysql.go:45
Method
Close
()
internal/apiserver/store/fake/fake.go:45
Method
Code
Code returns the integer code of ErrCode.
internal/pkg/code/code.go:32
Method
CodeSpan
(out *bytes.Buffer, text []byte)
internal/iamctl/util/templates/markdown.go:107
Function
CombineRequestErr
CombineRequestErr combines the http response error and error in errs array.
internal/iamctl/cmd/util/helpers.go:340
Method
Complete
Complete set default Options.
internal/authzserver/options/options.go:83
Method
Complete
Complete fills in any fields not set that are required to have valid data.
internal/pkg/options/secure_serving.go:137
Method
Complete
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
Method
Complete
Complete set default Options.
internal/apiserver/options/options.go:75
Method
Connect
()
pkg/storage/storage.go:41
Method
Connect
()
pkg/storage/storage.go:66
Function
CopyObjViaYaml
CopyObjViaYaml marshal "from" to yaml data, then unMarshal data to "to".
internal/pkg/util/reflect/reflect.go:109
Method
Create
(*ladon.DefaultPolicy)
internal/authzserver/authorization/types.go:15
Method
Create
Create mocks base method.
internal/authzserver/authorization/mock_authorization.go:42
Method
Create
Create indicates an expected call of Create.
internal/authzserver/authorization/mock_authorization.go:50
Method
Create
Create create a policy. Return nil because we use mysql storage to store the policy.
internal/authzserver/authorization/authorizer/authorizer.go:37
Method
Create
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
Method
Create
Create add new secret key pairs to the storage.
internal/apiserver/controller/v1/secret/create.go:24
Method
Create
Create mocks base method.
internal/apiserver/service/v1/mock_service.go:123
Method
Create
Create indicates an expected call of Create.
internal/apiserver/service/v1/mock_service.go:131
Method
Create
Create mocks base method.
internal/apiserver/service/v1/mock_service.go:247
Method
Create
Create indicates an expected call of Create.
internal/apiserver/service/v1/mock_service.go:255
Method
Create
Create mocks base method.
internal/apiserver/service/v1/mock_service.go:356
Method
Create
Create indicates an expected call of Create.
internal/apiserver/service/v1/mock_service.go:364
Method
Create
(ctx context.Context, policy *v1.Policy, opts metav1.CreateOptions)
internal/apiserver/store/policy.go:16
Method
Create
(ctx context.Context, secret *v1.Secret, opts metav1.CreateOptions)
internal/apiserver/store/secret.go:16
Method
Create
Create mocks base method.
internal/apiserver/store/mock_store.go:137
Method
Create
Create indicates an expected call of Create.
internal/apiserver/store/mock_store.go:145
Method
Create
Create mocks base method.
internal/apiserver/store/mock_store.go:246
Method
Create
Create indicates an expected call of Create.
internal/apiserver/store/mock_store.go:254
Method
Create
Create mocks base method.
internal/apiserver/store/mock_store.go:355
Method
Create
Create indicates an expected call of Create.
internal/apiserver/store/mock_store.go:363
Method
Create
Create creates a new policy.
internal/apiserver/store/etcd/policy.go:33
Method
Create
Create creates a new secret.
internal/apiserver/store/etcd/secret.go:33
Method
Create
Create creates a new user account.
internal/apiserver/store/etcd/user.go:33
Method
Create
Create creates a new ladon policy.
internal/apiserver/store/mysql/policy.go:29
Method
Create
Create creates a new secret.
internal/apiserver/store/mysql/secret.go:29
Method
Create
Create creates a new user account.
internal/apiserver/store/mysql/user.go:29
Method
Create
Create creates a new ladon policy.
internal/apiserver/store/fake/policy.go:32
Method
Create
Create creates a new secret.
internal/apiserver/store/fake/secret.go:31
Method
Create
Create creates a new user account.
internal/apiserver/store/fake/user.go:31
Function
CreateListener
CreateListener create net listener by given address and returns it and port.
internal/pkg/options/secure_serving.go:159
Method
Debug
(msg string, fields ...Field)
pkg/log/log.go:390
Method
Debug
Debug logs a message at level Debug on the compatibleLogger.
pkg/log/distribution/logger.go:78
Method
Debugf
(format string, v ...interface{})
pkg/log/log.go:399
Method
Debugf
Debugf logs a message at level Debug on the compatibleLogger.
pkg/log/distribution/logger.go:88
Method
Debugln
Debugln logs a message at level Debug on the compatibleLogger.
pkg/log/distribution/logger.go:83
Function
Debugw
Debugw method output debug level log.
pkg/log/log.go:404
Method
Debugw
(msg string, keysAndValues ...interface{})
pkg/log/log.go:408
Method
Decrement
(string)
pkg/storage/storage.go:45
Method
Decrement
Decrement will decrement a key in redis.
pkg/storage/redis_cluster.go:556
Function
DefaultBehaviorOnFatal
DefaultBehaviorOnFatal allows you to undo any previous override. Useful in tests.
internal/iamctl/cmd/util/helpers.go:48
Function
DefaultSubCommandRun
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
Method
Delete
(id string)
internal/authzserver/authorization/types.go:17
Method
Delete
Delete mocks base method.
internal/authzserver/authorization/mock_authorization.go:56
Method
Delete
Delete indicates an expected call of Delete.
internal/authzserver/authorization/mock_authorization.go:64
Method
Delete
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
Method
Delete
Delete deletes the policy by the policy identifier.
internal/apiserver/controller/v1/policy/delete.go:17
Method
Delete
Delete delete a secret by the secret identifier.
internal/apiserver/controller/v1/secret/delete.go:17
Method
Delete
(ctx context.Context, username, name string, opts metav1.DeleteOptions)
internal/apiserver/service/v1/policy.go:55
Method
Delete
(ctx context.Context, username, secretID string, opts metav1.DeleteOptions)
internal/apiserver/service/v1/secret.go:55
Method
Delete
Delete mocks base method.
internal/apiserver/service/v1/mock_service.go:137
Method
Delete
Delete indicates an expected call of Delete.
internal/apiserver/service/v1/mock_service.go:145
Method
Delete
Delete mocks base method.
internal/apiserver/service/v1/mock_service.go:261
Method
Delete
Delete indicates an expected call of Delete.
internal/apiserver/service/v1/mock_service.go:269
Method
Delete
Delete mocks base method.
internal/apiserver/service/v1/mock_service.go:370
Method
Delete
Delete indicates an expected call of Delete.
internal/apiserver/service/v1/mock_service.go:378
Method
Delete
(ctx context.Context, username string, name string, opts metav1.DeleteOptions)
internal/apiserver/store/policy.go:18
Method
Delete
(ctx context.Context, username, secretID string, opts metav1.DeleteOptions)
internal/apiserver/store/secret.go:18
Method
Delete
Delete mocks base method.
internal/apiserver/store/mock_store.go:151
Method
Delete
Delete indicates an expected call of Delete.
internal/apiserver/store/mock_store.go:159
← previous
next →
701–800 of 1,506, ranked by callers