attachment

package
v1.18.4 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAttachment

func NewAttachment(attach *repo_model.Attachment, file io.Reader) (*repo_model.Attachment, error)

NewAttachment creates a new attachment object, but do not verify.

func UploadAttachment

func UploadAttachment(file io.Reader, actorID, repoID, releaseID int64, fileName, allowedTypes string) (*repo_model.Attachment, error)

UploadAttachment upload new attachment into storage and update database

Types

This section is empty.

Jump to

Keyboard shortcuts

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