attach

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Response Response `json:"data"`
}

type Request

type Request struct {
	Body     io.Reader
	TaskID   string
	Name     string
	Path     string
	PAToken  string
	TicketID string
}

func (Request) Create

func (r Request) Create() (resp *Response, err error)

Create - upload attachments

func (Request) CreateInEncryption added in v0.1.6

func (r Request) CreateInEncryption(download func(src, tmp string) error) (*Response, error)

type Response

type Response struct {
	ID           string `json:"gid"`
	ResourceType string `json:"resource_type"`
	Name         string `json:"name"`
	// ResourceSubtype - asana, dropbox, gdrive, onedrive, box, and external
	ResourceSubtype string `json:"resource_subtype"`
}

Jump to

Keyboard shortcuts

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