github.imxd.top/hashicorp/consul@v1.4.5/agent/config/segment_oss.go (about)

     1  // +build !ent
     2  
     3  package config
     4  
     5  import (
     6  	"github.com/hashicorp/consul/agent/structs"
     7  )
     8  
     9  func (b *Builder) validateSegments(rt RuntimeConfig) error {
    10  	if rt.SegmentName != "" {
    11  		return structs.ErrSegmentsNotSupported
    12  	}
    13  	if len(rt.Segments) > 0 {
    14  		return structs.ErrSegmentsNotSupported
    15  	}
    16  	return nil
    17  }