immichserver

package
v0.0.0-...-6200fd8 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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

func (f *FileStat) HashHexString() string

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 (i *ImmichServer) AddToAlbum(imageUUIDs []uuid.UUID, albumUUID uuid.UUID) error

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)

func (*ImmichServer) Upload

func (i *ImmichServer) Upload(path string, assetSha1 *string) (string, error)

type ImmichServerSecuritySource

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

func (*ImmichServerSecuritySource) APIKey

func (s *ImmichServerSecuritySource) APIKey(ctx context.Context, operationName string) (oapi.APIKey, error)

func (*ImmichServerSecuritySource) Bearer

func (s *ImmichServerSecuritySource) Bearer(ctx context.Context, operationName string) (oapi.Bearer, error)

Bearer provides bearer security value.

func (*ImmichServerSecuritySource) Cookie

func (s *ImmichServerSecuritySource) Cookie(ctx context.Context, operationName string) (oapi.Cookie, error)

Cookie provides cookie security value.

Jump to

Keyboard shortcuts

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