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
Click to show internal directories.
Click to hide internal directories.