rotate

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RotateRequest

type RotateRequest struct {
	Id      int64  `json:"id"`
	Degrees int    `json:"degrees"`
	Repo    string `json:"repo"`
	Prune   bool   `json:"prune"`
}

type RotateResponse

type RotateResponse struct {
	Id        int64
	Secret    string
	Label     string
	Extension string
	Image     image.Image
	OldPath   string
	NewPath   string
}

type Rotation

type Rotation struct {
	DataSource  string
	MediaSource string
	Exporter    exporter.Exporter
	Dryrun      bool
}

func NewRotation

func NewRotation(ex exporter.Exporter) (*Rotation, error)

func (*Rotation) Rotate

func (r *Rotation) Rotate(ctx context.Context, requests ...*RotateRequest) error

Jump to

Keyboard shortcuts

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