Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var SyntheticServiceSuffix = uuid.New().String()
SyntheticServiceSuffix is a random string appended to the name of the synthetic service created for each K8s service account
Functions ¶
This section is empty.
Types ¶
type ClusterName ¶
type ClusterName string
ClusterName is a type for a service name
func (ClusterName) String ¶ added in v0.6.0
func (c ClusterName) String() string
String returns the given ClusterName type as a string
type K8sServiceAccount ¶
K8sServiceAccount is a type for a namespaced service account
func (K8sServiceAccount) GetSyntheticService ¶ added in v0.6.0
func (sa K8sServiceAccount) GetSyntheticService() MeshService
GetSyntheticService creates a MeshService for the given K8s Service Account, which has a unique name and is in lieu of an existing Kubernetes service.
func (K8sServiceAccount) String ¶
func (sa K8sServiceAccount) String() string
type MeshService ¶ added in v0.1.0
type MeshService struct { // If the service resides on a Kubernetes service, this would be the Kubernetes namespace. Namespace string // The name of the service Name string }
MeshService is the struct defining a service (Kubernetes or otherwise) within a service mesh.
func UnmarshalMeshService ¶ added in v0.1.0
func UnmarshalMeshService(str string) (*MeshService, error)
UnmarshalMeshService unmarshals a NamespaceService type from a string
func (MeshService) Equals ¶ added in v0.1.0
func (ms MeshService) Equals(service MeshService) bool
Equals checks if two namespaced services are equal
func (MeshService) ServerName ¶ added in v0.6.0
func (ms MeshService) ServerName() string
ServerName returns the Server Name Identifier (SNI) for TLS connections
func (MeshService) String ¶ added in v0.1.0
func (ms MeshService) String() string
type WeightedCluster ¶
type WeightedCluster struct { ClusterName ClusterName `json:"cluster_name:omitempty"` Weight int `json:"weight:omitempty"` }
WeightedCluster is a struct of a cluster and is weight that is backing a service
type WeightedService ¶
type WeightedService struct { Service MeshService `json:"service_name:omitempty"` Weight int `json:"weight:omitempty"` RootService string `json:"root_service:omitempty"` }
WeightedService is a struct of a service name, its weight and its root service