mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
Implement prefect in Cluster so a node can start http listener in a restricted mode. Adjust tests; particularly start test.Holder in state Normal. TODO: - [ ] fix test TestMain_SendReceiveMessage - [ ] add additional tests for `nodeState`
18 lines
460 B
Go
18 lines
460 B
Go
package pilosa
|
|
|
|
// SecurityManager provides the ability to limit access to restricted endpoints
|
|
// during cluster configuration.
|
|
type SecurityManager interface {
|
|
SetRestricted()
|
|
SetNormal()
|
|
}
|
|
|
|
// NopSecurityManager provides a no-op implementation of the SecurityManager interface.
|
|
type NopSecurityManager struct {
|
|
}
|
|
|
|
// SetRestricted no-op.
|
|
func (sdm *NopSecurityManager) SetRestricted() {}
|
|
|
|
// SetNormal no-op.
|
|
func (sdm *NopSecurityManager) SetNormal() {}
|