api_client

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppAccessClient

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

func (*AppAccessClient) DoAppRequest

func (c *AppAccessClient) DoAppRequest(appAccessCookie *http.Cookie, httpMethod string, appUrl string, httpBody io.Reader) (*http.Response, error)

func (*AppAccessClient) ExchangeSecretForAppAccessCookie

func (c *AppAccessClient) ExchangeSecretForAppAccessCookie(secret string, appUrl string) (*http.Cookie, error)

func (*AppAccessClient) GetSecret

func (c *AppAccessClient) GetSecret() (string, error)

type AuthClient

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

func (*AuthClient) ChangePassword

func (c *AuthClient) ChangePassword(oldPassword, newPassword string) error

func (*AuthClient) GetCurrentUser

func (c *AuthClient) GetCurrentUser() (*api.User, error)

func (*AuthClient) SignIn

func (c *AuthClient) SignIn(username, password string) error

func (*AuthClient) SignOut

func (c *AuthClient) SignOut() error

type EmailClient

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

func (*EmailClient) InviteViaEmail

func (c *EmailClient) InviteViaEmail(username, email string) error

func (*EmailClient) ReadConfig

func (c *EmailClient) ReadConfig() (*u.EmailConfig, error)

func (*EmailClient) ReadExposeRealEmailInOidcToken

func (c *EmailClient) ReadExposeRealEmailInOidcToken() (bool, error)

func (*EmailClient) ReadInvitationTemplate

func (c *EmailClient) ReadInvitationTemplate() (string, error)

func (*EmailClient) ResetConfig

func (c *EmailClient) ResetConfig() error

func (*EmailClient) ResetInvitationTemplate

func (c *EmailClient) ResetInvitationTemplate() error

func (*EmailClient) ResetPasswordViaEmail

func (c *EmailClient) ResetPasswordViaEmail(userId int) error

func (*EmailClient) SaveConfig

func (c *EmailClient) SaveConfig(cfg *u.EmailConfig) error

func (*EmailClient) SaveExposeRealEmailInOidcToken

func (c *EmailClient) SaveExposeRealEmailInOidcToken(exposeRealEmail bool) error

func (*EmailClient) SaveInvitationTemplate

func (c *EmailClient) SaveInvitationTemplate(template string) error

func (*EmailClient) SendTestEmail

func (c *EmailClient) SendTestEmail(cfg *u.EmailConfig, toEmail string) error

func (*EmailClient) TestConnection

func (c *EmailClient) TestConnection(cfg *u.EmailConfig) error

type FrontendResponse

type FrontendResponse struct {
	StatusCode int
	Header     http.Header
	Body       string
}

type GroupsClient

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

func (*GroupsClient) AddUserToGroup

func (c *GroupsClient) AddUserToGroup(userId, groupId int) error

func (*GroupsClient) CreateGroup

func (c *GroupsClient) CreateGroup(name string) (*api.Group, error)

func (*GroupsClient) DeleteGroup

func (c *GroupsClient) DeleteGroup(groupId int) error

func (*GroupsClient) GrantAppAccess

func (c *GroupsClient) GrantAppAccess(groupId int, appName string) error

func (*GroupsClient) ListAllGroups

func (c *GroupsClient) ListAllGroups() ([]api.Group, error)

func (*GroupsClient) ListAppsAccessByGroup

func (c *GroupsClient) ListAppsAccessByGroup(groupId int) (*api.AppsAccessByGroup, error)

func (*GroupsClient) ListUsersByGroupMembership

func (c *GroupsClient) ListUsersByGroupMembership(groupId int) (*api.UsersByGroupMembership, error)

func (*GroupsClient) RemoveUserFromGroup

func (c *GroupsClient) RemoveUserFromGroup(userId, groupId int) error

func (*GroupsClient) RevokeAppAccess

func (c *GroupsClient) RevokeAppAccess(groupId int, appName string) error

type OidcAuthProvidersClient

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

func (*OidcAuthProvidersClient) Create

func (*OidcAuthProvidersClient) Delete

func (c *OidcAuthProvidersClient) Delete(providerId int) error

func (*OidcAuthProvidersClient) List

func (*OidcAuthProvidersClient) StartLogin

func (c *OidcAuthProvidersClient) StartLogin(providerId int) (api.OidcStartLoginResponse, error)

