attachments

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllAttachments

type AllAttachments struct {
	BugID int
	api.Ok
	api.Get
}

https://bugzilla.readthedocs.io/en/latest/api/core/v1/attachment.html#get-attachment

func (*AllAttachments) Resource

func (a *AllAttachments) Resource() string

type Create

type Create struct {
	BugId       int    `json:"-"`
	Ids         []int  `json:"ids"`
	Data        []byte `json:"data"`
	FileName    string `json:"file_name"`
	Summary     string `json:"summary"`
	ContentType string `json:"content_type"`
	Comment     string `json:"comment,omitempty"`
	IsPatch     bool   `json:"is_patch,omitempty"`
	IsPrivate   bool   `json:"is_private,omitempty"`
	IsMarkdown  bool   `json:"is_markdown,omitempty"`
	Flags       []Flag `json:"flags,omitempty"`
	api.Post
	api.Created
}

https://bugzilla.readthedocs.io/en/latest/api/core/v1/attachment.html#create-attachment

func (*Create) AddBug

func (c *Create) AddBug(bug int) *Create

func (*Create) AddBugs

func (c *Create) AddBugs(bugs ...int) *Create

func (*Create) Resource

func (c *Create) Resource() string

type CreateResponse

type CreateResponse struct {
	Ids []int `json:"ids"`
}

type Flag

type Flag struct {
	Id                int    `json:"id"`
	Name              string `json:"name"`
	TypeId            int    `json:"type_id"`
	CreationDate      string `json:"creation_date"`
	Modification_date string `json:"modification_date"`
	Status            string `json:"status"`
	Setter            string `json:"setter"`
	Requestee         string `json:"requestee"`
}

type GetResponse

type GetResponse struct {
	Data           string `json:"data"`
	Size           int    `json:"size"`
	CreationTime   string `json:"creation_time"`
	LastChangeTime string `json:"last_change_time"`
	Id             int    `json:"id"`
	BugId          int    `json:"bug_id"`
	FileName       string `json:"file_name"`
	Summary        string `json:"summary"`
	ContentType    string `json:"content_type"`
	IsPrivate      bool   `json:"is_private"`
	IsObsolete     bool   `json:"is_obsolete"`
	IsPatch        bool   `json:"is_patch"`
	Creator        string `json:"creator"`
	Flags          []Flag `json:"flags"`
}

type SpecificAttachment

type SpecificAttachment struct {
	AttachmentID int
	api.Ok
	api.Get
}

func (*SpecificAttachment) Resource

func (s *SpecificAttachment) Resource() string

Jump to

Keyboard shortcuts

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