github.com/minio/console@v1.4.1/models/group.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 // Group group 33 // 34 // swagger:model group 35 type Group struct { 36 37 // members 38 Members []string `json:"members"` 39 40 // name 41 Name string `json:"name,omitempty"` 42 43 // policy 44 Policy string `json:"policy,omitempty"` 45 46 // status 47 Status string `json:"status,omitempty"` 48 } 49 50 // Validate validates this group 51 func (m *Group) Validate(formats strfmt.Registry) error { 52 return nil 53 } 54 55 // ContextValidate validates this group based on context it is used 56 func (m *Group) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 57 return nil 58 } 59 60 // MarshalBinary interface implementation 61 func (m *Group) MarshalBinary() ([]byte, error) { 62 if m == nil { 63 return nil, nil 64 } 65 return swag.WriteJSON(m) 66 } 67 68 // UnmarshalBinary interface implementation 69 func (m *Group) UnmarshalBinary(b []byte) error { 70 var res Group 71 if err := swag.ReadJSON(b, &res); err != nil { 72 return err 73 } 74 *m = res 75 return nil 76 }