labels

package
v0.0.0-...-e95280a Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter interface {
	ToLabels(section parsers.LabelSection) (Labels, error)
}

Adapter represents the labels adapter

func NewAdapter

func NewAdapter() Adapter

NewAdapter creates a new adapter instance

type Builder

type Builder interface {
	Create() Builder
	WithList(lst []label.Label) Builder
	WithMap(mp map[string]label.Label) Builder
	Now() (Labels, error)
}

Builder represents the labels builder

func NewBuilder

func NewBuilder() Builder

NewBuilder creates a new builder instance

type Labels

type Labels interface {
	All() []label.Label
	Fetch(name string) (label.Label, error)
}

Labels represents labels

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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