manifests

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockManifest

type BlockManifest struct {
	UUID      string `json:"uuid"`
	Checksum  string `json:"checksum"`
	Offset    uint64 `json:"offset"`
	BlockSize int64  `json:"blockSize"`
}

BlockManifest json for blocks elements

type BuildManifest

type BuildManifest struct {
	AppID                string                 `json:"appId,omitempty"`
	Version              string                 `json:"displayVersion,omitempty"`
	BuildID              string                 `json:"buildId"`
	PlatformID           string                 `json:"platformId"`
	BaseURLs             []string               `json:"baseUrls"`
	Files                []FileManifest         `json:"files"`
	DefaultLaunchProfile DefaultLaunchProfile   `json:"defaultLaunchProfile"`
	ObsoleteFiles        []ObsoleteFileManifest `json:"obsoleteFiles"`
}

BuildManifest Patch manifests data

type DefaultLaunchProfile

type DefaultLaunchProfile struct {
	DefaultEntryPoint  string `json:"defaultEntryPoint"`
	DefaultClientID    string `json:"defaultClientId"`
	DefaultRedirectURI string `json:"defaultRedirectURI"`
}

DefaultLaunchProfile Manifest for app-specific configuration

type FileManifest

type FileManifest struct {
	Path     string          `json:"path"`
	FileSize uint64          `json:"filesize"`
	Blocks   []BlockManifest `json:"blocks"`
	Checksum string          `json:"checksum"`

	//V2
	ZSyncFile *ZSyncFile `json:"zsyncFile,omitempty"`
	UUID      *string    `json:"uuid,omitempty"`
}

FileManifest File manifests element

type ObsoleteFileManifest

type ObsoleteFileManifest struct {
	Path string `json:"path"`
}

ObsoleteFileManifest Obsolete file manifests element

type PatchingBlockSpan

type PatchingBlockSpan struct {
	MissingSpans []patcher.MissingBlockSpan `json:"missingBlockSpans"`
	FoundSpans   []patcher.FoundBlockSpan   `json:"foundBlockSpans"`
	TotalBlocks  uint                       `json:"totalBlocks"`
	FullDownload bool                       `json:"fullDownload"`
	NoDownload   bool                       `json:"noDownload"`
}

type UploadSummary

type UploadSummary struct {
	PresignedUrl string `json:"presignedUrl"`
	Uuid         string `json:"uuid"`
}

type ZSyncFile

type ZSyncFile struct {
	UUID            string    `json:"uuid"`
	ZsyncVersion    string    `json:"zsyncVersion"`
	Filename        string    `json:"filename"`
	ModifiedTime    time.Time `json:"modifiedTime"`
	Blocksize       int       `json:"blockSize"`
	Length          int64     `json:"length"`
	SeqMatches      int       `json:"seqMatches"`
	WeaksumLength   int       `json:"weaksumLength"`
	StrongsumLength int       `json:"strongsumLength"`
	URL             string    `json:"url"`
	FileChecksum    string    `json:"fileChecksum"`
	Checksum        string    `json:"checksum"`
}

ZSyncFile manifests element

Jump to

Keyboard shortcuts

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