Documentation ¶
Index ¶
- Constants
- type Category
- type CategoryApi
- type ImageApi
- type ServerContext
- func (context *ServerContext) CreateCategory(parentId int, name string) (int, error)
- func (context *ServerContext) DeleteImages(imageIds []int) error
- func (context *ServerContext) GetAllCategories() (map[string]*Category, error)
- func (context *ServerContext) ImageCheckFile(piwigoId int, md5sum string) (int, error)
- func (context *ServerContext) ImagesExistOnPiwigo(md5sums []string) (map[string]int, error)
- func (context *ServerContext) Initialize(baseUrl string, username string, password string) error
- func (context *ServerContext) Login() error
- func (context *ServerContext) Logout() error
- func (context *ServerContext) UploadImage(piwigoId int, filePath string, md5sum string, category int) (int, error)
Constants ¶
View Source
const ( ImageStateUptodate = 0 ImageStateDifferent = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryApi ¶
type ServerContext ¶
type ServerContext struct {
// contains filtered or unexported fields
}
func (*ServerContext) CreateCategory ¶
func (context *ServerContext) CreateCategory(parentId int, name string) (int, error)
func (*ServerContext) DeleteImages ¶
func (context *ServerContext) DeleteImages(imageIds []int) error
func (*ServerContext) GetAllCategories ¶
func (context *ServerContext) GetAllCategories() (map[string]*Category, error)
func (*ServerContext) ImageCheckFile ¶
func (context *ServerContext) ImageCheckFile(piwigoId int, md5sum string) (int, error)
func (*ServerContext) ImagesExistOnPiwigo ¶
func (context *ServerContext) ImagesExistOnPiwigo(md5sums []string) (map[string]int, error)
func (*ServerContext) Initialize ¶
func (context *ServerContext) Initialize(baseUrl string, username string, password string) error
func (*ServerContext) Login ¶
func (context *ServerContext) Login() error
func (*ServerContext) Logout ¶
func (context *ServerContext) Logout() error
func (*ServerContext) UploadImage ¶
Click to show internal directories.
Click to hide internal directories.