Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminServer ¶
type AdminServer struct {
// contains filtered or unexported fields
}
func NewAdminServer ¶
func NewAdminServer(log *zap.Logger, mode string, m KeyManager, krm KeyReportingManager, psm ProviderSettingsManager, cpm CustomProvidersManager, rm RouteManager, pm PoliciesManager, adminPass string) (*AdminServer, error)
func (*AdminServer) Run ¶
func (as *AdminServer) Run()
type CustomProvidersManager ¶
type CustomProvidersManager interface { CreateCustomProvider(setting *custom.Provider) (*custom.Provider, error) GetCustomProviders() ([]*custom.Provider, error) GetRouteConfigFromMem(name, path string) *custom.RouteConfig GetCustomProviderFromMem(name string) *custom.Provider UpdateCustomProvider(id string, setting *custom.UpdateProvider) (*custom.Provider, error) }
type ErrorResponse ¶
type KeyManager ¶
type KeyManager interface { GetKeys(tags, keyIds []string, provider string) ([]*key.ResponseKey, error) UpdateKey(id string, key *key.UpdateKey) (*key.ResponseKey, error) CreateKey(key *key.RequestKey) (*key.ResponseKey, error) DeleteKey(id string) error }
type KeyReportingManager ¶
type KeyReportingManager interface { GetKeyReporting(keyId string) (*key.KeyReporting, error) GetEvents(userId, customId string, keyIds []string, start int64, end int64) ([]*event.Event, error) GetEventReporting(e *event.ReportingRequest) (*event.ReportingResponse, error) GetAggregatedEventByDayReporting(e *event.ReportingRequest) (*event.ReportingResponse, error) }
type PoliciesManager ¶ added in v1.13.0
type ProviderSettingsManager ¶
Click to show internal directories.
Click to hide internal directories.