model

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 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 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 CreateStorageParam

type CreateStorageParam struct {
	VersionID int
	Directory string
}

type CreateVersionParam

type CreateVersionParam struct {
	ResourceID        string
	Name              string
	UploadArchivePath string
}

type CreateVersionResponseData

type CreateVersionResponseData struct {
	ID     int    `json:"id"`
	Name   string `json:"name"`
	Number uint64 `json:"number"`
}

type GetLatestVersionRequest

type GetLatestVersionRequest struct {
	CurrentVersion string `query:"current_version"`
	CDK            string `query:"cdk"`
	SpID           string `query:"sp_id"`
	UserAgent      string `query:"user_agent"`
}

type GetResourcePathParam

type GetResourcePathParam struct {
	ResourceID string
	VersionID  int
}

type GetVersionByNameParam

type GetVersionByNameParam struct {
	ResourceID string
	Name       string
}

type GetVersionPatchParam

type GetVersionPatchParam struct {
	ResourceID               string
	CurrentVersionID         int
	CurrentVersionFileHashes map[string]string
	TargetVersionID          int
	TargetVersionFileHashes  map[string]string
}

type ListResourceParam

type ListResourceParam struct {
	Offset int
	Limit  int
}

type ListVersionParam

type ListVersionParam struct {
	ResourceID string
	Offset     int
	Limit      int
}

type QueryLatestResponseData

type QueryLatestResponseData struct {
	VersionName   string `json:"version_name"`
	VersionNumber uint64 `json:"version_number"`
	Url           string `json:"url,omitempty"`
}

type StoreTempDownloadInfoParam

type StoreTempDownloadInfoParam struct {
	ResourceID         string
	CurrentVersionName string
	LatestVersion      *ent.Version
}

type TempDownloadInfo

type TempDownloadInfo struct {
	ResourceID               string            `json:"resource_id"`
	Full                     bool              `json:"full"`
	TargetVersionID          int               `json:"target_version_id"`
	TargetVersionFileHashes  map[string]string `json:"target_version_file_hashes"`
	CurrentVersionID         int               `json:"current_version_id"`
	CurrentVersionFileHashes map[string]string `json:"current_version_file_hashes"`
}

type UpdateResourceParam

type UpdateResourceParam struct {
	ID          string
	Name        string
	Description string
}

type ValidateCDKRequest

type ValidateCDKRequest struct {
	CDK             string `json:"cdk"`
	SpecificationID string `json:"specificationId"`
	Source          string `json:"source"`
	UA              string `json:"ua"`
}

type ValidateCDKResponse

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

type ValidateUploaderResponse

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

type VersionNameExistsParam

type VersionNameExistsParam struct {
	ResourceID string
	Name       string
}

Jump to

Keyboard shortcuts

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