Documentation ¶
Index ¶
- type FileStat
- type ImageDirectory
- type ImmichAlbumCache
- type ImmichServer
- func (i *ImmichServer) AddToAlbum(imageUUIDs []uuid.UUID, albumUUID uuid.UUID) error
- func (i *ImmichServer) Album(albumUUID uuid.UUID) (*oapi.AlbumResponseDto, error)
- func (i *ImmichServer) CreateNewAlbum(name string) (uuid.UUID, error)
- func (i *ImmichServer) DoFullSync(t time.Time) (*[]oapi.AssetResponseDto, error)
- func (i *ImmichServer) Download(filePath string, imageUUID uuid.UUID) error
- func (i *ImmichServer) GetAlbumUUIDByName(name string) (uuid.UUID, error)
- func (i *ImmichServer) GetImageUUIDByPath(path string) (uuid.UUID, error)
- func (i *ImmichServer) GetSyncAfter(t time.Time) (*oapi.AssetDeltaSyncResponseDto, error)
- func (i *ImmichServer) GetUserUUID() (uuid.UUID, error)
- func (i *ImmichServer) Upload(path string, assetSha1 *string) (string, error)
- type ImmichServerSecuritySource
- func (s *ImmichServerSecuritySource) APIKey(ctx context.Context, operationName string) (oapi.APIKey, error)
- func (s *ImmichServerSecuritySource) Bearer(ctx context.Context, operationName string) (oapi.Bearer, error)
- func (s *ImmichServerSecuritySource) Cookie(ctx context.Context, operationName string) (oapi.Cookie, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStat ¶
type FileStat struct {
// contains filtered or unexported fields
}
func (*FileStat) HashHexString ¶
type ImageDirectory ¶
type ImageDirectory struct {
// contains filtered or unexported fields
}
func NewImageDirectory ¶
func NewImageDirectory(path string) ImageDirectory
func (*ImageDirectory) Count ¶
func (i *ImageDirectory) Count() int
func (*ImageDirectory) Path ¶
func (i *ImageDirectory) Path() string
func (*ImageDirectory) Read ¶
func (i *ImageDirectory) Read() (int, error)
func (*ImageDirectory) String ¶
func (i *ImageDirectory) String() string
func (*ImageDirectory) Upload ¶
func (i *ImageDirectory) Upload(server *ImmichServer, concurrentUploads int)
type ImmichAlbumCache ¶
type ImmichAlbumCache struct {
// contains filtered or unexported fields
}
func NewImmichAlbumCache ¶
func NewImmichAlbumCache() ImmichAlbumCache
func (*ImmichAlbumCache) Album ¶
func (a *ImmichAlbumCache) Album(server *ImmichServer, albumUUID uuid.UUID) (*oapi.AlbumResponseDto, error)
func (*ImmichAlbumCache) FillCache ¶
func (a *ImmichAlbumCache) FillCache(server *ImmichServer) error
func (*ImmichAlbumCache) GetAlbumUUIDByName ¶
func (a *ImmichAlbumCache) GetAlbumUUIDByName(server *ImmichServer, name string) (uuid.UUID, error)
type ImmichServer ¶
type ImmichServer struct { ImageDirs []*ImageDirectory // contains filtered or unexported fields }
func NewImmichServer ¶
func NewImmichServer(apiKey, serverURL, deviceID string) *ImmichServer
func (*ImmichServer) AddToAlbum ¶
func (*ImmichServer) Album ¶
func (i *ImmichServer) Album(albumUUID uuid.UUID) (*oapi.AlbumResponseDto, error)
func (*ImmichServer) CreateNewAlbum ¶
func (i *ImmichServer) CreateNewAlbum(name string) (uuid.UUID, error)
func (*ImmichServer) DoFullSync ¶
func (i *ImmichServer) DoFullSync(t time.Time) (*[]oapi.AssetResponseDto, error)
func (*ImmichServer) Download ¶
func (i *ImmichServer) Download(filePath string, imageUUID uuid.UUID) error
func (*ImmichServer) GetAlbumUUIDByName ¶
func (i *ImmichServer) GetAlbumUUIDByName(name string) (uuid.UUID, error)
func (*ImmichServer) GetImageUUIDByPath ¶
func (i *ImmichServer) GetImageUUIDByPath(path string) (uuid.UUID, error)
func (*ImmichServer) GetSyncAfter ¶
func (i *ImmichServer) GetSyncAfter(t time.Time) (*oapi.AssetDeltaSyncResponseDto, error)
func (*ImmichServer) GetUserUUID ¶
func (i *ImmichServer) GetUserUUID() (uuid.UUID, error)
type ImmichServerSecuritySource ¶
type ImmichServerSecuritySource struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.