1 Star 0 Fork 0

nanjo_fan / goharbor-client

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
user_group.go 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
王帆 提交于 2023-02-13 08:49 . first commit
// Code generated by go-swagger; DO NOT EDIT.
package model
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// UserGroup user group
//
// swagger:model UserGroup
type UserGroup struct {
// The name of the user group
GroupName string `json:"group_name,omitempty"`
// The group type, 1 for LDAP group, 2 for HTTP group, 3 for OIDC group.
GroupType int64 `json:"group_type,omitempty"`
// The ID of the user group
ID int64 `json:"id,omitempty"`
// The DN of the LDAP group if group type is 1 (LDAP group).
LdapGroupDn string `json:"ldap_group_dn,omitempty"`
}
// Validate validates this user group
func (m *UserGroup) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *UserGroup) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *UserGroup) UnmarshalBinary(b []byte) error {
var res UserGroup
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/nanjo-fan/goharbor-client.git
git@gitee.com:nanjo-fan/goharbor-client.git
nanjo-fan
goharbor-client
goharbor-client
v1.0.3

搜索帮助

344bd9b3 5694891 D2dac590 5694891