Versions in this module Expand all Collapse all v1 v1.0.1 May 27, 2025 Changes in this version + const ProcessStopCommand + const ProcessStopNativeStop + const ProcessStopSignal + const SftpAuthPassword + const SftpAuthPublicKey + func IsRequestError(err error) bool + type BackupPart struct + ETag string + PartNumber int + type BackupRemoteUploadResponse struct + PartSize int64 + Parts []string + type BackupRequest struct + Checksum string + ChecksumType string + Parts []BackupPart + Size int64 + Successful bool + type Client interface + GetBackupRemoteUploadURLs func(ctx context.Context, backup string, size int64) (BackupRemoteUploadResponse, error) + GetInstallationScript func(ctx context.Context, uuid string) (InstallationScript, error) + GetServerConfiguration func(ctx context.Context, uuid string) (ServerConfigurationResponse, error) + GetServers func(context context.Context, perPage int) ([]RawServerData, error) + ResetServersState func(ctx context.Context) error + SendActivityLogs func(ctx context.Context, activity []models.Activity) error + SendRestorationStatus func(ctx context.Context, backup string, successful bool) error + SetArchiveStatus func(ctx context.Context, uuid string, successful bool) error + SetBackupStatus func(ctx context.Context, backup string, data BackupRequest) error + SetInstallationStatus func(ctx context.Context, uuid string, data InstallStatusRequest) error + SetTransferStatus func(ctx context.Context, uuid string, successful bool) error + ValidateSftpCredentials func(ctx context.Context, request SftpAuthRequest) (SftpAuthResponse, error) + func New(base string, opts ...ClientOption) Client + type ClientOption func(c *client) + func WithCredentials(id, token string) ClientOption + func WithHttpClient(httpClient *http.Client) ClientOption + type InstallStatusRequest struct + Reinstall bool + Successful bool + type InstallationScript struct + ContainerImage string + Entrypoint string + Script string + type OutputLineMatcher struct + func (olm *OutputLineMatcher) Matches(s []byte) bool + func (olm *OutputLineMatcher) String() string + func (olm *OutputLineMatcher) UnmarshalJSON(data []byte) error + type Pagination struct + CurrentPage uint + From uint + LastPage uint + PerPage uint + To uint + Total uint + type ProcessConfiguration struct + ConfigurationFiles []parser.ConfigurationFile + Startup struct{ ... } + Stop ProcessStopConfiguration + type ProcessStopConfiguration struct + Type string + Value string + type RawServerData struct + ProcessConfiguration json.RawMessage + Settings json.RawMessage + Uuid string + type RequestError struct + Code string + Detail string + Status string + func AsRequestError(err error) *RequestError + func (re *RequestError) Error() string + func (re *RequestError) StatusCode() int + type RequestErrors struct + Errors []RequestError + type Response struct + func (r *Response) BindJSON(v interface{}) error + func (r *Response) Error() error + func (r *Response) HasError() bool + func (r *Response) Read() ([]byte, error) + type ServerConfigurationResponse struct + ProcessConfiguration *ProcessConfiguration + Settings json.RawMessage + type SftpAuthRequest struct + ClientVersion []byte + IP string + Pass string + SessionID []byte + Type SftpAuthRequestType + User string + type SftpAuthRequestType string + type SftpAuthResponse struct + Permissions []string + Server string + User string + type SftpInvalidCredentialsError struct + func (ice SftpInvalidCredentialsError) Error() string