Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnterpriseMeta ¶
func NewEnterpriseMeta ¶
func NewEnterpriseMeta(ap, ns string) *EnterpriseMeta
type ExtensionData ¶
type ExtensionData struct { // PrivateKeyPEM is the TLS certificate private key in PEM format. PrivateKeyPEM string `json:"privateKeyPEM"` // CertPEM is the TLS certificate in PEM format. CertPEM string `json:"certPEM"` // RootCertPEM is the TLS root CA certificate in PEM format. RootCertPEM string `json:"rootCertPEM"` // TrustDomain is the trusted domain that the service belongs to. TrustDomain string `json:"trustDomain"` // Peers is the list of peers. // TODO: Add support for cluster peering. Peers []Peer `json:"peers,omitempty"` }
ExtensionData holds the information that a Lambda function needs to call services in the Consul service mesh.
func (ExtensionData) Equals ¶
func (x ExtensionData) Equals(y ExtensionData) bool
type Peer ¶
type Peer struct { // Name of the peer. Name string `json:"name"` // TrustDomain is the trusted domain of the peer. TrustDomain string `json:"trustDomain"` }
Peer holds the information for a Consul peer.
type Service ¶
type Service struct { *EnterpriseMeta Name string Port int Datacenter string TrustDomain string Subset string }
func ParseUpstream ¶
ParseUpstream parses a string in unlabeled upstream format into a Service instance.
func (Service) DatacenterOrDefault ¶
func (Service) ExtensionPath ¶
func (Service) NamespaceOrDefault ¶
func (Service) PartitionOrDefault ¶
Click to show internal directories.
Click to hide internal directories.