Documentation ¶
Index ¶
- Constants
- type ID
- type List
- type ListItem
- type OAuthCredentials
- type Principal
- type Revision
- type User
- func (m *User) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *User) MarshalBinary() ([]byte, error)
- func (m User) MarshalJSON() ([]byte, error)
- func (m *User) UnmarshalBinary(b []byte) error
- func (m *User) UnmarshalJSON(raw []byte) error
- func (m *User) Validate(formats strfmt.Registry) error
- type UserCredentials
- type UserInfo
- type UserName
Constants ¶
const ( // ListAccessPrivate captures enum value "private" ListAccessPrivate string = "private" // ListAccessLink captures enum value "link" ListAccessLink string = "link" // ListAccessPublic captures enum value "public" ListAccessPublic string = "public" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ID ¶
type ID struct { // id // Required: true ID *int64 `json:"id"` }
ID ID
swagger:model ID
func (*ID) ContextValidate ¶
ContextValidate validates this ID based on context it is used
func (*ID) MarshalBinary ¶
MarshalBinary interface implementation
func (*ID) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type List ¶
type List struct { // access // Required: true // Enum: [private link public] Access *string `json:"access"` // owner ID OwnerID int64 `json:"ownerID,omitempty"` // title // Required: true // Min Length: 1 Title *string `json:"title"` }
List list
swagger:model List
func (*List) ContextValidate ¶
ContextValidate validates this list based on context it is used
func (*List) MarshalBinary ¶
MarshalBinary interface implementation
func (*List) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ListItem ¶
type ListItem struct { // desc Desc string `json:"desc,omitempty"` // taken by TakenBy *int64 `json:"taken_by,omitempty"` // title // Required: true // Min Length: 1 Title *string `json:"title"` }
ListItem list item
swagger:model ListItem
func (*ListItem) ContextValidate ¶
ContextValidate validates this list item based on context it is used
func (*ListItem) MarshalBinary ¶
MarshalBinary interface implementation
func (*ListItem) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type OAuthCredentials ¶
type OAuthCredentials struct { // Textual ID of OAuth provider // Required: true ProviderID *string `json:"provider_id"` // OAuth bearer token // Required: true Token *string `json:"token"` }
OAuthCredentials o auth credentials
swagger:model OAuthCredentials
func (*OAuthCredentials) ContextValidate ¶
ContextValidate validates this o auth credentials based on context it is used
func (*OAuthCredentials) MarshalBinary ¶
func (m *OAuthCredentials) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OAuthCredentials) UnmarshalBinary ¶
func (m *OAuthCredentials) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Principal ¶
type Principal struct { // id ID int64 `json:"id,omitempty"` // username Username string `json:"username,omitempty"` }
Principal principal
swagger:model principal
func (*Principal) ContextValidate ¶
ContextValidate validates this principal based on context it is used
func (*Principal) MarshalBinary ¶
MarshalBinary interface implementation
func (*Principal) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Revision ¶
type Revision struct { // rev // Required: true Rev *int64 `json:"rev"` }
Revision revision
swagger:model Revision
func (*Revision) ContextValidate ¶
ContextValidate validates this revision based on context it is used
func (*Revision) MarshalBinary ¶
MarshalBinary interface implementation
func (*Revision) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type User ¶
User user
swagger:model User
func (*User) ContextValidate ¶
ContextValidate validate this user based on the context it is used
func (*User) MarshalBinary ¶
MarshalBinary interface implementation
func (User) MarshalJSON ¶
MarshalJSON marshals this object to a JSON structure
func (*User) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*User) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object from a JSON structure
type UserCredentials ¶
type UserCredentials struct { // password // Required: true // Max Length: 50 // Min Length: 8 // Format: password Password *strfmt.Password `json:"password"` // username // Required: true Username *UserName `json:"username"` }
UserCredentials user credentials
swagger:model UserCredentials
func (*UserCredentials) ContextValidate ¶
ContextValidate validate this user credentials based on the context it is used
func (*UserCredentials) MarshalBinary ¶
func (m *UserCredentials) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UserCredentials) UnmarshalBinary ¶
func (m *UserCredentials) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UserInfo ¶
type UserInfo struct { // fname // Required: true Fname *string `json:"fname"` // lname // Required: true Lname *string `json:"lname"` }
UserInfo user info
swagger:model UserInfo
func (*UserInfo) ContextValidate ¶
ContextValidate validates this user info based on context it is used
func (*UserInfo) MarshalBinary ¶
MarshalBinary interface implementation
func (*UserInfo) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type UserName ¶
type UserName string
UserName user name
swagger:model UserName
func (UserName) ContextValidate ¶
ContextValidate validates this user name based on context it is used