Documentation
¶
Index ¶
- Constants
- Variables
- func Activities(envID string) string
- func ActivitiesHistory(envID string) string
- func Activity(envID, activityID string) string
- func ActivityAction(envID, activityID, action string) string
- func ApiKey(id string) string
- func ApiKeys() string
- func AuthFederated() string
- func AuthLogout() string
- func AuthMe() string
- func AuthMeApiKey(id string) string
- func AuthMeApiKeys() string
- func AuthPassword() string
- func AuthRefresh() string
- func AuthenticationSettings() string
- func Backup(id string) string
- func BackupAction(id, action string) string
- func BackupUpload(id string) string
- func Backups() string
- func BackupsDiscover() string
- func BackupsPolicies() string
- func BackupsRecoveryKey() string
- func BackupsRecoveryKeyGenerate() string
- func BackupsS3() string
- func BackupsS3Destination(id string) string
- func BackupsS3DestinationAction(id, action string) string
- func BackupsS3DestinationInUse(id string) string
- func BackupsS3Options() string
- func BackupsS3Test() string
- func Container(envID, containerID string) string
- func ContainerAction(envID, containerID, action string) string
- func ContainerAutoUpdate(envID, containerID string) string
- func ContainerCommit(envID, containerID string) string
- func ContainerConfig(envID, containerID string) string
- func ContainerRedeploy(envID, containerID string) string
- func ContainerRegistries() string
- func ContainerRegistriesPullUsage() string
- func ContainerRegistry(id string) string
- func ContainerRegistryAction(id, action string) string
- func ContainerUpdate(envID, containerID string) string
- func Containers(envID string) string
- func ContainersCounts(envID string) string
- func Environment(id string) string
- func EnvironmentDeployment(envID string) string
- func EnvironmentTest(envID string) string
- func EnvironmentTunnelRestart(envID string) string
- func EnvironmentVersion(envID string) string
- func Environments() string
- func Event(id string) string
- func Events() string
- func EventsEnvironment(envID string) string
- func EventsStats() string
- func FederatedCredential(id string) string
- func FederatedCredentials() string
- func GitOpsSync(envID, syncID string) string
- func GitOpsSyncAction(envID, syncID, action string) string
- func GitOpsSyncBackupHistory(envID, syncID string) string
- func GitOpsSyncBackupPreview(envID, syncID string) string
- func GitOpsSyncBackupResolve(envID, syncID string) string
- func GitOpsSyncFiles(envID, syncID string) string
- func GitOpsSyncStatus(envID, syncID string) string
- func GitOpsSyncs(envID string) string
- func GitOpsSyncsImport(envID string) string
- func GitRepositories() string
- func GitRepository(id string) string
- func GitRepositoryAction(id, action string) string
- func GitRepositoryBranches(id string) string
- func GitRepositoryFiles(id string) string
- func Image(envID, imageID string) string
- func ImageAttestations(envID, name string) string
- func ImageBuild(envID, buildID string) string
- func ImageBuilds(envID string) string
- func ImageExport(envID, name string) string
- func ImageHistory(envID, name string) string
- func ImageTag(envID, name string) string
- func ImageUpdatesCheck(envID, imageRef string) string
- func ImageUpdatesCheckAction(envID, action string) string
- func ImageUpdatesCheckById(envID, imageID string) string
- func ImageUpdatesSummary(envID string) string
- func ImageVulnerabilities(envID, imageID string) string
- func ImageVulnerabilitiesList(envID, imageID string) string
- func ImageVulnerabilitiesScan(envID, imageID string) string
- func ImageVulnerabilitiesSummary(envID, imageID string) string
- func Images(envID string) string
- func ImagesBuild(envID string) string
- func ImagesCounts(envID string) string
- func ImagesPrune(envID string) string
- func ImagesPull(envID string) string
- func ImagesSearch(envID string) string
- func ImagesUpload(envID string) string
- func ImagesVulnerabilitiesSummaries(envID string) string
- func JobAction(envID, jobID, action string) string
- func JobSchedules(envID string) string
- func Jobs(envID string) string
- func ManagerSettings() string
- func Network(envID, networkID string) string
- func NetworkAction(envID, networkID, action string) string
- func Networks(envID string) string
- func NetworksCounts(envID string) string
- func NetworksPrune(envID string) string
- func NetworksTopology(envID string) string
- func NormalizePaginatedResource(resource string) string
- func NormalizePaginatedResources(resources map[string]PaginationResourceConfig) map[string]PaginationResourceConfig
- func NotificationSettingsProvider(provider string) string
- func NotificationSettingsProviderAction(provider, action string) string
- func NotificationsSettings() string
- func OIDCDeviceCode() string
- func OIDCDeviceToken() string
- func OIDCStatus() string
- func OidcRoleMapping(id string) string
- func OidcRoleMappings() string
- func PodmanAutoUpdate(envID string) string
- func PodmanKube(envID, action string) string
- func PodmanPod(envID, podID string) string
- func PodmanPodAction(envID, podID, action string) string
- func PodmanPods(envID string) string
- func PodmanQuadlet(envID, name string) string
- func PodmanQuadletAction(envID, name, action string) string
- func PodmanQuadlets(envID string) string
- func PodmanSecret(envID, secretID string) string
- func PodmanSecrets(envID string) string
- func PodmanStatus(envID string) string
- func Project(envID, projectID string) string
- func ProjectAction(envID, projectID, action string, services []string) string
- func ProjectBuild(envID, projectID string) string
- func ProjectDeploy(envID, projectID, action string) string
- func ProjectTags(envID, projectID string) string
- func ProjectWorkspace(envID, projectID string) string
- func ProjectWorkspaceFile(envID, projectID string) string
- func ProjectWorkspaceFileDownload(envID, projectID string) string
- func Projects(envID string) string
- func ProjectsCounts(envID string) string
- func ProjectsTags(envID string) string
- func Role(id string) string
- func Roles() string
- func RolesAvailablePermissions() string
- func Settings(envID string) string
- func SettingsPublic(envID string) string
- func SystemContainersAction(envID, action string) string
- func SystemConvert(envID string) string
- func SystemDockerInfo(envID string) string
- func SystemPrune(envID string) string
- func SystemUpgrade(envID string) string
- func SystemUpgradeCheck(envID string) string
- func SystemUpgradeJobCurrent(envID string) string
- func SystemUpgradeJobs(envID string) string
- func Template(id string) string
- func TemplateAction(id, action string) string
- func TemplateContent(id string) string
- func TemplateFetch() string
- func TemplateRegistry(id string) string
- func Templates() string
- func TemplatesAll() string
- func TemplatesDefault() string
- func TemplatesRegistries() string
- func UpdaterHistory(envID string) string
- func UpdaterRun(envID string) string
- func UpdaterStatus(envID string) string
- func UploadSession(envID, kind, uploadID string) string
- func UploadSessionChunk(envID, kind, uploadID string, index int) string
- func UploadSessions(envID, kind string) string
- func User(id string) string
- func UserRoleAssignments(userID string) string
- func Users() string
- func Variable(id string) string
- func Variables() string
- func VariablesSync() string
- func Volume(envID, volumeName string) string
- func VolumeBackup(envID, backupID string) string
- func VolumeBackupAction(envID, volumeName, backupID, action string) string
- func VolumeBackupDownload(envID, backupID string) string
- func VolumeBackupFiles(envID, backupID string) string
- func VolumeBackupPolicy(envID, volumeName string) string
- func VolumeBackupUpload(envID, backupID string) string
- func VolumeBackupUploadRestore(envID, volumeName string) string
- func VolumeBackups(envID, volumeName string) string
- func VolumeRename(envID, volumeName string) string
- func VolumeUsage(envID, volumeName string) string
- func VolumeWorkspace(envID, volumeName string) string
- func VolumeWorkspaceFile(envID, volumeName string) string
- func VolumeWorkspaceFileDownload(envID, volumeName string) string
- func Volumes(envID string) string
- func VolumesCounts(envID string) string
- func VolumesPrune(envID string) string
- func VolumesSizes(envID string) string
- func VulnerabilitiesAll(envID string) string
- func VulnerabilitiesIgnored(envID string) string
- func VulnerabilitiesScannerStatus(envID string) string
- func VulnerabilitiesSummary(envID string) string
- func VulnerabilityIgnored(envID, ignoreID string) string
- func Webhook(envID, webhookID string) string
- func WebhookTrigger(token string) string
- func Webhooks(envID string) string
- type Config
- func (c *Config) Clone() *Config
- func (c *Config) HasAuth() bool
- func (c *Config) IsConfigured() bool
- func (c *Config) LimitFor(resource string) int
- func (c *Config) SetDefaultLimit(limit int)
- func (c *Config) SetResourceLimit(resource string, limit int)
- func (c *Config) Validate() error
- func (c *Config) ValidateServerURL() error
- type PaginationConfig
- type PaginationResourceConfig
Constants ¶
View Source
const ( VersionEndpoint = "/api/version" AppVersionEndpoint = "/api/app/version" )
Variables ¶
View Source
var (
KnownPaginatedResources = []string{
"containers",
"images",
"volumes",
"networks",
"projects",
"agents",
"registries",
"templates",
"repos",
"gitops-syncs",
"users",
"roles",
"events",
"apikeys",
}
)
Functions ¶
func Activities ¶
func ActivitiesHistory ¶
func ActivityAction ¶
func AuthFederated ¶
func AuthFederated() string
func AuthLogout ¶
func AuthLogout() string
func AuthMeApiKey ¶
func AuthMeApiKeys ¶
func AuthMeApiKeys() string
func AuthPassword ¶
func AuthPassword() string
func AuthRefresh ¶
func AuthRefresh() string
func AuthenticationSettings ¶
func AuthenticationSettings() string
func BackupAction ¶
func BackupUpload ¶
func BackupsDiscover ¶
func BackupsDiscover() string
func BackupsPolicies ¶
func BackupsPolicies() string
func BackupsRecoveryKey ¶
func BackupsRecoveryKey() string
func BackupsRecoveryKeyGenerate ¶
func BackupsRecoveryKeyGenerate() string
func BackupsS3Destination ¶
func BackupsS3Options ¶
func BackupsS3Options() string
func BackupsS3Test ¶
func BackupsS3Test() string
func ContainerAction ¶
func ContainerAutoUpdate ¶
func ContainerCommit ¶
func ContainerConfig ¶
func ContainerRedeploy ¶
func ContainerRegistries ¶
func ContainerRegistries() string
func ContainerRegistriesPullUsage ¶
func ContainerRegistriesPullUsage() string
func ContainerRegistry ¶
func ContainerRegistryAction ¶
func ContainerUpdate ¶
func Containers ¶
func ContainersCounts ¶
func Environment ¶
func EnvironmentDeployment ¶
func EnvironmentTest ¶
func EnvironmentVersion ¶
func Environments ¶
func Environments() string
func EventsEnvironment ¶
func EventsStats ¶
func EventsStats() string
func FederatedCredential ¶
func FederatedCredentials ¶
func FederatedCredentials() string
func GitOpsSync ¶
func GitOpsSyncAction ¶
func GitOpsSyncBackupHistory ¶
func GitOpsSyncBackupPreview ¶
func GitOpsSyncBackupResolve ¶
func GitOpsSyncFiles ¶
func GitOpsSyncStatus ¶
func GitOpsSyncs ¶
func GitOpsSyncsImport ¶
func GitRepositories ¶
func GitRepositories() string
func GitRepository ¶
func GitRepositoryAction ¶
func GitRepositoryBranches ¶
func GitRepositoryFiles ¶
func ImageAttestations ¶
func ImageBuild ¶
func ImageBuilds ¶
func ImageExport ¶
func ImageHistory ¶
func ImageUpdatesCheck ¶
func ImageUpdatesCheckAction ¶
func ImageUpdatesCheckById ¶
func ImageUpdatesSummary ¶
func ImageVulnerabilities ¶
func ImagesBuild ¶
func ImagesCounts ¶
func ImagesPrune ¶
func ImagesPull ¶
func ImagesSearch ¶
func ImagesUpload ¶
func JobSchedules ¶
func ManagerSettings ¶
func ManagerSettings() string
func NetworkAction ¶
func NetworksCounts ¶
func NetworksPrune ¶
func NetworksTopology ¶
func NormalizePaginatedResources ¶
func NormalizePaginatedResources(resources map[string]PaginationResourceConfig) map[string]PaginationResourceConfig
func NotificationsSettings ¶
func NotificationsSettings() string
func OIDCDeviceCode ¶
func OIDCDeviceCode() string
func OIDCDeviceToken ¶
func OIDCDeviceToken() string
func OIDCStatus ¶
func OIDCStatus() string
func OidcRoleMapping ¶
func OidcRoleMappings ¶
func OidcRoleMappings() string
func PodmanAutoUpdate ¶
func PodmanKube ¶
func PodmanPodAction ¶
func PodmanPods ¶
func PodmanQuadlet ¶
func PodmanQuadletAction ¶
func PodmanQuadlets ¶
func PodmanSecret ¶
func PodmanSecrets ¶
func PodmanStatus ¶
func ProjectAction ¶
func ProjectBuild ¶
func ProjectDeploy ¶
func ProjectTags ¶
func ProjectWorkspace ¶
func ProjectWorkspaceFile ¶
func ProjectsCounts ¶
func ProjectsTags ¶
func RolesAvailablePermissions ¶
func RolesAvailablePermissions() string
func SettingsPublic ¶
func SystemContainersAction ¶
func SystemConvert ¶
func SystemDockerInfo ¶
func SystemPrune ¶
func SystemUpgrade ¶
func SystemUpgradeCheck ¶
func SystemUpgradeJobCurrent ¶
func SystemUpgradeJobs ¶
func TemplateAction ¶
func TemplateContent ¶
func TemplateFetch ¶
func TemplateFetch() string
func TemplateRegistry ¶
func TemplatesAll ¶
func TemplatesAll() string
func TemplatesDefault ¶
func TemplatesDefault() string
func TemplatesRegistries ¶
func TemplatesRegistries() string
func UpdaterHistory ¶
func UpdaterRun ¶
func UpdaterStatus ¶
func UploadSession ¶
func UploadSessionChunk ¶
func UploadSessions ¶
func UserRoleAssignments ¶
func VariablesSync ¶
func VariablesSync() string
func VolumeBackup ¶
func VolumeBackupAction ¶
func VolumeBackupDownload ¶
func VolumeBackupFiles ¶
func VolumeBackupPolicy ¶
func VolumeBackupUpload ¶
func VolumeBackups ¶
func VolumeRename ¶
func VolumeUsage ¶
func VolumeWorkspace ¶
func VolumeWorkspaceFile ¶
func VolumesCounts ¶
func VolumesPrune ¶
func VolumesSizes ¶
func VulnerabilitiesAll ¶
func VulnerabilitiesIgnored ¶
func VulnerabilitiesSummary ¶
func VulnerabilityIgnored ¶
func WebhookTrigger ¶
Types ¶
type Config ¶
type Config struct {
Pagination PaginationConfig `yaml:"pagination,omitempty"`
ServerURL string `yaml:"server_url"`
APIKey string `yaml:"api_key,omitempty"`
JWTToken string `yaml:"-"`
RefreshToken string `yaml:"-"`
FederatedAudience string `yaml:"federated_audience,omitempty"`
LogLevel string `yaml:"log_level,omitempty"`
CLIUpdateChannel string `yaml:"cli_update_channel,omitempty"`
}
func (*Config) IsConfigured ¶
func (*Config) SetDefaultLimit ¶
func (*Config) SetResourceLimit ¶
func (*Config) ValidateServerURL ¶
type PaginationConfig ¶
type PaginationConfig struct {
Resources map[string]PaginationResourceConfig `yaml:"resources,omitempty"`
Default PaginationResourceConfig `yaml:"default,omitempty"`
}
type PaginationResourceConfig ¶
type PaginationResourceConfig struct {
Limit int `yaml:"limit,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.