2023-08-15 12:32:43 +00:00
|
|
|
// Copyright 2023 The Gitea Authors. All rights reserved.
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
package structs
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
2023-08-22 03:20:34 +00:00
|
|
|
// Secret represents a secret
|
2023-08-15 12:32:43 +00:00
|
|
|
// swagger:model
|
|
|
|
type Secret struct {
|
|
|
|
// the secret's name
|
|
|
|
Name string `json:"name"`
|
|
|
|
// swagger:strfmt date-time
|
|
|
|
Created time.Time `json:"created_at"`
|
|
|
|
}
|
2023-08-22 03:20:34 +00:00
|
|
|
|
2023-08-28 05:08:19 +00:00
|
|
|
// CreateOrUpdateSecretOption options when creating or updating secret
|
2023-08-22 03:20:34 +00:00
|
|
|
// swagger:model
|
2023-08-28 05:08:19 +00:00
|
|
|
type CreateOrUpdateSecretOption struct {
|
2023-08-24 02:07:00 +00:00
|
|
|
// Data of the secret to update
|
|
|
|
//
|
|
|
|
// required: true
|
|
|
|
Data string `json:"data" binding:"Required"`
|
|
|
|
}
|