Documentation
¶
Index ¶
- func NewFromFolderCommand(ctx context.Context, parent *cobra.Command, app *app.Application, ...) *cobra.Command
- func NewFromGooglePhotosCommand(ctx context.Context, parent *cobra.Command, app *app.Application, ...) *cobra.Command
- func NewFromImmichCommand(ctx context.Context, parent *cobra.Command, app *app.Application, ...) *cobra.Command
- func NewUploadCommand(ctx context.Context, a *app.Application) *cobra.Command
- type Advice
- type AdviceCode
- type AssetIndex
- type UpCmd
- type UpLoadMode
- type UploadOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFromFolderCommand ¶
func NewFromFolderCommand(ctx context.Context, parent *cobra.Command, app *app.Application, upOptions *UploadOptions) *cobra.Command
func NewFromGooglePhotosCommand ¶
func NewFromGooglePhotosCommand(ctx context.Context, parent *cobra.Command, app *app.Application, upOptions *UploadOptions) *cobra.Command
func NewFromImmichCommand ¶
func NewFromImmichCommand(ctx context.Context, parent *cobra.Command, app *app.Application, upOptions *UploadOptions) *cobra.Command
func NewUploadCommand ¶
NewUploadCommand adds the Upload command
Types ¶
type AdviceCode ¶
type AdviceCode int
- - go:generate stringer -type=AdviceCode
const ( IDontKnow AdviceCode = iota SmallerOnServer BetterOnServer SameOnServer NotOnServer )
func (AdviceCode) String ¶
func (a AdviceCode) String() string
type AssetIndex ¶
type AssetIndex struct {
// contains filtered or unexported fields
}
func (*AssetIndex) AddLocalAsset ¶
func (ai *AssetIndex) AddLocalAsset(la *assets.Asset, immichID string)
func (*AssetIndex) Len ¶
func (ai *AssetIndex) Len() int
func (*AssetIndex) ReIndex ¶
func (ai *AssetIndex) ReIndex()
func (*AssetIndex) ShouldUpload ¶
func (ai *AssetIndex) ShouldUpload(la *assets.Asset) (*Advice, error)
type UpCmd ¶
type UpCmd struct { Mode UpLoadMode *UploadOptions AssetIndex *AssetIndex // List of assets present on the server DebugCounters bool // Enable CSV action counters per file Paths []string // Path to explore // contains filtered or unexported fields }
type UpLoadMode ¶
type UpLoadMode int
const ( UpModeGoogleTakeout UpLoadMode = iota UpModeFolder )
func (UpLoadMode) String ¶
func (m UpLoadMode) String() string
type UploadOptions ¶
type UploadOptions struct { // TODO place this option at the top NoUI bool // Disable UI Filters []filters.Filter }
UploadOptions represents a set of common flags used for filtering assets.
func (*UploadOptions) Open ¶
func (options *UploadOptions) Open(ctx context.Context, cmd *cobra.Command, app *app.Application) error
Click to show internal directories.
Click to hide internal directories.