names

package
v0.0.0-...-168b963 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package names creates and accesses the nanoservice naming hierarchy

Index

Constants

View Source
const (
	FilterDefault   = "*..*.*.*.*"
	FilterReduce    = "*.*.*.*.."
	FilterContainer = "*.*."
)

Filters for different use cases

Variables

This section is empty.

Functions

func AMI

func AMI(name string) string

AMI from a name

func Arch

func Arch(name string) string

Arch extract from a name

func Container

func Container(name string) string

Container from a name

func Filter

func Filter(name, filter string) string

Filter a name to take out components. "a.b.c" filter "*.*" returns "a"

func FilterEdge

func FilterEdge(fromTo string) string

FilterEdge - two space separated nodes

func FilterNode

func FilterNode(node string) string

FilterNode to simplify its name

func Instance

func Instance(name string) string

Instance from a name

func Machine

func Machine(name string) string

Machine from a name

func Make

func Make(a, r, z, s, g string, i int) string

Make a service name from components and an index

func MakeContainer

func MakeContainer(a, r, z, m, i, c, p, s, g string) string

MakeContainer name from components and an index

func OtherRegions

func OtherRegions(name string, rnames []string) []string

OtherRegions given one

func OtherZones

func OtherZones(name string, znames []string) []string

OtherZones given one

func Package

func Package(name string) string

Package (same as AMI) from a name

func Process

func Process(name string) string

Process from a name

func Region

func Region(name string) string

Region extract from a name

func RegionZone

func RegionZone(name string) string

RegionZone together

func Service

func Service(name string) string

Service from a name

func Splitter

func Splitter(name string, offset hier) string

Splitter for a component of a name

func Zone

func Zone(name string) string

Zone extract from a name

Types

This section is empty.

Jump to

Keyboard shortcuts

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