Files
threshold/internal/target/ids.go
T

19 lines
351 B
Go
Raw Normal View History

2020-08-26 13:58:46 -04:00
package target
import (
"github.com/hashicorp/boundary/internal/db"
"github.com/hashicorp/boundary/internal/errors"
2020-08-26 13:58:46 -04:00
)
const (
TcpTargetPrefix = "ttcp"
)
func newTcpTargetId() (string, error) {
const op = "target.newTcpTargetId"
2020-08-26 13:58:46 -04:00
id, err := db.NewPublicId(TcpTargetPrefix)
if err != nil {
return "", errors.Wrap(err, op)
2020-08-26 13:58:46 -04:00
}
return id, nil
}