frigga

package module
v0.0.0-...-e5f9f08 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 4 Imported by: 25

README

frigga-go

Circle CI codecov.io

A selective Golang port of Netflix's Frigga project.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Names

type Names struct {
	Group        string
	Cluster      string
	App          string
	Stack        string
	Detail       string
	Push         string
	Sequence     string
	Countries    string
	DevPhase     string
	Hardware     string
	Partners     string
	Revision     string
	UsedBy       string
	RedBlackSwap string
	Zone         string
}

Names is a deconstruction of a Frigga-specced name.

func Parse

func Parse(name string) (*Names, error)

Parse converts a potentially Frigga string into a Names struct.

func (*Names) SequenceInt

func (n *Names) SequenceInt() int

SequenceInt converts a string Sequence value into an int. This is a slight departure from the standard Frigga spec in that it doesn't enforce using a numerical sequence number.

func (*Names) String

func (n *Names) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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