Documentation ¶
Overview ¶
Package service models an instance of a service managed by OSM controller and utility routines associated with it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 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 (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
Click to show internal directories.
Click to hide internal directories.