2023-08-15 20:32:43 +08:00
|
|
|
// Copyright 2023 The Gitea Authors. All rights reserved.
|
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
|
|
package structs
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
2023-08-22 11:20:34 +08:00
|
|
|
// Secret represents a secret
|
2023-08-15 20:32:43 +08: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 11:20:34 +08:00
|
|
|
|
2026-02-09 17:02:18 +01:00
|
|
|
// CreateOrUpdateSecretOption defines the properties of the secret to create or update.
|
2023-08-22 11:20:34 +08:00
|
|
|
// swagger:model
|
2023-08-28 13:08:19 +08:00
|
|
|
type CreateOrUpdateSecretOption struct {
|
2026-02-09 17:02:18 +01:00
|
|
|
// Data of the secret. Special characters will be retained. Line endings will be normalized to LF to match the
|
|
|
|
|
// behaviour of browsers. Encode the data with Base64 if line endings should be retained.
|
2023-08-24 10:07:00 +08:00
|
|
|
//
|
|
|
|
|
// required: true
|
|
|
|
|
Data string `json:"data" binding:"Required"`
|
|
|
|
|
}
|