service

package
v0.8.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

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 K8sServiceAccount

type K8sServiceAccount struct {
	Namespace string
	Name      string
}

K8sServiceAccount is a type for a namespaced service account

func (K8sServiceAccount) IsEmpty added in v0.8.0

func (sa K8sServiceAccount) IsEmpty() bool

IsEmpty returns true if the given service account object is empty

func (K8sServiceAccount) String

func (sa K8sServiceAccount) String() string

String returns the string representation of the service account object

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

Jump to

Keyboard shortcuts

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