backup

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset added in v0.2.0

type Asset struct {
	LocalPath string
	RemoteURL string
	Contents  []byte
}

type Backuper added in v0.2.0

type Backuper struct {
	Client        *client.Client
	RootDir       string
	LoadSubtitles bool
}

func New added in v0.2.0

func New(client *client.Client, rootDir string, loadSubtitles bool) *Backuper

func (*Backuper) ListCourseAssets added in v0.2.0

func (b *Backuper) ListCourseAssets(ctx context.Context, course *client.Course) ([]Asset, []string, error)

func (*Backuper) ListLectureAssets added in v0.2.0

func (b *Backuper) ListLectureAssets(course *client.Course, lecture *client.Lecture) ([]Asset, []string)

Jump to

Keyboard shortcuts

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