2019-12-06 20:35:58 +00:00
|
|
|
// +build !consulent
|
|
|
|
|
|
|
|
package agent
|
|
|
|
|
2019-12-10 02:26:41 +00:00
|
|
|
import (
|
2020-02-04 20:58:56 +00:00
|
|
|
"github.com/hashicorp/consul/agent/config"
|
2019-12-10 02:26:41 +00:00
|
|
|
"github.com/hashicorp/consul/agent/consul"
|
|
|
|
"github.com/hashicorp/consul/agent/structs"
|
|
|
|
"github.com/hashicorp/consul/api"
|
|
|
|
)
|
|
|
|
|
2020-04-17 20:27:39 +00:00
|
|
|
// enterpriseAgent embeds fields that we only access in consul-enterprise builds
|
|
|
|
type enterpriseAgent struct{}
|
|
|
|
|
2020-04-16 22:07:52 +00:00
|
|
|
// fillAgentServiceEnterpriseMeta is a noop stub for the func defined agent_ent.go
|
2019-12-10 02:26:41 +00:00
|
|
|
func fillAgentServiceEnterpriseMeta(_ *api.AgentService, _ *structs.EnterpriseMeta) {}
|
|
|
|
|
2020-04-16 22:07:52 +00:00
|
|
|
// fillHealthCheckEnterpriseMeta is a noop stub for the func defined agent_ent.go
|
2019-12-10 02:26:41 +00:00
|
|
|
func fillHealthCheckEnterpriseMeta(_ *api.HealthCheck, _ *structs.EnterpriseMeta) {}
|
2019-12-06 20:35:58 +00:00
|
|
|
|
2020-04-16 22:07:52 +00:00
|
|
|
// initEnterprise is a noop stub for the func defined agent_ent.go
|
|
|
|
func (a *Agent) initEnterprise(consulCfg *consul.Config) error {
|
|
|
|
return nil
|
2019-12-06 20:35:58 +00:00
|
|
|
}
|
2020-02-04 20:58:56 +00:00
|
|
|
|
2020-04-16 22:07:52 +00:00
|
|
|
// loadEnterpriseTokens is a noop stub for the func defined agent_ent.go
|
2020-02-04 20:58:56 +00:00
|
|
|
func (a *Agent) loadEnterpriseTokens(conf *config.RuntimeConfig) {
|
|
|
|
}
|
2020-04-16 22:07:52 +00:00
|
|
|
|
|
|
|
// reloadEnterprise is a noop stub for the func defined agent_ent.go
|
|
|
|
func (a *Agent) reloadEnterprise(conf *config.RuntimeConfig) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-04-28 13:42:46 +00:00
|
|
|
// enterpriseConsulConfig is a noop stub for the func defined in agent_ent.go
|
2020-08-13 16:35:44 +00:00
|
|
|
func enterpriseConsulConfig(_ *consul.Config, _ *config.RuntimeConfig) {
|
2020-04-28 13:42:46 +00:00
|
|
|
}
|
|
|
|
|
2020-04-16 22:07:52 +00:00
|
|
|
// WriteEvent is a noop stub for the func defined agent_ent.go
|
|
|
|
func (a *Agent) WriteEvent(eventType string, payload interface{}) {
|
|
|
|
}
|