Files
threshold/internal/target/ids.go
T
Louis Ruch 558f9220a5 ICU-744/Refactor internal/target to new domain errors (#865)
* Refactor internal/target to new domain errors
2021-01-22 13:46:20 -08:00

20 lines
351 B
Go

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