Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8sServiceAccount ¶
K8sServiceAccount is a type for a namespaced service account
func (K8sServiceAccount) String ¶
func (ns 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) GetCommonName ¶ added in v0.1.0
func (ms MeshService) GetCommonName() certificate.CommonName
GetCommonName returns the Subject CN for the MeshService to be used for its certificate.
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
Click to show internal directories.
Click to hide internal directories.