github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/pkg/domain/entities/secrets.go (about) 1 package entities 2 3 import ( 4 "time" 5 6 "github.com/hanks177/podman/v4/pkg/errorhandling" 7 ) 8 9 type SecretCreateReport struct { 10 ID string 11 } 12 13 type SecretCreateOptions struct { 14 Driver string 15 DriverOpts map[string]string 16 } 17 18 type SecretListRequest struct { 19 Filters map[string][]string 20 } 21 22 type SecretListReport struct { 23 ID string 24 Name string 25 Driver string 26 CreatedAt string 27 UpdatedAt string 28 } 29 30 type SecretRmOptions struct { 31 All bool 32 } 33 34 type SecretRmReport struct { 35 ID string 36 Err error 37 } 38 39 type SecretInfoReport struct { 40 ID string 41 CreatedAt time.Time 42 UpdatedAt time.Time 43 Spec SecretSpec 44 } 45 46 type SecretInfoReportCompat struct { 47 SecretInfoReport 48 Version SecretVersion 49 } 50 51 type SecretVersion struct { 52 Index int 53 } 54 55 type SecretSpec struct { 56 Name string 57 Driver SecretDriverSpec 58 } 59 60 type SecretDriverSpec struct { 61 Name string 62 Options map[string]string 63 } 64 65 // swagger:model SecretCreate 66 type SecretCreateRequest struct { 67 // User-defined name of the secret. 68 Name string 69 // Base64-url-safe-encoded (RFC 4648) data to store as secret. 70 Data string 71 // Driver represents a driver (default "file") 72 Driver SecretDriverSpec 73 } 74 75 // Secret create response 76 // swagger:response SecretCreateResponse 77 type SwagSecretCreateResponse struct { 78 // in:body 79 Body struct { 80 SecretCreateReport 81 } 82 } 83 84 // Secret list response 85 // swagger:response SecretListResponse 86 type SwagSecretListResponse struct { 87 // in:body 88 Body []*SecretInfoReport 89 } 90 91 // Secret list response 92 // swagger:response SecretListCompatResponse 93 type SwagSecretListCompatResponse struct { 94 // in:body 95 Body []*SecretInfoReportCompat 96 } 97 98 // Secret inspect response 99 // swagger:response SecretInspectResponse 100 type SwagSecretInspectResponse struct { 101 // in:body 102 Body SecretInfoReport 103 } 104 105 // Secret inspect compat 106 // swagger:response SecretInspectCompatResponse 107 type SwagSecretInspectCompatResponse struct { 108 // in:body 109 Body SecretInfoReportCompat 110 } 111 112 // No such secret 113 // swagger:response NoSuchSecret 114 type SwagErrNoSuchSecret struct { 115 // in:body 116 Body struct { 117 errorhandling.ErrorModel 118 } 119 } 120 121 // Secret in use 122 // swagger:response SecretInUse 123 type SwagErrSecretInUse struct { 124 // in:body 125 Body struct { 126 errorhandling.ErrorModel 127 } 128 }