Documentation
¶
Overview ¶
package tag provides interfaces and methods for working with tags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanStringTag ¶
func IsNotMachineTagError ¶
Return a boolean value indicating whether or not err is of type NotMachineTagError
Types ¶
type NotMachineTagError ¶
type NotMachineTagError struct{}
type NotMachineTagError defines an implementation of the error interface signaling that a tag is not a valid machine tag.
func (NotMachineTagError) Error ¶
func (e NotMachineTagError) Error() string
The string representation of a NotMachineTagError error.
type StringTag ¶
type StringTag struct {
// contains filtered or unexported fields
}
type StringTag implements the Tag interface for string-based tags.
func (*StringTag) IsMachineTag ¶
type Tag ¶
type Tag interface { // The raw user-defined string tag value. Raw() string // The URI-safe value of the raw tag value. Clean() string // A boolean flag indicating whether or not the tag can be parsed as a machine tag. IsMachineTag() bool // The namespace value of a valid machine tag triple. Namespace() (string, error) // The predicate value of a valid machine tag triple. Predicate() (string, error) // The value of a valid machine tag triple. Value() (string, error) }
type Tag defines a common interface for working with tag values.
func NewStringTag ¶
Click to show internal directories.
Click to hide internal directories.