nametemplate

package
v0.0.0-...-15297c8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NameTemplate

type NameTemplate struct {

	// Element is a map of element name :: index in the segmented record name for the named element
	Element map[string]int
	// contains filtered or unexported fields
}

func (*NameTemplate) GetNamespaceFromSegmentArray

func (t *NameTemplate) GetNamespaceFromSegmentArray(segments []string) string

func (*NameTemplate) GetRecordNameFromNameValues

func (t *NameTemplate) GetRecordNameFromNameValues(values NameValues) string

GetRecordNameFromNameValues returns the string produced by applying the values to the NameTemplate format string.

func (*NameTemplate) GetServiceFromSegmentArray

func (t *NameTemplate) GetServiceFromSegmentArray(segments []string) string

func (*NameTemplate) GetSymbolFromSegmentArray

func (t *NameTemplate) GetSymbolFromSegmentArray(symbol string, segments []string) string

func (*NameTemplate) GetTypeFromSegmentArray

func (t *NameTemplate) GetTypeFromSegmentArray(segments []string) string

func (*NameTemplate) GetZoneFromSegmentArray

func (t *NameTemplate) GetZoneFromSegmentArray(segments []string) string

func (*NameTemplate) IsValid

func (t *NameTemplate) IsValid() bool

func (*NameTemplate) SetTemplate

func (t *NameTemplate) SetTemplate(s string) error

type NameValues

type NameValues struct {
	ServiceName string
	Namespace   string
	TypeName    string
	Zone        string
}

Jump to

Keyboard shortcuts

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