Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Error messages ErrInvalidJSON = "invalid JSON" ErrUserNotFound = "user not found" // Runtime config errors ErrRuntimeConfig = "runtime config read error" )
View Source
const ( ErrInvalidOverridesConfiguration = "invalid overrides configuration" ErrFailedToCreateBucketClient = "failed to create bucket client for overrides" )
View Source
const (
// Error messages
ErrInvalidLimits = "the following limits cannot be modified via the overrides API"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
func New ¶
func New(cfg runtimeconfig.Config, logger log.Logger, registerer prometheus.Registerer) (*API, error)
func (*API) DeleteOverrides ¶
func (a *API) DeleteOverrides(w http.ResponseWriter, r *http.Request)
DeleteOverrides removes tenant-specific overrides
func (*API) GetOverrides ¶
func (a *API) GetOverrides(w http.ResponseWriter, r *http.Request)
GetOverrides retrieves overrides for a specific tenant
func (*API) SetOverrides ¶
func (a *API) SetOverrides(w http.ResponseWriter, r *http.Request)
SetOverrides updates overrides for a specific tenant
Click to show internal directories.
Click to hide internal directories.