Documentation
¶
Index ¶
- func SudoRun(ctx context.Context, args ...string) ([]byte, error)
- type ImmichController
- func (s *ImmichController) CreateAPIKey(ctx context.Context) error
- func (s *ImmichController) CreateAdminLogin(ctx context.Context) error
- func (s *ImmichController) DockerCompose(ctx context.Context, args ...string) error
- func (s *ImmichController) DockerRun(ctx context.Context, args ...string) ([]byte, error)
- func (s *ImmichController) DockerVolumes(ctx context.Context) ([]string, error)
- func (s *ImmichController) Down(ctx context.Context) error
- func (s *ImmichController) FactoryReset(ctx context.Context) error
- func (s *ImmichController) RemoveDockerVolumes(ctx context.Context) error
- func (s *ImmichController) Up(ctx context.Context) error
- func (s *ImmichController) WaitImmich(ctx context.Context, wait time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ImmichController ¶
type ImmichController struct {
Env map[string]string
ComposePath string
ComposeEnvPath string
AppPath string
AppURL string
UploadLocation string
APIKey string
AccessToken string
}
func (*ImmichController) CreateAPIKey ¶
func (s *ImmichController) CreateAPIKey(ctx context.Context) error
func (*ImmichController) CreateAdminLogin ¶
func (s *ImmichController) CreateAdminLogin(ctx context.Context) error
func (*ImmichController) DockerCompose ¶
func (s *ImmichController) DockerCompose(ctx context.Context, args ...string) error
run the docker compose command
func (*ImmichController) DockerVolumes ¶
func (s *ImmichController) DockerVolumes(ctx context.Context) ([]string, error)
run the docker volume ls command
func (*ImmichController) FactoryReset ¶
func (s *ImmichController) FactoryReset(ctx context.Context) error
func (*ImmichController) RemoveDockerVolumes ¶
func (s *ImmichController) RemoveDockerVolumes(ctx context.Context) error
func (*ImmichController) WaitImmich ¶
Click to show internal directories.
Click to hide internal directories.