open-nomad/nomad/endpoints_oss.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
462 B
Go
Raw Normal View History

//go:build !ent
// +build !ent
2017-09-07 23:56:15 +00:00
package nomad
import "net/rpc"
2017-09-07 23:56:15 +00:00
// EnterpriseEndpoints holds the set of enterprise only endpoints to register
type EnterpriseEndpoints struct{}
// NewEnterpriseEndpoints returns a stub of the enterprise endpoints since there
// are none in oss
func NewEnterpriseEndpoints(s *Server) *EnterpriseEndpoints {
return &EnterpriseEndpoints{}
}
// Register is a no-op in oss.
func (e *EnterpriseEndpoints) Register(s *rpc.Server) {}