module

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Total       = 0
	Incremental = 1

	EnvRelease = "1"
	EnvTest    = "2"
	EnvDefault = "3"

	NotValid = int8(0)
	Valid    = int8(1)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	Condition string `json:"condition"`
	Value     string `json:"value"`
}

type Condition

type Condition struct {
	ID        int                  `json:"-"`
	ResID     int                  `json:"-"`
	STime     xtime.Time           `json:"stime"`
	ETime     xtime.Time           `json:"etime"`
	Valid     int8                 `json:"valid"`
	ValidTest int8                 `json:"valid_test"`
	Default   int                  `json:"-"`
	Columns   map[string][]*Column `json:"columns"`
	IsWifi    int8                 `json:"-"`
}

type Resource

type Resource struct {
	ID           int        `json:"-"`
	ResID        int        `json:"-"`
	Name         string     `json:"name"`
	Compresstype int        `json:"compresstype"`
	Type         string     `json:"type"`
	URL          string     `json:"url"`
	MD5          string     `json:"md5"`
	TotalMD5     string     `json:"total_md5"`
	Size         int        `json:"size"`
	Version      int        `json:"ver"`
	Increment    int        `json:"increment"`
	FromVer      int        `json:"-"`
	Condition    *Condition `json:"-"`
	Level        int        `json:"level,omitempty"`
	IsWifi       int8       `json:"is_wifi"`
}

type ResourcePool

type ResourcePool struct {
	ID        int         `json:"-"`
	Name      string      `json:"name"`
	Resources []*Resource `json:"resources,omitempty"`
}

type Versions

type Versions struct {
	PoolName string `json:"name"`
	Resource []struct {
		ResourceName string      `json:"name"`
		Version      interface{} `json:"ver"`
	} `json:"resources"`
}

Jump to

Keyboard shortcuts

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