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 NamespacedService ¶
NamespacedService is a type for a namespaced service
func UnmarshalNamespacedService ¶
func UnmarshalNamespacedService(str string) (*NamespacedService, error)
UnmarshalNamespacedService unmarshals a NamespaceService type from a string
func (NamespacedService) Equals ¶
func (ns NamespacedService) Equals(service NamespacedService) bool
Equals checks if two namespaced services are equal
func (NamespacedService) GetCommonName ¶
func (ns NamespacedService) GetCommonName() certificate.CommonName
GetCommonName returns the Subject CN for the NamespacedService to be used for its certificate.
func (NamespacedService) String ¶
func (ns NamespacedService) 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 {
NamespacedService NamespacedService `json:"service_name:omitempty"`
Weight int `json:"weight:omitempty"`
Domain string `json:"domain:omitempty"`
}
WeightedService is a struct of a service name, its weight and domain
Click to show internal directories.
Click to hide internal directories.