service

package
v0.5.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 4 Imported by: 1

Documentation

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

type K8sServiceAccount

type K8sServiceAccount struct {
	Namespace string
	Name      string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL