Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHashProvider ¶
type GitHashProvider interface {
// contains filtered or unexported methods
}
type KLabeler ¶
type KLabeler interface { ApplyCurrentGitHash() KLabeler ApplyLabel(key string, value string) KLabeler SetLabelPrefix(prefix string) KLabeler GetJSON() string GetYAML() string }
KLabeler represents the main use-cases for the app
func NewKLabeler ¶
NewKLabeler creates a new instance from JSON or YAML input
func NewKLabelerWithGitHashProvider ¶
func NewKLabelerWithGitHashProvider(jsonOrYaml string, gitHashProvider GitHashProvider) (KLabeler, error)
NewKLabelerWithGitHashProvider creates a new instance from JSON or YAML input with the given GitHashProvider
Click to show internal directories.
Click to hide internal directories.