Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
apiserver
apiserver is the api server for iam-apiserver service.
|
apiserver is the api server for iam-apiserver service. |
authzserver
authzserver is the server for iam-authz-server.
|
authzserver is the server for iam-authz-server. |
internal
|
|
apiserver
Package apiserver does all the work necessary to create a iam APIServer.
|
Package apiserver does all the work necessary to create a iam APIServer. |
apiserver/controller/v1/cache
Package cache defines a cache service which can return all secrets and policies.
|
Package cache defines a cache service which can return all secrets and policies. |
apiserver/options
Package options contains flags and options for initializing an apiserver
|
Package options contains flags and options for initializing an apiserver |
apiserver/service/v1
mockService := new(MockService) mockItemService := new(MockItemService) mockService.On("Item").Return(mockItemService) mockItemService.On("Create", ctx, item, opts).Return(nil)
|
mockService := new(MockService) mockItemService := new(MockItemService) mockService.On("Item").Return(mockItemService) mockItemService.On("Create", ctx, item, opts).Return(nil) |
apiserver/store
mockFactory := new(MockFactory) mockItemStore := new(MockItemStore) mockFactory.On("Item").Return(mockItemStore) mockItemStore.On("Create", ctx, item, opts).Return(nil)
|
mockFactory := new(MockFactory) mockItemStore := new(MockItemStore) mockFactory.On("Item").Return(mockItemStore) mockItemStore.On("Create", ctx, item, opts).Return(nil) |
authzserver
Package authzserver does all of the work necessary to create a authzserver
|
Package authzserver does all of the work necessary to create a authzserver |
authzserver/controller/v1/authorize
Package authorize implements the authorize handlers.
|
Package authorize implements the authorize handlers. |
iamctl
Package iamctl provides the functions used by the iamctl command line tool under github.com/marmotedu/iam/cmd.
|
Package iamctl provides the functions used by the iamctl command line tool under github.com/marmotedu/iam/cmd. |
iamctl/cmd
Package cmd create a root cobra command and add subcommands to it.
|
Package cmd create a root cobra command and add subcommands to it. |
iamctl/cmd/color
Package color print colors supported by the current terminal.
|
Package color print colors supported by the current terminal. |
iamctl/cmd/completion
Package completion output shell completion code for the specified shell (bash or zsh).
|
Package completion output shell completion code for the specified shell (bash or zsh). |
iamctl/cmd/info
Package info print the host information.
|
Package info print the host information. |
iamctl/cmd/jwt
Package jwt can be used to sign/show/verify jwt token with given secretID and secretKey.
|
Package jwt can be used to sign/show/verify jwt token with given secretID and secretKey. |
iamctl/cmd/new
Package new used to generate demo command code.
|
Package new used to generate demo command code. |
iamctl/cmd/options
Package options print a list of global command-line options (applies to all commands).
|
Package options print a list of global command-line options (applies to all commands). |
iamctl/cmd/policy
Package policy provides functions to manage authorization policies on iam platform.
|
Package policy provides functions to manage authorization policies on iam platform. |
iamctl/cmd/secret
Package secret provides functions to manage secrets on iam platform.
|
Package secret provides functions to manage secrets on iam platform. |
iamctl/cmd/set
Package set used to set specific features on objects.
|
Package set used to set specific features on objects. |
iamctl/cmd/user
Package user provides functions to manage users on iam platform.
|
Package user provides functions to manage users on iam platform. |
iamctl/cmd/validate
Package validate validate the basic environment for iamctl to run.
|
Package validate validate the basic environment for iamctl to run. |
iamctl/cmd/version
Package version print the client and server version information.
|
Package version print the client and server version information. |
iamctl/util/interrupt
Package interrupt deal with signals.
|
Package interrupt deal with signals. |
iamctl/util/templates
Package templates provides template functions for working with templates.
|
Package templates provides template functions for working with templates. |
iamctl/util/term
Package term provides structures and helper functions to work with terminal (state, sizes).
|
Package term provides structures and helper functions to work with terminal (state, sizes). |
pkg/code
Package code defines error codes for iam platform.
|
Package code defines error codes for iam platform. |
pkg/logger
Package logger defines gorm logger
|
Package logger defines gorm logger |
pkg/server
Package server runs a http server used to provide a api to check pump health status.
|
Package server runs a http server used to provide a api to check pump health status. |
pkg/util/gormutil
Package gormutil is a util to convert offset and limit to default values.
|
Package gormutil is a util to convert offset and limit to default values. |
pkg/validation
Package validation defines validate functions internal used by iam.
|
Package validation defines validate functions internal used by iam. |
pump
Package pump does all the work necessary to create an iam pump server.
|
Package pump does all the work necessary to create an iam pump server. |
pump/analytics
Package analytics defines all the functions and structs used to store traffic analytics.
|
Package analytics defines all the functions and structs used to store traffic analytics. |
pump/storage
Package storage defines storages which store the analytics data from iam-authz-server.
|
Package storage defines storages which store the analytics data from iam-authz-server. |
pump/storage/redis
Package redis provides an redis implementation of the AnalyticsStorage storage interface.
|
Package redis provides an redis implementation of the AnalyticsStorage storage interface. |
pkg
|
|
app
Package app defines an application framework used to create application.
|
Package app defines an application framework used to create application. |
file_storage/s3
s3/s3.go
|
s3/s3.go |
shutdown
Package shutdown Providing shutdown callbacks for graceful app shutdown
|
Package shutdown Providing shutdown callbacks for graceful app shutdown |
shutdown/shutdownmanagers/posixsignal
Package posixsignal provides a listener for a posix signal.
|
Package posixsignal provides a listener for a posix signal. |
storage
Package storage defines redis storage.
|
Package storage defines redis storage. |
validator
Package validator defines iam custom binding validators used by gin.
|
Package validator defines iam custom binding validators used by gin. |
Click to show internal directories.
Click to hide internal directories.