system_handler

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(server *server.Server, grp *huma.Group)

Types

type CheckUniqueDomainInput

type CheckUniqueDomainInput struct {
	server.BaseAuthInput
	// contains filtered or unexported fields
}

* Check collision

type CheckUniqueDomainOutput

type CheckUniqueDomainOutput struct {
	Body struct {
		Data *CollisionOutput `json:"data" doc:"The generated wildcard domain"  nullable:"false"`
	}
}

type CollisionOutput

type CollisionOutput struct {
	IsUnique bool `json:"is_unique" doc:"True if the domain is unique, false otherwise"`
}

type CreateRegistryInput

type CreateRegistryInput struct {
	server.BaseAuthInput
	Body models.CreateRegistryInput
}

* Create

type CreateRegistryResponse

type CreateRegistryResponse struct {
	Body struct {
		Data *models.RegistryResponse `json:"data" nullable:"false"`
	}
}

type DeleteRegistryInput

type DeleteRegistryInput struct {
	server.BaseAuthInput
	Body models.DeleteRegistryInput
}

* Delete

type DnsCheck

type DnsCheck struct {
	IsCloudflare bool             `json:"is_cloudflare"`
	DnsStatus    models.DNSStatus `json:"dns_status"`
}

type DnsCheckInput

type DnsCheckInput struct {
	server.BaseAuthInput
	Domain string `query:"domain" required:"true" description:"Domain to check DNS for"`
}

type DnsCheckResponse

type DnsCheckResponse struct {
	Body struct {
		Data *DnsCheck `json:"data" nullable:"false"`
	}
}

type GenerateWildcardDomainInput

type GenerateWildcardDomainInput struct {
	server.BaseAuthInput
	Body struct {
		Name string `json:"name" doc:"The base name of the wildcard domain" required:"true" minLength:"1"`
	}
}

type GenerateWildcardDomainOutput

type GenerateWildcardDomainOutput struct {
	Body struct {
		Data string `json:"data" doc:"The generated wildcard domain"`
	}
}

type GetRegistryInput

type GetRegistryInput struct {
	server.BaseAuthInput
	models.GetRegistryInput
}

* Get

type GetRegistryResponse

type GetRegistryResponse struct {
	Body struct {
		Data *models.RegistryResponse `json:"data" nullable:"false"`
	}
}

type HandlerGroup

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

func (*HandlerGroup) ApplyUpdate

func (self *HandlerGroup) ApplyUpdate(ctx context.Context, input *UpdateApplyInput) (*UpdateApplyResponse, error)

func (*HandlerGroup) CheckDNSResolution

func (self *HandlerGroup) CheckDNSResolution(ctx context.Context, input *DnsCheckInput) (*DnsCheckResponse, error)

func (*HandlerGroup) CheckForDomainCollision

func (self *HandlerGroup) CheckForDomainCollision(ctx context.Context, input *CheckUniqueDomainInput) (output *CheckUniqueDomainOutput, err error)

func (*HandlerGroup) CheckForUpdates

func (self *HandlerGroup) CheckForUpdates(ctx context.Context, input *server.BaseAuthInput) (*UpdateCheckResponse, error)

func (*HandlerGroup) CheckPermissions

func (self *HandlerGroup) CheckPermissions(ctx context.Context, requesterUserID uuid.UUID) error

func (*HandlerGroup) CreateRegistry

func (self *HandlerGroup) CreateRegistry(ctx context.Context, input *CreateRegistryInput) (*CreateRegistryResponse, error)

func (*HandlerGroup) DeleteRegistry

func (self *HandlerGroup) DeleteRegistry(ctx context.Context, input *DeleteRegistryInput) (*server.DeletedResponse, error)

func (*HandlerGroup) GenerateWildcardDomain

func (self *HandlerGroup) GenerateWildcardDomain(ctx context.Context, input *GenerateWildcardDomainInput) (output *GenerateWildcardDomainOutput, err error)

func (*HandlerGroup) GetRegistry

func (self *HandlerGroup) GetRegistry(ctx context.Context, input *GetRegistryInput) (*GetRegistryResponse, error)

func (*HandlerGroup) GetSystemInformation

func (self *HandlerGroup) GetSystemInformation(ctx context.Context, input *server.BaseAuthInput) (*SystemMetaResponse, error)

func (*HandlerGroup) GetUpdateStatus

func (self *HandlerGroup) GetUpdateStatus(ctx context.Context, input *server.BaseAuthInput) (*UpdateStatusResponse, error)

func (*HandlerGroup) ListRegistries

func (self *HandlerGroup) ListRegistries(ctx context.Context, input *server.BaseAuthInput) (*ListRegistriesResponse, error)

func (*HandlerGroup) SetDefaultRegistry

func (self *HandlerGroup) SetDefaultRegistry(ctx context.Context, input *SetDefaultRegistryInput) (*SetDefaultRegistryResponse, error)

func (*HandlerGroup) UpdateBuildkitSettings

func (self *HandlerGroup) UpdateBuildkitSettings(ctx context.Context, input *SettingsUpdateInput) (*SettingsResponse, error)

type ListRegistriesResponse

type ListRegistriesResponse struct {
	Body struct {
		Data []*models.RegistryResponse `json:"data" nullable:"false"`
	}
}

* List

type SetDefaultRegistryInput

type SetDefaultRegistryInput struct {
	server.BaseAuthInput
	Body models.SetDefaultRegistryInput
}

* Set default

type SetDefaultRegistryResponse

type SetDefaultRegistryResponse struct {
	Body struct {
		Data *models.RegistryResponse `json:"data" nullable:"false"`
	}
}

type SettingsResponse

type SettingsResponse struct {
	Body struct {
		Data *system_service.SystemSettingsResponse `json:"data" nullable:"false"`
	}
}

type SettingsUpdateInput

type SettingsUpdateInput struct {
	server.BaseAuthInput
	Body *system_repo.SystemSettingUpdateInput
}

type StorageResponse

type StorageResponse struct {
	AllocatableStorageBytes string `json:"allocatable_storage_bytes"`
	StorageClass            string `json:"storage_class_name"`
	UnableToGetAllocatable  bool   `json:"unable_to_get_allocatable"`
}

type SystemMeta

type SystemMeta struct {
	ExternalIPV6   string                                 `json:"external_ipv6" nullable:"false"`
	ExternalIPV4   string                                 `json:"external_ipv4" nullable:"false"`
	Storage        *k8s.StorageMetadata                   `json:"storage" nullable:"false"`
	SystemSettings *system_service.SystemSettingsResponse `json:"system_settings" nullable:"false"`
}

type SystemMetaResponse

type SystemMetaResponse struct {
	Body struct {
		Data *SystemMeta `json:"data" nullable:"false"`
	}
}

type UpdateApplyInput

type UpdateApplyInput struct {
	server.BaseAuthInput
	Body struct {
		TargetVersion string `json:"target_version"`
	}
}

* Apply update

type UpdateApplyResponse

type UpdateApplyResponse struct {
	Body struct {
		Started bool `json:"started"`
	}
}

type UpdateCheckResponse

type UpdateCheckResponse struct {
	Body struct {
		HasUpdateAvailable bool     `json:"has_update_available"`
		AvailableVersions  []string `json:"available_versions" nullable:"false"`
		CurrentVersion     string   `json:"current_version"`
	}
}

* Check for updates

type UpdateStatusResponse

type UpdateStatusResponse struct {
	Body struct {
		Ready bool `json:"ready"`
	}
}

* Get update status

Jump to

Keyboard shortcuts

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