zentaoapi

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

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

Go to latest
Published: May 7, 2019 License: MIT Imports: 11 Imported by: 0

README

zentao-api

Golang zentao http api.

Features that implemented

  1. Auto Login
  2. Post Bugs

Usage

Change config_default.json to config.json and fill host,account,password. Or just set zentaoapi.Conf

See bug_reporter_test.go

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Conf = &ZenTaoConfig{}

Functions

func BuildParamsBrief

func BuildParamsBrief(product, project, module, pri int, assignedTo, bugType, title, steps string) url.Values

BuildParamsBrief build a brief bug params

func BuildParamsFull

func BuildParamsFull(product, project, module, pri, severity, story, task int, assignedTo, bugType, title, steps, os, browser, color, deadline, mailto string) url.Values

BuildParamsFull Note deadline format 2018-02-23

func Login

func Login()

func New

func New(productID, branch, moduleID int, params url.Values) ([]byte, error)

New create a new Bug. branch and moduleID default values is 0

Types

type SessionObj

type SessionObj struct {
	SessionName string
	SessionID   string
}

type ZenTaoConfig

type ZenTaoConfig struct {
	Host     string
	Account  string
	Password string
}

Jump to

Keyboard shortcuts

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