models

package
v0.0.0-...-1cc12bb Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (

	// TeamUserPermUser captures enum value "user"
	TeamUserPermUser string = "user"

	// TeamUserPermAdmin captures enum value "admin"
	TeamUserPermAdmin string = "admin"

	// TeamUserPermOwner captures enum value "owner"
	TeamUserPermOwner string = "owner"
)
View Source
const (

	// TeamUserParamsPermUser captures enum value "user"
	TeamUserParamsPermUser string = "user"

	// TeamUserParamsPermAdmin captures enum value "admin"
	TeamUserParamsPermAdmin string = "admin"

	// TeamUserParamsPermOwner captures enum value "owner"
	TeamUserParamsPermOwner string = "owner"
)
View Source
const (

	// UserTeamParamsPermUser captures enum value "user"
	UserTeamParamsPermUser string = "user"

	// UserTeamParamsPermAdmin captures enum value "admin"
	UserTeamParamsPermAdmin string = "admin"

	// UserTeamParamsPermOwner captures enum value "owner"
	UserTeamParamsPermOwner string = "owner"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthLogin

type AuthLogin struct {

	// password
	// Required: true
	// Format: password
	Password *strfmt.Password `json:"password"`

	// username
	// Required: true
	Username *string `json:"username"`
}

AuthLogin auth login swagger:model auth_login

func (*AuthLogin) MarshalBinary

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

MarshalBinary interface implementation

func (*AuthLogin) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AuthLogin) Validate

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

Validate validates this auth login

type AuthToken

type AuthToken struct {

	// expires at
	// Read Only: true
	// Format: date-time
	ExpiresAt *strfmt.DateTime `json:"expires_at,omitempty"`

	// token
	// Required: true
	// Read Only: true
	Token string `json:"token"`
}

AuthToken auth token swagger:model auth_token

func (*AuthToken) MarshalBinary

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

MarshalBinary interface implementation

func (*AuthToken) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AuthToken) Validate

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

Validate validates this auth token

type AuthVerify

type AuthVerify struct {

	// created at
	// Read Only: true
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"created_at,omitempty"`

	// username
	// Required: true
	// Read Only: true
	Username string `json:"username"`
}

AuthVerify auth verify swagger:model auth_verify

func (*AuthVerify) MarshalBinary

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

MarshalBinary interface implementation

func (*AuthVerify) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AuthVerify) Validate

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

Validate validates this auth verify

type GeneralError

type GeneralError struct {

	// message
	// Required: true
	Message *string `json:"message"`

	// status
	// Required: true
	Status *int64 `json:"status"`
}

GeneralError General error for regular HTTP status codes swagger:model general_error

func (*GeneralError) MarshalBinary

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

MarshalBinary interface implementation

func (*GeneralError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GeneralError) Validate

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

Validate validates this general error

type Profile

type Profile struct {

	// active
	// Read Only: true
	Active *bool `json:"active,omitempty"`

	// admin
	// Read Only: true
	Admin *bool `json:"admin,omitempty"`

	// created at
	// Read Only: true
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// email
	Email *string `json:"email,omitempty"`

	// id
	// Read Only: true
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// password
	// Format: password
	Password *strfmt.Password `json:"password,omitempty"`

	// slug
	Slug *string `json:"slug,omitempty"`

	// teams
	// Read Only: true
	Teams []*TeamUser `json:"teams,omitempty"`

	// updated at
	// Read Only: true
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// username
	Username *string `json:"username,omitempty"`
}

Profile profile swagger:model profile

func (*Profile) MarshalBinary

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

MarshalBinary interface implementation

func (*Profile) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Profile) Validate

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

Validate validates this profile

type Team

type Team struct {

	// created at
	// Read Only: true
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// id
	// Read Only: true
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// name
	Name *string `json:"name,omitempty"`

	// slug
	Slug *string `json:"slug,omitempty"`

	// updated at
	// Read Only: true
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// users
	// Read Only: true
	Users []*TeamUser `json:"users,omitempty"`
}

Team team swagger:model team

func (*Team) MarshalBinary

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

MarshalBinary interface implementation

func (*Team) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Team) Validate

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

Validate validates this team

type TeamUser

type TeamUser struct {

	// created at
	// Read Only: true
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// perm
	// Required: true
	// Enum: [user admin owner]
	Perm *string `json:"perm"`

	// team
	// Read Only: true
	Team *Team `json:"team,omitempty"`

	// team id
	// Required: true
	// Format: uuid
	TeamID *strfmt.UUID `json:"team_id"`

	// updated at
	// Read Only: true
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// user
	// Read Only: true
	User *User `json:"user,omitempty"`

	// user id
	// Required: true
	// Format: uuid
	UserID *strfmt.UUID `json:"user_id"`
}

TeamUser team user swagger:model team_user

func (*TeamUser) MarshalBinary

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

MarshalBinary interface implementation

func (*TeamUser) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TeamUser) Validate

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

Validate validates this team user

type TeamUserParams

type TeamUserParams struct {

	// perm
	// Required: true
	// Enum: [user admin owner]
	Perm *string `json:"perm"`

	// user
	// Required: true
	User *string `json:"user"`
}

TeamUserParams team user params swagger:model team_user_params

func (*TeamUserParams) MarshalBinary

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

MarshalBinary interface implementation

func (*TeamUserParams) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TeamUserParams) Validate

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

Validate validates this team user params

type User

type User struct {

	// active
	Active *bool `json:"active,omitempty"`

	// admin
	Admin *bool `json:"admin,omitempty"`

	// created at
	// Read Only: true
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// email
	Email *string `json:"email,omitempty"`

	// id
	// Read Only: true
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// password
	// Format: password
	Password *strfmt.Password `json:"password,omitempty"`

	// slug
	Slug *string `json:"slug,omitempty"`

	// teams
	// Read Only: true
	Teams []*TeamUser `json:"teams,omitempty"`

	// updated at
	// Read Only: true
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// username
	Username *string `json:"username,omitempty"`
}

User user swagger:model user

func (*User) MarshalBinary

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

MarshalBinary interface implementation

func (*User) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*User) Validate

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

Validate validates this user

type UserTeamParams

type UserTeamParams struct {

	// perm
	// Required: true
	// Enum: [user admin owner]
	Perm *string `json:"perm"`

	// team
	// Required: true
	Team *string `json:"team"`
}

UserTeamParams user team params swagger:model user_team_params

func (*UserTeamParams) MarshalBinary

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

MarshalBinary interface implementation

func (*UserTeamParams) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserTeamParams) Validate

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

Validate validates this user team params

type ValidationError

type ValidationError struct {

	// errors
	Errors []*ValidationErrorErrorsItems0 `json:"errors"`

	// message
	// Required: true
	Message *string `json:"message"`

	// status
	// Required: true
	Status *int64 `json:"status"`
}

ValidationError Validation error which shows failed fields swagger:model validation_error

func (*ValidationError) MarshalBinary

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

MarshalBinary interface implementation

func (*ValidationError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ValidationError) Validate

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

Validate validates this validation error

type ValidationErrorErrorsItems0

type ValidationErrorErrorsItems0 struct {

	// field
	Field string `json:"field,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

ValidationErrorErrorsItems0 validation error errors items0 swagger:model ValidationErrorErrorsItems0

func (*ValidationErrorErrorsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*ValidationErrorErrorsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ValidationErrorErrorsItems0) Validate

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

Validate validates this validation error errors items0

Jump to

Keyboard shortcuts

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