mirror of https://github.com/go-gitea/gitea
Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.0 KiB
37 lines
1.0 KiB
// Copyright 2024 The Gitea Authors. 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"`
|
|
}
|
|
|
|
// 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"`
|
|
}
|
|
|
|
// 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"`
|
|
}
|
|
|