2023-02-28 04:44:46 -06:00
|
|
|
// Copyright 2022 The Gitea Authors. All rights reserved.
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2022-10-15 03:12:32 -05:00
|
|
|
package core
|
|
|
|
|
2022-10-28 10:23:19 -05:00
|
|
|
const (
|
2023-03-13 05:57:35 -05:00
|
|
|
UUIDHeader = "x-runner-uuid"
|
|
|
|
TokenHeader = "x-runner-token"
|
|
|
|
VersionHeader = "x-runner-version"
|
2022-10-28 10:23:19 -05:00
|
|
|
)
|
2022-10-15 03:40:35 -05:00
|
|
|
|
2022-10-15 03:12:32 -05:00
|
|
|
// Runner struct
|
|
|
|
type Runner struct {
|
2023-02-15 02:51:14 -06:00
|
|
|
ID int64 `json:"id"`
|
|
|
|
UUID string `json:"uuid"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Token string `json:"token"`
|
|
|
|
Address string `json:"address"`
|
|
|
|
Insecure string `json:"insecure"`
|
|
|
|
Labels []string `json:"labels"`
|
2022-10-15 03:12:32 -05:00
|
|
|
}
|