github.com/minio/console@v1.4.1/models/kms_key_info.go (about) 1 // Code generated by go-swagger; DO NOT EDIT. 2 3 // This file is part of MinIO Console Server 4 // Copyright (c) 2023 MinIO, Inc. 5 // 6 // This program is free software: you can redistribute it and/or modify 7 // it under the terms of the GNU Affero General Public License as published by 8 // the Free Software Foundation, either version 3 of the License, or 9 // (at your option) any later version. 10 // 11 // This program is distributed in the hope that it will be useful, 12 // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 // GNU Affero General Public License for more details. 15 // 16 // You should have received a copy of the GNU Affero General Public License 17 // along with this program. If not, see <http://www.gnu.org/licenses/>. 18 // 19 20 package models 21 22 // This file was generated by the swagger tool. 23 // Editing this file might prove futile when you re-run the swagger generate command 24 25 import ( 26 "context" 27 28 "github.com/go-openapi/strfmt" 29 "github.com/go-openapi/swag" 30 ) 31 32 // KmsKeyInfo kms key info 33 // 34 // swagger:model kmsKeyInfo 35 type KmsKeyInfo struct { 36 37 // created at 38 CreatedAt string `json:"createdAt,omitempty"` 39 40 // created by 41 CreatedBy string `json:"createdBy,omitempty"` 42 43 // name 44 Name string `json:"name,omitempty"` 45 } 46 47 // Validate validates this kms key info 48 func (m *KmsKeyInfo) Validate(formats strfmt.Registry) error { 49 return nil 50 } 51 52 // ContextValidate validates this kms key info based on context it is used 53 func (m *KmsKeyInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 54 return nil 55 } 56 57 // MarshalBinary interface implementation 58 func (m *KmsKeyInfo) MarshalBinary() ([]byte, error) { 59 if m == nil { 60 return nil, nil 61 } 62 return swag.WriteJSON(m) 63 } 64 65 // UnmarshalBinary interface implementation 66 func (m *KmsKeyInfo) UnmarshalBinary(b []byte) error { 67 var res KmsKeyInfo 68 if err := swag.ReadJSON(b, &res); err != nil { 69 return err 70 } 71 *m = res 72 return nil 73 }