label

package
v0.0.0-...-628caa9 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseLabeler

type BaseLabeler struct {
	LabelName string
}

func (BaseLabeler) Equals

func (l BaseLabeler) Equals(labeler Labeler) bool

func (BaseLabeler) GetLabelName

func (l BaseLabeler) GetLabelName() string

func (BaseLabeler) IsLabeled

func (l BaseLabeler) IsLabeled(res Resource) bool

func (BaseLabeler) Label

func (l BaseLabeler) Label(res Resource)

type Labeler

type Labeler interface {
	GetLabelName() string
	Label(res Resource)
	IsLabeled(res Resource) bool
}

type Resource

type Resource interface {
	GetLabel() string
	AddLabel(label string)
}

Jump to

Keyboard shortcuts

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