2023-03-28 20:12:41 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2022-02-11 20:53:23 +00:00
|
|
|
//go:build !consulent
|
|
|
|
// +build !consulent
|
|
|
|
|
|
|
|
package acl
|
|
|
|
|
|
|
|
// In some sense we really want this to contain an EnterpriseMeta, but
|
|
|
|
// this turns out to be a convenient place to hang helper functions off of.
|
|
|
|
type ResourceDescriptor struct {
|
|
|
|
Name string
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewResourceDescriptor(name string, _ *AuthorizerContext) ResourceDescriptor {
|
|
|
|
return ResourceDescriptor{Name: name}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (od *ResourceDescriptor) ToString() string {
|
2022-03-25 19:34:59 +00:00
|
|
|
return "\"" + od.Name + "\""
|
2022-02-11 20:53:23 +00:00
|
|
|
}
|