Documentation
¶
Index ¶
- Constants
- Variables
- func BuildHeartbeatUI(hbs []HeartbeatUI) ([]byte, error)
- func Compress(data []byte) ([]byte, error)
- func Copy(dest, src string) error
- func CurrentScope() string
- func Decompress(data []byte) ([]byte, error)
- func DownloadAsset(url, path string) error
- func ExtractZip(path, dest string) error
- func IsFile(path string) bool
- func NativeExtractTar(path, dest string) error
- func NativeExtractZip(path, dest string) error
- func NativeMysql(db_user, db_host, db_port, pass, sql_path string) error
- func RunCmd(cmd *exec.Cmd) error
- func SaveAsset(rsp *http.Response, path string) error
- func SortTags(tags []string)
- func VerifyDigest(path string, target [16]byte) error
- type ByCreated
- type ByVer
- type Event
- type EventType
- type Heartbeat
- type HeartbeatUI
- type Interface
- type Publisher
- type Registry
- type VersionNumber
Constants ¶
View Source
const ( TopicUpdateManifest = "update_manifest" TopicHeartbeat = "heartbeat" TopicEvent = "event" )
View Source
const (
API_HEARTBEAT = "/heartbeat"
)
Variables ¶
View Source
var (
VERSION = os.Getenv("VERSION_DETAILS")
)
Functions ¶
func BuildHeartbeatUI ¶
func BuildHeartbeatUI(hbs []HeartbeatUI) ([]byte, error)
func CurrentScope ¶
func CurrentScope() string
func Decompress ¶
func DownloadAsset ¶
func ExtractZip ¶
func NativeExtractTar ¶
func NativeExtractZip ¶
func NativeMysql ¶
func VerifyDigest ¶
Types ¶
type ByVer ¶
type ByVer []VersionNumber
type Event ¶
type Event struct { Publisher Ty EventType `json:"type"` Component string `json:"component,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` Version string `json:"version,omitempty"` Payload string `json:"payload,omitempty"` }
func NewErrEvent ¶
type Heartbeat ¶
type Heartbeat struct { Publisher Component string `json:"component,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` Containers []types.Container `json:"containers,omitempty"` Images []types.ImageSummary `json:"images,omitempty"` Version string `json:"version,omitempty"` Error string `json:"error,omitempty"` }
func NewUpdaterHeartbeat ¶
func NewUpdaterHeartbeat() *Heartbeat
type HeartbeatUI ¶
type VersionNumber ¶
type VersionNumber struct {
// contains filtered or unexported fields
}
func (VersionNumber) String ¶
func (ver VersionNumber) String() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.