importer

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(url string) (*multipart.FileHeader, error)

DownloadFile

Retrieves a file from a specific url and copies it to a multipart.FileHeader ready to be uploaded by the media repository.

Returns errors.NOTFOUND if the status code is anything but 200. Returns errors.INTERNAL if the file could not be created, copied, closed or read.

func ParseHTML

func ParseHTML(content string, upload uploader) (string, error)

ParseHTML

func ParseLink(link string) (string, error)

ParseLink converts a link to of type *url Returns errors.INVALID if the post link was unable to be parsed.

func ParseUUID

func ParseUUID(u string) (uuid.UUID, error)

ParseUUID converts a string to of type uuid.UUID Returns errors.INVALID if the string was unable to be parsed.

func SendNewPassword

func SendNewPassword(user domain.UserPart, password string, site domain.Site) error

Types

type Importer

type Importer interface {
	Import()
}

Importer defines the method to migrate various CMS's content to Verbis.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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