Documentation ¶
Index ¶
- Constants
- func New() ppi.Uploader
- type TargetSpec
- type Uploader
- func (a *Uploader) Decoders() ppi.UploadFormats
- func (a *Uploader) ValidateSpecification(p ppi.Plugin, spec ppi.UploadTargetSpec) (*ppi.UploadTargetSpecInfo, error)
- func (a *Uploader) Writer(p ppi.Plugin, arttype, mediatype, hint string, repo ppi.UploadTargetSpec, ...) (io.WriteCloser, ppi.AccessSpecProvider, error)
- type Writer
Constants ¶
View Source
const ( NAME = "demo" VERSION = "v1" )
Variables ¶
This section is empty.
Functions ¶
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 (*Writer) Specification ¶
func (w *Writer) Specification() ppi.AccessSpec
Click to show internal directories.
Click to hide internal directories.