entities

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericLabeler

type GenericLabeler interface {
	SetLabelPrefix(prefix string)
	ApplyLabel(key string, value string)
	GetJSON() string
}

GenericLabeler represents the basic entity for any logic regarding labeling

func NewGenericLabeler

func NewGenericLabeler(json string) (GenericLabeler, error)

NewGenericLabeler creates a new instance of a GenericLabeler capable of dealing with single objects or arrays

func NewMultiObjectLabeler

func NewMultiObjectLabeler(json string) (GenericLabeler, error)

NewMultiObjectLabeler creates a new instance of a GenericLabeler capable of dealing with object arrays

func NewSingleObjectLabeler

func NewSingleObjectLabeler(json string) (GenericLabeler, error)

NewSingleObjectLabeler creates a new instance of a GenericLabeler capable of dealing with one single object

Jump to

Keyboard shortcuts

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