mirror of
https://github.com/hanzoai/forge.git
synced 2026-10-30 15:00:39 +00:00
Source files keep their SPDX-License-Identifier and Hanzo copyright line; the Gitea, Gogs and LFS Test Server copyrights they used to repeat now live once in NOTICE, alongside LICENSE. The header lint accepts any copyright line above the SPDX line, so it no longer demands an upstream one. Co-authored-by: Hanzo Dev <[email protected]>
50 lines
1.3 KiB
Go
50 lines
1.3 KiB
Go
// Copyright 2026 Hanzo AI, Inc. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package structs
|
|
|
|
// CreateVariableOption the option when creating variable
|
|
// swagger:model
|
|
type CreateVariableOption struct {
|
|
// Value of the variable to create
|
|
//
|
|
// required: true
|
|
Value string `json:"value" binding:"Required"`
|
|
|
|
// Description of the variable to create
|
|
//
|
|
// required: false
|
|
Description string `json:"description"`
|
|
}
|
|
|
|
// UpdateVariableOption the option when updating variable
|
|
// swagger:model
|
|
type UpdateVariableOption struct {
|
|
// New name for the variable. If the field is empty, the variable name won't be updated.
|
|
Name string `json:"name"`
|
|
// Value of the variable to update
|
|
//
|
|
// required: true
|
|
Value string `json:"value" binding:"Required"`
|
|
|
|
// Description of the variable to update
|
|
//
|
|
// required: false
|
|
Description string `json:"description"`
|
|
}
|
|
|
|
// ActionVariable return value of the query API
|
|
// swagger:model
|
|
type ActionVariable struct {
|
|
// the owner to which the variable belongs
|
|
OwnerID int64 `json:"owner_id"`
|
|
// the repository to which the variable belongs
|
|
RepoID int64 `json:"repo_id"`
|
|
// the name of the variable
|
|
Name string `json:"name"`
|
|
// the value of the variable
|
|
Data string `json:"data"`
|
|
// the description of the variable
|
|
Description string `json:"description"`
|
|
}
|