2023-03-28 21:12:41 +01:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2023-08-11 09:12:13 -04:00
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
2023-03-28 21:12:41 +01:00
|
|
|
|
2022-02-11 12:53:23 -08:00
|
|
|
//go: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 12:34:59 -07:00
|
|
|
return "\"" + od.Name + "\""
|
2022-02-11 12:53:23 -08:00
|
|
|
}
|