model

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActualUpdateProcessInfo added in v0.3.0

type ActualUpdateProcessInfo struct {
	Info    UpdateProcessInfo
	Target  *ent.Storage
	Current *ent.Storage
}

type BillingCheckinRequest

type BillingCheckinRequest struct {
	CDK         string `json:"cdk"`
	Application string `json:"application"`
	Module      string `json:"module"`
	UserAgent   string `json:"user_agent"`
}

type CreateResourceParam

type CreateResourceParam struct {
	ID          string
	Name        string
	Description string
}

type CreateResourceRequest

type CreateResourceRequest struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type CreateResourceResponseData

type CreateResourceResponseData struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type CreateVersionParam

type CreateVersionParam struct {
	ResourceID        string
	Name              string
	OS                string
	Arch              string
	Channel           string
	UploadArchivePath string
}

type CreateVersionResponseData

type CreateVersionResponseData struct {
	Name   string `json:"name"`
	Number uint64 `json:"number"`
	OS     string `json:"os,omitempty"`
	Arch   string `json:"arch,omitempty"`
}

type DistributeInfo added in v0.4.1

type DistributeInfo struct {
	Region   string `json:"region"`
	CDK      string `json:"cdk"`
	RelPath  string `json:"rel_path"`
	Resource string `json:"resource"`
}

type ExistVersionNameWithOSAndArchParam added in v0.4.0

type ExistVersionNameWithOSAndArchParam struct {
	ResourceID  string
	VersionName string
	OS          string
	Arch        string
}

type GetFullUpdatePackagePathParam added in v0.3.0

type GetFullUpdatePackagePathParam struct {
	ResourceID string
	VersionID  int
	OS         string
	Arch       string
}

type GetLatestVersionRequest

type GetLatestVersionRequest struct {
	ResourceID     string
	CurrentVersion string `query:"current_version"`
	OS             string `query:"os"`
	Arch           string `query:"arch"`
	Channel        string `query:"channel"`
	CDK            string `query:"cdk"`
	UserAgent      string `query:"user_agent"`
}

type GetVersionByNameParam

type GetVersionByNameParam struct {
	ResourceID  string
	VersionName string
}

type ProcessUpdateParam added in v0.3.0

type ProcessUpdateParam struct {
	ResourceID         string
	CurrentVersionName string
	TargetVersion      *ent.Version
	OS                 string
	Arch               string
}

type QueryLatestResponseData

type QueryLatestResponseData struct {
	VersionName   string `json:"version_name"`
	VersionNumber uint64 `json:"version_number"`
	Url           string `json:"url,omitempty"`
	SHA256        string `json:"sha256,omitempty"`
	Channel       string `json:"channel"`
	OS            string `json:"os,omitempty"`
	Arch          string `json:"arch,omitempty"`
	// UpdateType is the type of the update, it can be "full" or "incremental"
	UpdateType  string `json:"update_type,omitempty"`
	CustomData  string `json:"custom_data,omitempty"`
	ReleaseNote string `json:"release_note"`
}

type TempDownloadInfo

type TempDownloadInfo struct {
	ResourceID       string `json:"resource_id"`
	Full             bool   `json:"full"`
	TargetVersionID  int    `json:"target_version_id"`
	CurrentVersionID int    `json:"current_version_id"`
	OS               string `json:"os"`
	Arch             string `json:"arch"`
}

type UpdateInfo added in v0.4.1

type UpdateInfo struct {
	RelPath    string
	SHA256     string
	UpdateType string
}

type UpdatePackage added in v0.4.0

type UpdatePackage struct {
	Path   string `json:"path"`
	SHA256 string `json:"sha256"`
}

type UpdateProcessInfo added in v0.3.0

type UpdateProcessInfo struct {
	ResourceID       string
	TargetVersionID  int
	CurrentVersionID int
	OS               string
	Arch             string
}

type UpdateReleaseNoteDetailParam added in v0.4.0

type UpdateReleaseNoteDetailParam struct {
	VersionID         int
	ReleaseNoteDetail string
}

type UpdateReleaseNoteDetailRequest added in v0.4.0

type UpdateReleaseNoteDetailRequest struct {
	VersionName string `json:"version_name"`
	Content     string `json:"content"`
}

type UpdateReleaseNoteSummaryParam added in v0.4.0

type UpdateReleaseNoteSummaryParam struct {
	VersionID          int
	ReleaseNoteSummary string
}

type UpdateReleaseNoteSummaryRequest added in v0.4.0

type UpdateReleaseNoteSummaryRequest struct {
	VersionName string `json:"version_name"`
	Content     string `json:"content"`
}

type ValidateCDKRequest

type ValidateCDKRequest struct {
	CDK      string `json:"cdk"`
	Resource string `json:"resource"`
	UA       string `json:"ua"`
	IP       string `json:"ip"`
}

type ValidateCDKResponse

type ValidateCDKResponse struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

type ValidateUploaderResponse

type ValidateUploaderResponse struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

Jump to

Keyboard shortcuts

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