uploaders

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NAME    = "demo"
	VERSION = "v1"
)

Variables

This section is empty.

Functions

func New

func New() ppi.Uploader

Types

type TargetSpec

type TargetSpec struct {
	runtime.ObjectVersionedType `json:",inline"`

	Path string `json:"path"`
}

type Uploader

type Uploader struct {
	ppi.UploaderBase
}

func (*Uploader) Decoders

func (a *Uploader) Decoders() ppi.UploadFormats

func (*Uploader) ValidateSpecification

func (a *Uploader) ValidateSpecification(p ppi.Plugin, spec ppi.UploadTargetSpec) (*ppi.UploadTargetSpecInfo, error)

func (*Uploader) Writer

func (a *Uploader) Writer(p ppi.Plugin, arttype, mediatype, hint string, repo ppi.UploadTargetSpec, creds credentials.Credentials) (io.WriteCloser, ppi.AccessSpecProvider, error)

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(file *os.File, path string, media string, rename bool, name, version string) *Writer

func (*Writer) Close

func (w *Writer) Close() error

func (*Writer) Specification

func (w *Writer) Specification() ppi.AccessSpec

Jump to

Keyboard shortcuts

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