service

package
v0.0.0-...-edfa39e Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Namespace for services running in the local environment
	Namespace = "istio-system"
	// Domain for services running in the local environment
	Domain = "svc.local"
	// LocalIPAddress for connections to localhost
	LocalIPAddress = "127.0.0.1"
	// LocalCIDR for connections to localhost
	LocalCIDR = "127.0.0.1/32"
)

Variables

View Source
var (
	// FullyQualifiedDomainName for local services
	FullyQualifiedDomainName = fmt.Sprintf("%s.%s", Namespace, Domain)
)

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// ConfigStore for all deployments.
	ConfigStore model.ConfigStoreCache
}

Manager is a wrapper around a model.ConfigStoreCache that simplifies service creation for the local environment.

func NewManager

func NewManager() *Manager

NewManager creates a new manager with an in-memory ConfigStore.

func (*Manager) Create

func (e *Manager) Create(serviceName, version string, ports model.PortList) (cfg model.Config, err error)

Create a new ServiceEntry for the given service and adds it to the ConfigStore.

Jump to

Keyboard shortcuts

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