Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct { // Velero is a slice of messages related to the operation of Velero // itself (for example, messages related to connecting to the // cloud, reading a backup file, etc.) Velero []string `json:"velero,omitempty"` // Cluster is a slice of messages related to backup or restore of // cluster-scoped resources. Cluster []string `json:"cluster,omitempty"` // Namespaces is a map of namespace name to slice of messages // related to backup or restore namespace-scoped resources. Namespaces map[string][]string `json:"namespaces,omitempty"` }
Result is a collection of messages that were generated during execution of a backup or restore. This will typically store either warning or error messages.
func (*Result) Add ¶
Add appends an error to the provided Result, either within the cluster-scoped list (if ns == "") or within the provided namespace's entry.
func (*Result) AddVeleroError ¶
AddVeleroError appends an error to the provided Result's Velero list.
Click to show internal directories.
Click to hide internal directories.