Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // BackupresultMap is a map indexing the attribute names of Backupresult by // view name. BackupresultMap = map[string][]string{ "default": { "created_at", "updated_at", "deleted_at", "id", "state", "name", "namespace", "pod", "container", "command", "storage_secret", "kubernetes_resource", "location", }, } )
Functions ¶
func ValidateBackupresult ¶
func ValidateBackupresult(result *Backupresult) (err error)
ValidateBackupresult runs the validations defined on the viewed result type Backupresult.
func ValidateBackupresultView ¶
func ValidateBackupresultView(result *BackupresultView) (err error)
ValidateBackupresultView runs the validations defined on BackupresultView using the "default" view.
Types ¶
type Backupresult ¶
type Backupresult struct { // Type to project Projected *BackupresultView // View to render View string }
Backupresult is the viewed result type that is projected based on a view.
type BackupresultView ¶
type BackupresultView struct { CreatedAt *string UpdatedAt *string DeletedAt *string ID *string // Current state of the job State *string // Name of pachyderm instance backed up Name *string // Namespace of resource backed up Namespace *string // Name of target pod Pod *string // Name of container in pod Container *string // base64 encoded command to run in pod Command *string // Kubernetes secret containing S3 storage credentials StorageSecret *string // base64 encoded json representation of object KubernetesResource *string // URL of the uploaded backup tarball Location *string }
BackupresultView is a type that runs validations on a projected type.
Click to show internal directories.
Click to hide internal directories.