You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
boundary/internal/target/ids.go

20 lines
351 B

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
}