package structs

import "time"

// CreateVariableOption the option when creating variable
// swagger:model
type CreateSecretOption struct {
	// Value of the variable to create
	//
	// required: true
	Data string `json:"data" binding:"Required"`
}

// UpdateVariableOption the option when updating variable
// swagger:model
type UpdateSecretOption 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
	Data string `json:"data" binding:"Required"`

	// Description of the variable to update
}

// Secret represents a secret
// swagger:model
type Secret struct {
	// the secret's name
	Name string `json:"name"`
	// swagger:strfmt date-time
	Created time.Time `json:"created_at"`
}
