mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2024-11-29 09:48:45 +03:00
552dbcdda9
Add copyright header Co-authored-by: sillyguodong <gedong_1994@163.com> Reviewed-on: https://gitea.com/gitea/act_runner/pulls/29 Reviewed-by: Jason Song <i@wolfogre.com> Reviewed-by: Zettat123 <zettat123@noreply.gitea.io> Co-authored-by: sillyguodong <sillyguodong@noreply.gitea.io> Co-committed-by: sillyguodong <sillyguodong@noreply.gitea.io>
20 lines
458 B
Go
20 lines
458 B
Go
// Copyright 2022 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package core
|
|
|
|
const (
|
|
UUIDHeader = "x-runner-uuid"
|
|
TokenHeader = "x-runner-token"
|
|
)
|
|
|
|
// Runner struct
|
|
type Runner struct {
|
|
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"`
|
|
}
|