service

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account string

Account is a type for a service account

func (Account) String

func (s Account) String() string

type ClusterName

type ClusterName string

ClusterName is a type for a service name

type Name

type Name string

Name is a type for a service name

func (Name) String

func (s Name) String() string

type NamespacedService

type NamespacedService struct {
	Namespace string
	Service   string
}

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 NamespacedServiceAccount

type NamespacedServiceAccount struct {
	Namespace      string
	ServiceAccount string
}

NamespacedServiceAccount is a type for a namespaced service account

func (NamespacedServiceAccount) String

func (ns NamespacedServiceAccount) 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

Jump to

Keyboard shortcuts

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