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
294 B

package target
import (
"fmt"
"github.com/hashicorp/boundary/internal/db"
)
const (
TcpTargetPrefix = "ttcp"
)
func newTcpTargetId() (string, error) {
id, err := db.NewPublicId(TcpTargetPrefix)
if err != nil {
return "", fmt.Errorf("new tcp target id: %w", err)
}
return id, nil
}