Directories ¶
Path | Synopsis |
---|---|
api
|
|
apiserver/v1
Package v1 defines schemes used by leona-apiserver.
|
Package v1 defines schemes used by leona-apiserver. |
cmd
|
|
examples
|
|
internal
|
|
apiserver/analytics
Package analytics defines functions and structs used to store authorization audit data to redis.
|
Package analytics defines functions and structs used to store authorization audit data to redis. |
apiserver/config
Package config defines configuration for leona-apiserver.
|
Package config defines configuration for leona-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/controller/v1/user
Package user implements the user handler.
|
Package user implements the user handler. |
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
Package v1 is the place where you can implements more complex business logic.
|
Package v1 is the place where you can implements more complex business logic. |
apiserver/store
Package store defines the storage interface for leona-apiserver.
|
Package store defines the storage interface for leona-apiserver. |
gstash/config
Package config defines gstash configuration.
|
Package config defines gstash configuration. |
gstash/gstashs
Package gstashs defines multiple back-end service used to persistent store iam analytics data.
|
Package gstashs defines multiple back-end service used to persistent store iam analytics data. |
gstash/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. |
gstash/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/code
Package code defines error codes for leona platform.
|
Package code defines error codes for leona platform. |
pkg/logger
Package logger defines gorm logger
|
Package logger defines gorm logger |
pkg/middleware
Package middleware defines multiple gin middlewares
|
Package middleware defines multiple gin middlewares |
pkg/middleware/auth
Package auth defines authentication strategy like Basic, Bearer.
|
Package auth defines authentication strategy like Basic, Bearer. |
pkg/options
Package options is the public flags and options used by a generic api server.
|
Package options is the public flags and options used by a generic api server. |
pkg/server
Package server runs a http server used to provide a api to check gstash health status.
|
Package server runs a http server used to provide a api to check gstash 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 leona.
|
Package validation defines validate functions internal used by leona. |
pkg
|
|
app
Package app defines an application framework used to create application.
|
Package app defines an application framework used to create application. |
auth
Package auth encrypt and compare password string.
|
Package auth encrypt and compare password string. |
core
Package core implements some core functions used by apimachinery.
|
Package core implements some core functions used by apimachinery. |
db
Package db provide useful functions to create mysql instance.
|
Package db provide useful functions to create mysql instance. |
errors
Package errors provides simple error handling primitives.
|
Package errors provides simple error handling primitives. |
fields
Package fields implements a simple field system, parsing and matching selectors with sets of fields.
|
Package fields implements a simple field system, parsing and matching selectors with sets of fields. |
labels
Package labels implements a simple label system, parsing and matching selectors with sets of labels.
|
Package labels implements a simple label system, parsing and matching selectors with sets of labels. |
log
Package log is a log package used by TKE team.
|
Package log is a log package used by TKE team. |
log/distribution
Package distribution implements a logger which compatible to logrus/std log/prometheus.
|
Package distribution implements a logger which compatible to logrus/std log/prometheus. |
log/logrus
Package logrus adds a hook to the logrus logger hooks.
|
Package logrus adds a hook to the logrus logger hooks. |
meta/v1
Package v1 contains API types that are common to all versions.
|
Package v1 contains API types that are common to all versions. |
runtime
Package runtime defines some functions used to encode/decode object.
|
Package runtime defines some functions used to encode/decode object. |
scheme
Package scheme defines some useful function for group version.
|
Package scheme defines some useful function for group version. |
selection
Package selection defiens some operators to use.
|
Package selection defiens some operators to use. |
shutdown
Package shutdown Providing shutdown callbacks for graceful app shutdown Installation To install run: go get github.com/dairongpeng/leona/pkg/shutdown Example - posix signals Graceful shutdown will listen for posix SIGINT and SIGTERM signals.
|
Package shutdown Providing shutdown callbacks for graceful app shutdown Installation To install run: go get github.com/dairongpeng/leona/pkg/shutdown Example - posix signals Graceful shutdown will listen for posix SIGINT and SIGTERM signals. |
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. |
time
Package time implements a new time with specified time format.
|
Package time implements a new time with specified time format. |
tools
This program ensures source code files have copyright license headers.
|
This program ensures source code files have copyright license headers. |
util/homedir
Package homedir returns the home directory of any operating system.
|
Package homedir returns the home directory of any operating system. |
util/idutil
Package idutil is a tool set used to generate multiple id string.
|
Package idutil is a tool set used to generate multiple id string. |
util/sets
Package sets has auto-generated set types.
|
Package sets has auto-generated set types. |
util/wait
Package wait provides tools for polling or listening for changes to a condition.
|
Package wait provides tools for polling or listening for changes to a condition. |
validation
Package validation defines apimachinery user-defined validations.
|
Package validation defines apimachinery user-defined validations. |
validation/field
Package field implements field path functions when do validation.
|
Package field implements field path functions when do validation. |
validator
Package validator defines leona custom binding validators used by gin.
|
Package validator defines leona custom binding validators used by gin. |
version
Package version supplies version information collected at build time to apimachinery components.
|
Package version supplies version information collected at build time to apimachinery components. |
version/verflag
Package verflag defines utility functions to handle command line flags related to version of LEONA.
|
Package verflag defines utility functions to handle command line flags related to version of LEONA. |
Click to show internal directories.
Click to hide internal directories.