app

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: 5 Imported by: 1

README

KLabeler

import "github.com/icereed/klabeler/pkg/app"

Usage

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
func NewKLabeler(jsonOrYaml string) (KLabeler, error)

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

type GitHashProvider
type GitHashProvider interface {
	// contains filtered or unexported methods
}

README generated with godocdown.

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

func NewKLabeler(jsonOrYaml string) (KLabeler, error)

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

Jump to

Keyboard shortcuts

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