apimodels

package
v0.0.0-...-0d2eb9b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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

func (m *ID) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this ID based on context it is used

func (*ID) MarshalBinary

func (m *ID) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ID) UnmarshalBinary

func (m *ID) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ID) Validate

func (m *ID) Validate(formats strfmt.Registry) error

Validate validates this ID

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

func (m *List) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this list based on context it is used

func (*List) MarshalBinary

func (m *List) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*List) UnmarshalBinary

func (m *List) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*List) Validate

func (m *List) Validate(formats strfmt.Registry) error

Validate validates this list

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

func (m *ListItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this list item based on context it is used

func (*ListItem) MarshalBinary

func (m *ListItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListItem) UnmarshalBinary

func (m *ListItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListItem) Validate

func (m *ListItem) Validate(formats strfmt.Registry) error

Validate validates this list item

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

func (m *OAuthCredentials) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*OAuthCredentials) Validate

func (m *OAuthCredentials) Validate(formats strfmt.Registry) error

Validate validates this o auth credentials

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

func (m *Principal) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this principal based on context it is used

func (*Principal) MarshalBinary

func (m *Principal) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Principal) UnmarshalBinary

func (m *Principal) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Principal) Validate

func (m *Principal) Validate(formats strfmt.Registry) error

Validate validates this principal

type Revision

type Revision struct {

	// rev
	// Required: true
	Rev *int64 `json:"rev"`
}

Revision revision

swagger:model Revision

func (*Revision) ContextValidate

func (m *Revision) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this revision based on context it is used

func (*Revision) MarshalBinary

func (m *Revision) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Revision) UnmarshalBinary

func (m *Revision) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Revision) Validate

func (m *Revision) Validate(formats strfmt.Registry) error

Validate validates this revision

type User

type User struct {

	// username
	Username UserName `json:"username,omitempty"`

	UserInfo
}

User user

swagger:model User

func (*User) ContextValidate

func (m *User) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this user based on the context it is used

func (*User) MarshalBinary

func (m *User) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (User) MarshalJSON

func (m User) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*User) UnmarshalBinary

func (m *User) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*User) UnmarshalJSON

func (m *User) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*User) Validate

func (m *User) Validate(formats strfmt.Registry) error

Validate validates this user

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

func (m *UserCredentials) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*UserCredentials) Validate

func (m *UserCredentials) Validate(formats strfmt.Registry) error

Validate validates this user credentials

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

func (m *UserInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user info based on context it is used

func (*UserInfo) MarshalBinary

func (m *UserInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserInfo) UnmarshalBinary

func (m *UserInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserInfo) Validate

func (m *UserInfo) Validate(formats strfmt.Registry) error

Validate validates this user info

type UserName

type UserName string

UserName user name

swagger:model UserName

func (UserName) ContextValidate

func (m UserName) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user name based on context it is used

func (UserName) Validate

func (m UserName) Validate(formats strfmt.Registry) error

Validate validates this user name

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL