Documentation ¶
Index ¶
- type NameValues
- type Template
- func (t *Template) IsValid() bool
- func (t *Template) NamespaceFromSegmentArray(segments []string) string
- func (t *Template) RecordNameFromNameValues(values NameValues) string
- func (t *Template) ServiceFromSegmentArray(segments []string) string
- func (t *Template) SetTemplate(s string) error
- func (t *Template) TypeFromSegmentArray(segments []string) string
- func (t *Template) ZoneFromSegmentArray(segments []string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NameValues ¶
NameValues contains a number of values. TODO(...): better docs.
type Template ¶
type Template 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 }
Template holds the kubernetes template.
func (*Template) IsValid ¶
IsValid returns true if the template has all the required symbols, false otherwise.
func (*Template) NamespaceFromSegmentArray ¶
NamespaceFromSegmentArray returns the namespace string from the segments.
func (*Template) RecordNameFromNameValues ¶
func (t *Template) RecordNameFromNameValues(values NameValues) string
RecordNameFromNameValues returns the string produced by applying the values to the NameTemplate format string.
func (*Template) ServiceFromSegmentArray ¶
ServiceFromSegmentArray returns the service string from the segments.
func (*Template) SetTemplate ¶
SetTemplate use the string s the set the template.
func (*Template) TypeFromSegmentArray ¶
TypeFromSegmentArray returns the type string from the segments.
func (*Template) ZoneFromSegmentArray ¶
ZoneFromSegmentArray returns the zone string from the segments.
Click to show internal directories.
Click to hide internal directories.