@@ -3,9 +3,16 @@
 package selector
 
 import (
+	"fmt"
+	"strings"
+
 	"github.com/spiffe/spire/proto/spire/common"
 )
 
+// Type and Value are delimited by a colon (:)
+// e.g. "unix:uid:1000"
+const Delimiter = ":"
+
 type Selector struct {
 	Type  string
 	Value string
// The selector package exports functions useful for manipulating and generating
// spire selectors
package selector

import (
	"github.com/spiffe/spire/proto/spire/common"
)

type Selector struct {
	Type  string
	Value string
}

func New(c *common.Selector) *Selector {
	s := &Selector{
		Type:  c.Type,
		Value: c.Value,
	}
	return s
}

func (s *Selector) Raw() *common.Selector {
	c := &common.Selector{
		Type:  s.Type,
		Value: s.Value,
	}
	return c
}

After this PR is merged, I will create another PR to use this constant in the SPIRE code.