func (*OidcAuthProvidersClient) TestDiscovery

func (c *OidcAuthProvidersClient) TestDiscovery(issuerDomainPath string) error

func (*OidcAuthProvidersClient) Update

type OidcRelyingPartiesClient

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

func (*OidcRelyingPartiesClient) Create

func (*OidcRelyingPartiesClient) Delete

func (c *OidcRelyingPartiesClient) Delete(clientId int) error

func (*OidcRelyingPartiesClient) List

func (*OidcRelyingPartiesClient) Regenerate

func (c *OidcRelyingPartiesClient) Regenerate(clientId int) error

func (*OidcRelyingPartiesClient) Update

type QuollixAppsClient

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

func (*QuollixAppsClient) Delete

func (c *QuollixAppsClient) Delete(appId string) error

func (*QuollixAppsClient) DownloadVersion

func (c *QuollixAppsClient) DownloadVersion(maintainer, appName, versionName string) (*api.BinaryFile, error)

func (*QuollixAppsClient) DownloadVersionFile

func (c *QuollixAppsClient) DownloadVersionFile(appId string) (*api.BinaryFile, error)

func (*QuollixAppsClient) GetCurrentOperations

func (c *QuollixAppsClient) GetCurrentOperations() ([]string, bool, error)

func (*QuollixAppsClient) InstallFromStore

func (c *QuollixAppsClient) InstallFromStore(maintainer, appName, version string) error

func (*QuollixAppsClient) ListInstalled

func (c *QuollixAppsClient) ListInstalled() ([]api.AppDto, error)

func (*QuollixAppsClient) ListVersions

func (c *QuollixAppsClient) ListVersions(userName, appName string) ([]store.LeanVersionDto, error)

func (*QuollixAppsClient) SearchStore

func (c *QuollixAppsClient) SearchStore(maintainerName, appName string, searchForUnofficialApps bool) ([]store.AppWithLatestVersion, error)

func (*QuollixAppsClient) SetAccessPolicy

func (c *QuollixAppsClient) SetAccessPolicy(appId, accessPolicy string) error

func (*QuollixAppsClient) Start

func (c *QuollixAppsClient) Start(appId string) error

func (*QuollixAppsClient) Stop

func (c *QuollixAppsClient) Stop(appId string) error

func (*QuollixAppsClient) Update

func (c *QuollixAppsClient) Update(appId string) error

func (*QuollixAppsClient) UpdateMaintenanceSettings

func (c *QuollixAppsClient) UpdateMaintenanceSettings(appId string, autoUpdatesEnabled, autoBackupsEnabled bool) error

func (*QuollixAppsClient) UploadVersionFile

func (c *QuollixAppsClient) UploadVersionFile(file api.BinaryFile) error

type QuollixBackupsClient

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

func (*QuollixBackupsClient) Create

func (c *QuollixBackupsClient) Create(appId string) error

func (*QuollixBackupsClient) Delete

func (c *QuollixBackupsClient) Delete(backupIds []string) error

func (*QuollixBackupsClient) ListAppsInRepository

func (c *QuollixBackupsClient) ListAppsInRepository() ([]api.MaintainerAndApp, error)

func (*QuollixBackupsClient) ListByApp

func (c *QuollixBackupsClient) ListByApp(maintainer, appName string) ([]api.BackupInfo, error)

func (*QuollixBackupsClient) PurgeServer

func (c *QuollixBackupsClient) PurgeServer(repo *api.BackupServerConfigs) error

func (*QuollixBackupsClient) Restore

func (c *QuollixBackupsClient) Restore(backupId string) error

type QuollixCertificatesClient

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

func (*QuollixCertificatesClient) DownloadBundleBytes

func (c *QuollixCertificatesClient) DownloadBundleBytes() ([]byte, error)

func (*QuollixCertificatesClient) Reset

func (c *QuollixCertificatesClient) Reset() error

func (*QuollixCertificatesClient) TryDns01Challenge

func (c *QuollixCertificatesClient) TryDns01Challenge() (*api.Dns01ChallengeInfo, error)

func (*QuollixCertificatesClient) Upload

func (c *QuollixCertificatesClient) Upload(content []byte) error

type QuollixClient

