Documentation ¶
Index ¶
- Constants
- func AgentServiceToCatalogService(as *api.AgentService, client *api.Client) (res *api.CatalogService, err error)
- func Backup() (err error)
- func CatalogNodeGetService(cn *api.CatalogNode, serviceName string) *api.AgentService
- func GetConsulApiEntryPoint(registrar *Registrar) *api.CatalogService
- func MakeACLClient() *api.Client
- func MakeClient() *api.Client
- func MakeClientWithConfig(cb1 configCallback) *api.Client
- func ModifyNodeMeta(tags map[string]string, addTags, removeTags []string, delim string, ...) map[string]string
- func ModifyTags(tags, addTags, removeTags []string, delim string, ...) []string
- func NodeToAgent(registrar *Registrar, node string) *api.CatalogNode
- func QueryService(name string, catalog *api.Catalog) ([]*api.CatalogService, error)
- func QueryServiceByID(serviceID string, client *api.Client) (as *api.AgentService, err error)
- func Restore() (err error)
- func ServiceList() (err error)
- func Tags() error
- func TagsList() (err error)
- func TagsToggle() error
- func WaitForResult(try testFn, fail errorFn)
- type Base
- type Discoverable
- type Glyph
- type InputZ
- type MyInputZ
- type Registrar
- type Service
Constants ¶
View Source
const ( DEFAULT_CONSUL_HOST = "consul.ops.local" DEFAULT_CONSUL_LOCALHOST = "localhost" DEFAULT_CONSUL_PORT = 8500 DEFAULT_CONSUL_SCHEME = "http" )
View Source
const ( SERVICE_CONSUL_API = "consulapi" SERVICE_DB = "test-rds" SERVICE_MQ = "test-mq" SERVICE_CACHE = "test-redis" KEY_WAS_SETUP = "ops/config/common" VALUE_WAS_SETUP = "---" )
View Source
const ( MS_PREFIX = "app.ms" TAGS_PREFIX = "app.ms.tags" )
Variables ¶
This section is empty.
Functions ¶
func AgentServiceToCatalogService ¶
func AgentServiceToCatalogService(as *api.AgentService, client *api.Client) (res *api.CatalogService, err error)
func CatalogNodeGetService ¶
func CatalogNodeGetService(cn *api.CatalogNode, serviceName string) *api.AgentService
func GetConsulApiEntryPoint ¶
func GetConsulApiEntryPoint(registrar *Registrar) *api.CatalogService
func MakeACLClient ¶
func MakeClient ¶
func MakeClientWithConfig ¶
func ModifyNodeMeta ¶ added in v0.3.2
func ModifyTags ¶
func NodeToAgent ¶
func NodeToAgent(registrar *Registrar, node string) *api.CatalogNode
func QueryService ¶
func QueryServiceByID ¶
func ServiceList ¶ added in v0.5.0
func ServiceList() (err error)
func TagsToggle ¶
func TagsToggle() error
func WaitForResult ¶
func WaitForResult(try testFn, fail errorFn)
Types ¶
type Discoverable ¶
type Registrar ¶
type Registrar struct { Base Clients []*api.CatalogService CurrentClient *api.CatalogService }
Click to show internal directories.
Click to hide internal directories.