dto

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: MIT Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Collaborators map[string]*Collaborator `json:"collaborators"`
	Deployments   []string                 `json:"deployments"`
	Name          string                   `json:"name"`
	IsOwner       bool                     `json:"-"`
}

type BlobInfo

type BlobInfo struct {
	Size uint64 `json:"size"`
	URL  string `json:"url"`
}

type Collaborator

type Collaborator struct {
	IsCurrentAccount bool   `json:"isCurrentAccount"`
	Permission       string `json:"permission"`
}

type Deployment

type Deployment struct {
	Key            string          `json:"key"`
	Name           string          `json:"name"`
	Package        *Package        `json:"package"`
	PackageMetrics *PackageMetrics `json:packageMetrics`
}

type Package

type Package struct {
	*PackageInfo
	BlobURL            string               `json:"blobUrl"`
	DiffPackageMap     map[string]*BlobInfo `json:"diffPackageMap"`
	OriginalLabel      string               `json:"originalLabel"`
	OriginalDeployment string               `json:"originalDeployment"`
	ReleasedBy         string               `json:"releasedBy"`
	ReleaseMethod      string               `json:"releaseMethod"`
	Size               int64                `json:"size"`
	UploadTime         int64                `json:"uploadTime"`
}

type PackageInfo

type PackageInfo struct {
	AppVersion  string `json:"appVersion"`
	Description string `json:"description"`
	IsDisabled  bool   `json:"isDisabled"`
	IsMandatory bool   `json:"isMandatory"`
	Label       string `json:"label"`
	PackageHash string `json:"packageHash"`
	Rollout     uint8  `json:"rollout"` // unconfirm
}

type PackageMetrics

type PackageMetrics struct {
	Active      uint64 `json:"active"`
	TotalActive uint64 `json:"totalActive"`
	Downloaded  uint64 `json:"downloaded"`
	Failed      uint64 `json:"failed"`
	Installed   uint64 `json:"installed"`
}

type Pager added in v0.1.1

type Pager struct {
	PageIndex      int         `json:"pageIndex"`
	PageCount      int         `json:"pageCount"`
	TotalCount     int64       `json:"totalCount"`
	TotalPageCount int64       `json:"totalPageCount"`
	Data           interface{} `json:"data"`
}

type UpdateCheck

type UpdateCheck struct {
	*PackageInfo
	DownloadURL            string `json:"downloadURL"`
	IsAvailable            bool   `json:"isAvailable"`
	PackageSize            int64  `json:"packageSize"`
	ShouldRunBinaryVersion bool   `json:"shouldRunBinaryVersion"`
	UpdateAppVersion       bool   `json:"updateAppVersion"`
}

type UpdateCheckCache

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

type UpdatePackageInfo

type UpdatePackageInfo struct {
	PackageInfo *PackageInfo `json:"packageInfo"`
}

type User

type User struct {
	ID              string   `json:"id"`
	Name            string   `json:"name"`
	Email           string   `json:"email"`
	LinkedProviders []string `json:"linkedProviders"`
}

type UserDetail added in v0.1.1

type UserDetail struct {
	Email    string    `json:"email"`
	UserName string    `json:"userName"`
	Role     int       `json:"role"`
	Status   int       `json:"status"`
	JoinedAt time.Time `json:"joinedTime"`
}

type UserToken

type UserToken struct {
	ID           uint64    `json:"id"`
	Name         string    `json:"name"`
	FriendlyName string    `json:"friendlyName"`
	Expires      time.Time `json:"expires"`
	IsSession    bool      `json:"isSession"`
	CreatedBy    string    `json:"createdBy"`
	CreatedTime  time.Time `json:"createdTime"`
	Description  string    `json:"description"`
}

Jump to

Keyboard shortcuts

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