type QuollixClient struct {
	Parent *u.ComponentClient

	Auth          *AuthClient
	Users         *UsersClient
	Apps          *QuollixAppsClient
	Backups       *QuollixBackupsClient
	Settings      *QuollixSettingsClient
	Maintenance   *QuollixMaintenanceClient
	Certificates  *QuollixCertificatesClient
	Frontend      *QuollixFrontendClient
	Test          *QuollixTestClient
	AppAccess     *AppAccessClient
	Email         *EmailClient
	Groups        *GroupsClient
	OidcProviders *OidcAuthProvidersClient
	OidcClients   *OidcRelyingPartiesClient
}

func NewQuollixClient

func NewQuollixClient() *QuollixClient

func NewQuollixClientForRootUrl

func NewQuollixClientForRootUrl(rootUrl string) *QuollixClient

func NewQuollixClientWithParent

func NewQuollixClientWithParent(parent *u.ComponentClient) *QuollixClient

type QuollixFrontendClient

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

func (*QuollixFrontendClient) GetPage

func (c *QuollixFrontendClient) GetPage(path string) (*FrontendResponse, error)

func (*QuollixFrontendClient) Reload

func (c *QuollixFrontendClient) Reload() error

type QuollixMaintenanceClient

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

func (*QuollixMaintenanceClient) ExecuteJob

func (c *QuollixMaintenanceClient) ExecuteJob() error

func (*QuollixMaintenanceClient) ReadConfigs

func (c *QuollixMaintenanceClient) ReadConfigs() (*api.MaintenanceConfig, error)

func (*QuollixMaintenanceClient) ReadRetentionPolicy

func (c *QuollixMaintenanceClient) ReadRetentionPolicy() (*api.RetentionPolicy, error)

func (*QuollixMaintenanceClient) SaveConfigs

func (c *QuollixMaintenanceClient) SaveConfigs(request *api.MaintenanceConfigDto) error

func (*QuollixMaintenanceClient) SaveRetentionPolicy

func (c *QuollixMaintenanceClient) SaveRetentionPolicy(policy *api.RetentionPolicy) error

type QuollixSettingsClient

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

func (*QuollixSettingsClient) GetBaseDomainValue

func (c *QuollixSettingsClient) GetBaseDomainValue() (string, error)

func (*QuollixSettingsClient) GetKnownHosts

func (c *QuollixSettingsClient) GetKnownHosts(repo *api.BackupServerConfigs) (string, error)

func (*QuollixSettingsClient) ReadSshConfigs

func (c *QuollixSettingsClient) ReadSshConfigs() (*api.BackupServerConfigs, error)

func (*QuollixSettingsClient) SaveSshConfigs

func (c *QuollixSettingsClient) SaveSshConfigs(repo *api.BackupServerConfigs) error

func (*QuollixSettingsClient) SetBaseDomainValue

func (c *QuollixSettingsClient) SetBaseDomainValue(baseDomain string) error

func (*QuollixSettingsClient) TestSshAccess

func (c *QuollixSettingsClient) TestSshAccess(repo *api.BackupServerConfigs) error

type QuollixTestClient

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

func (*QuollixTestClient) ResetTestState

func (c *QuollixTestClient) ResetTestState() error

type UsersClient

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

func (*UsersClient) ChangeEmail

func (c *UsersClient) ChangeEmail(userId int, newEmail string) error

func (*UsersClient) ChangeUsername

func (c *UsersClient) ChangeUsername(userId int, newUsername string) error

func (*UsersClient) Delete

func (c *UsersClient) Delete(userId int) error

func (*UsersClient) GetByUsername

func (c *UsersClient) GetByUsername(username string) (api.User, bool, error)

func (*UsersClient) Invite

func (c *UsersClient) Invite(username, email string) error

func (*UsersClient) List

func (c *UsersClient) List() ([]api.User, error)

func (*UsersClient) ResetPassword

func (c *UsersClient) ResetPassword(userId int) error

func (*UsersClient) SetEnabled

func (c *UsersClient) SetEnabled(userId int, isEnabled bool) error

func (*UsersClient) SetOwnPassword

func (c *UsersClient) SetOwnPassword(password string) error

func (*UsersClient) SetPasswordViaToken

func (c *UsersClient) SetPasswordViaToken(password, token string) error

Jump to

Keyboard shortcuts

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