app

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP  = "Jira Reindex Runner"
	VER  = "0.1.0"
	DESC = "Tool for periodical running Jira re-index process"
)

Basic application info

View Source
const (
	OPT_CONFIG   = "c:config"
	OPT_NO_COLOR = "nc:no-color"
	OPT_HELP     = "h:help"
	OPT_VER      = "v:version"

	OPT_VERB_VER     = "vv:verbose-version"
	OPT_COMPLETION   = "completion"
	OPT_GENERATE_MAN = "generate-man"
)

Options

View Source
const (
	MAIN_ENABLED      = "main:enabled"
	JIRA_URL          = "jira:url"
	JIRA_USERNAME     = "jira:username"
	JIRA_PASSWORD     = "jira:password"
	JIRA_REINDEX_TYPE = "jira:reindex-type"
	LOG_DIR           = "log:dir"
	LOG_FILE          = "log:file"
	LOG_PERMS         = "log:perms"
	LOG_LEVEL         = "log:level"
)

Configuration file properties

View Source
const (
	JIRA_ENDPOINT_CHECK    = "/rest/scriptrunner/latest/custom/reindexRequired"
	JIRA_ENDPOINT_REINDEX  = "/rest/api/2/reindex"
	JIRA_ENDPOINT_PROGRESS = "/rest/api/2/reindex/progress"
)
View Source
const JIRA_DATE_TIME_FORMAT = "2006-01-02T15:04:05Z0700"

Variables

This section is empty.

Functions

func Run added in v0.0.6

func Run(gitRev string, gomod []byte)

Run is main application function

Types

type ReindexProgressInfo

type ReindexProgressInfo struct {
	CurrentProgress int    `json:"currentProgress"`
	CurrentSubTask  string `json:"currentSubTask"`
	IsFinished      bool   `json:"success"`
}

type ReindexRequestInfo

type ReindexRequestInfo struct {
	IsRequired bool   `json:"is_required"`
	User       string `json:"user"`
	Date       string `json:"date"`
}

func (*ReindexRequestInfo) GetDate

func (i *ReindexRequestInfo) GetDate() time.Time

Jump to

Keyboard shortcuts

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