Documentation
¶
Index ¶
- type Agent
- func (a *Agent) ConnectAuthorize(ctx context.Context, input AgentConnectAuthorizeRequest) (AgentConnectAuthorizeResponse, error)
- func (a *Agent) ConnectCALeaf(ctx context.Context, service string) (AgentConnectCALeaf, error)
- func (a *Agent) ConnectCARoots(ctx context.Context) (AgentConnectCARoots, error)
- func (a *Agent) ServiceDeregister(ctx context.Context, serviceID string) error
- func (a *Agent) ServiceRegister(ctx context.Context, registration AgentServiceRegistration) error
- func (a *Agent) UpdateTTL(ctx context.Context, status Status, checkID, output string) error
- type AgentConnectAuthorizeRequest
- type AgentConnectAuthorizeResponse
- type AgentConnectCALeaf
- type AgentConnectCARoot
- type AgentConnectCARoots
- type AgentServiceCheck
- type AgentServiceConnect
- type AgentServiceProxy
- type AgentServiceRegistration
- type Health
- type HealthService
- type HealthServiceEntry
- type Option
- type Options
- type ServiceKind
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func (*Agent) ConnectAuthorize ¶
func (a *Agent) ConnectAuthorize(ctx context.Context, input AgentConnectAuthorizeRequest) (AgentConnectAuthorizeResponse, error)
func (*Agent) ConnectCALeaf ¶
func (*Agent) ConnectCARoots ¶
func (a *Agent) ConnectCARoots(ctx context.Context) (AgentConnectCARoots, error)
func (*Agent) ServiceDeregister ¶
func (*Agent) ServiceRegister ¶
func (a *Agent) ServiceRegister(ctx context.Context, registration AgentServiceRegistration) error
type AgentConnectCALeaf ¶
type AgentConnectCARoot ¶
type AgentConnectCARoots ¶
type AgentConnectCARoots struct { ActiveRootID string TrustDomain string Roots []AgentConnectCARoot }
type AgentServiceCheck ¶
type AgentServiceConnect ¶
type AgentServiceConnect struct {
Native bool
}
type AgentServiceProxy ¶
type AgentServiceProxy struct { DestinationServiceName string DestinationServiceID string `json:",omitempty"` LocalServiceAddress string `json:",omitempty"` LocalServicePort int `json:",omitempty"` }
AgentServiceConnectProxyConfig is the proxy configuration in a connect-proxy ServiceDefinition or response.
type AgentServiceRegistration ¶
type AgentServiceRegistration struct { Kind ServiceKind `json:",omitempty"` ID string `json:",omitempty"` Name string `json:",omitempty"` Tags []string `json:",omitempty"` Port int `json:",omitempty"` Address string `json:",omitempty"` Check *AgentServiceCheck `json:",omitempty"` Connect *AgentServiceConnect `json:",omitempty"` ProxyDestination string `json:",omitempty"` Proxy *AgentServiceProxy `json:",omitempty"` }
type HealthServiceEntry ¶
type HealthServiceEntry struct {
Service HealthService
}
type ServiceKind ¶
type ServiceKind string
ServiceKind is the kind of service being registered.
const ( // ServiceKindTypical is a typical, classic Consul service. This is // represented by the absence of a value. This was chosen for ease of // backwards compatibility: existing services in the catalog would // default to the typical service. ServiceKindTypical ServiceKind = "" // ServiceKindConnectProxy is a proxy for the Connect feature. This // service proxies another service within Consul and speaks the connect // protocol. ServiceKindConnectProxy ServiceKind = "connect-proxy" )
Click to show internal directories.
Click to hide internal directories.