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, 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 ProviderSettingsManager ¶
Click to show internal directories.
Click to hide internal directories.