redmine

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

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 5 Imported by: 0

README

redmine2json

Fetch Redmine Tickets And Save As JSON File.

Usage

rm2json [flags]
  -c string
        Config Name
  -o string
        Output Directory Path (default ".")

Config File Sample

{
    "redmine": {
        "api_key": "REDMINE API KEY",
        "url_root": "https://redmine/url/root",
        "basic_auth": {
            "username": "",
            "password": ""
        }
    }
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchTickets

func FetchTickets(baseURL string, apiKey string, params TicketFetchParams, auth BasicAuth) ([]byte, error)

FetchTickets fetches ticket list from redmine.

Types

type BasicAuth

type BasicAuth struct {
	UserName string
	Password string
}

BasicAuth describes the format for basic authentication.

type TicketFetchParams

type TicketFetchParams struct {
	Offset int
	Limit  int
}

TicketFetchParams describes the format for ticket fetch parameters.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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