Documentation
¶
Index ¶
- func AutoCreateAlbums(ctx context.Context, cl *client.Client, opts *AutoCreateAlbumsOptions) error
- func DefaultCredentialsPath() (string, error)
- func Login(cred *Credentials, filename string) (err error)
- func Logout(filename string) error
- type About
- type Album
- type Albums
- type AutoCreateAlbumsOptions
- type Credentials
- type ServerInfo
- type Stats
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoCreateAlbums ¶
AutoCreateAlbums will create albums based on folders.
func DefaultCredentialsPath ¶
DefaultCredentialsPath returns the path of the credentials file.
func Login ¶
func Login(cred *Credentials, filename string) (err error)
Login received the credentials and stores into file. The credentials will be used to communicate with Immich server.
Types ¶
type About ¶
type About struct { Version string `json:"version"` Nodejs string `json:"nodejs"` ImageMagick string `json:"imagemagick"` ExifTool string `json:"exiftool"` FFmpeg string `json:"ffmpeg"` Libvips string `json:"libvips"` Build string `json:"build"` }
About represents server information.
type Album ¶ added in v0.2.0
type Album struct { ID string `json:"id"` Name string `json:"albumName"` AssetCount int64 `json:"assetCount"` }
Album represents an Album stored in Immich.
type AutoCreateAlbumsOptions ¶
type AutoCreateAlbumsOptions struct { Folder string `json:"folder"` Recursive bool `json:"recursive"` SkipLevels int `json:"skip_levels"` OriginalPath string `json:"original_path,omitempty"` Exclude []string `json:"exclude,omitempty"` ParentGroupAssets bool `json:"parent_group_assets"` Albums map[string]string `json:"albums,omitempty"` }
AutoCreateAlbumOptions handles the options to auto create albums.
type Credentials ¶
Credentials holds the Immich credentials.
func Session ¶
func Session(filename string) (_ *Credentials, err error)
Session returns the credentials stored.
type ServerInfo ¶
ServerInfo represents the server information.
Click to show internal directories.
Click to hide internal directories.