2018-10-19 16:04:07 +00:00
|
|
|
package consul
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/hashicorp/consul/agent/structs"
|
|
|
|
)
|
|
|
|
|
2021-09-22 23:13:55 +00:00
|
|
|
type LegacyACLGetPolicy struct{}
|
|
|
|
|
|
|
|
func (a *ACL) GetPolicy(*LegacyACLGetPolicy, *LegacyACLGetPolicy) error {
|
|
|
|
return fmt.Errorf("ACL.GetPolicy: the legacy ACL system has been removed")
|
|
|
|
}
|
|
|
|
|
2021-09-29 21:11:01 +00:00
|
|
|
func (a *ACL) Bootstrap(*structs.DCSpecificRequest, *LegacyACLRequest) error {
|
2021-08-13 22:31:32 +00:00
|
|
|
return fmt.Errorf("ACL.Bootstrap: the legacy ACL system has been removed")
|
2018-10-19 16:04:07 +00:00
|
|
|
}
|
|
|
|
|
2021-09-22 15:43:13 +00:00
|
|
|
type LegacyACLRequest struct{}
|
|
|
|
|
|
|
|
func (a *ACL) Apply(*LegacyACLRequest, *string) error {
|
2021-09-21 23:43:05 +00:00
|
|
|
return fmt.Errorf("ACL.Apply: the legacy ACL system has been removed")
|
2018-10-19 16:04:07 +00:00
|
|
|
}
|
|
|
|
|
2021-09-29 21:11:01 +00:00
|
|
|
func (a *ACL) Get(*LegacyACLRequest, *LegacyACLRequest) error {
|
2021-09-03 17:08:28 +00:00
|
|
|
return fmt.Errorf("ACL.Get: the legacy ACL system has been removed")
|
2018-10-19 16:04:07 +00:00
|
|
|
}
|
|
|
|
|
2021-09-29 21:11:01 +00:00
|
|
|
func (a *ACL) List(*structs.DCSpecificRequest, *LegacyACLRequest) error {
|
2021-09-03 17:08:28 +00:00
|
|
|
return fmt.Errorf("ACL.List: the legacy ACL system has been removed")
|
2018-10-19 16:04:07 +00:00
|
|
|
}
|