Documentation ¶
Index ¶
- Constants
- type PTPIMGResponse
- type PTPIMGUploader
- func (p *PTPIMGUploader) Login(username, password string) error
- func (p *PTPIMGUploader) UploadLocalFile(image string) (string, error)
- func (p *PTPIMGUploader) UploadLocalFileWithContext(ctx context.Context, image string) (string, error)
- func (p *PTPIMGUploader) UploadLocalFiles(images []string) ([]string, error)
- func (p *PTPIMGUploader) UploadURL(url string) (string, error)
- func (p *PTPIMGUploader) UploadURLWithContext(ctx context.Context, url string) (string, error)
- func (p *PTPIMGUploader) UploadURLs(urls []string) ([]string, error)
Constants ¶
View Source
const (
ErrorCouldNotLogIn = "could not log in"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PTPIMGResponse ¶ added in v0.19.2
type PTPIMGUploader ¶
type PTPIMGUploader struct {
// contains filtered or unexported fields
}
func NewWithAPIKey ¶
func NewWithAPIKey(key string) (*PTPIMGUploader, error)
func NewWithLogin ¶
func NewWithLogin(user, password string) (*PTPIMGUploader, error)
func (*PTPIMGUploader) Login ¶
func (p *PTPIMGUploader) Login(username, password string) error
func (*PTPIMGUploader) UploadLocalFile ¶
func (p *PTPIMGUploader) UploadLocalFile(image string) (string, error)
func (*PTPIMGUploader) UploadLocalFileWithContext ¶ added in v0.39.8
func (*PTPIMGUploader) UploadLocalFiles ¶ added in v0.19.2
func (p *PTPIMGUploader) UploadLocalFiles(images []string) ([]string, error)
func (*PTPIMGUploader) UploadURLWithContext ¶ added in v0.39.7
func (*PTPIMGUploader) UploadURLs ¶ added in v0.19.2
func (p *PTPIMGUploader) UploadURLs(urls []string) ([]string, error)
Click to show internal directories.
Click to hide internal directories.