common

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	EtcdMaintenanceKey = "maintenance"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RefType

type RefType int
const (
	RefTypeID RefType = iota
	RefTypePath
	RefTypeName
)

func ParseNameRef

func ParseNameRef(ref string) (RefType, error)

ParseRef parses the api call to determine if the provided ref is an ID or a name

func ParsePathRef

func ParsePathRef(ref string) (RefType, error)

ParseRef parses the api call to determine if the provided ref is an ID or a path

Jump to

Keyboard shortcuts

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