mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
22 lines
476 B
Go
22 lines
476 B
Go
package pilosa
|
|
|
|
// SecurityManager provides the ability to limit access to restricted endpoints
|
|
// during cluster configuration
|
|
type SecurityManager interface {
|
|
SetRestricted()
|
|
SetNormal()
|
|
}
|
|
|
|
// DefaultSecurityManager provides a no-op implimentation of the SecurityManager interface
|
|
type DefaultSecurityManager struct {
|
|
}
|
|
|
|
// SetRestricted no-op
|
|
func (sdm *DefaultSecurityManager) SetRestricted() {
|
|
|
|
}
|
|
|
|
// SetNormal no-op
|
|
func (sdm *DefaultSecurityManager) SetNormal() {
|
|
|
|
}
|