models

package
v0.0.0-...-c4f9bb7 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthClaims

type AuthClaims struct {
	Username string `json:"username"`
	jwt.StandardClaims
}

type Authentication

type Authentication struct {
	Id int `json:"id"`
	// additional properties
	AuthenticationType string `json:"authenticationType"`
	//
	AuthenticationProvider string `json:"authenticationProvider"`
	// login title
	LoginUrl string `json:"loginUrl,omitempty"`

	// login type
	RedirectUrl string `json:"redirectUrl,omitempty"`

	OauthClientId string

	OauthClientSecret string

	Enabled bool
}

func (*Authentication) Validate

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

Validate validates this login

type Configuration

type Configuration struct {

	// enabled
	Enabled bool `json:"enabled,omitempty"`

	// id
	// Required: true
	ID *string `json:"id"`

	// value
	Value string `json:"value,omitempty"`
}

func (*Configuration) MarshalBinary

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

MarshalBinary interface implementation

func (*Configuration) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Configuration) Validate

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

Validate validates this configuration

type Error

type Error struct {

	// code
	Code int32 `json:"code,omitempty"`

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

func (*Error) MarshalBinary

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

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Error) Validate

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

Validate validates this error

type GetUserPermissionOKBody

type GetUserPermissionOKBody []*Permission

func (GetUserPermissionOKBody) Validate

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

Validate validates this get user permission o k body

type Login

type Login struct {

	// canonical Url
	CanonicalURL string `json:"canonicalUrl,omitempty"`

	// enabled
	Enabled bool `json:"enabled,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// is default
	IsDefault bool `json:"isDefault,omitempty"`

	// title
	// Required: true
	Title *string `json:"title"`

	// type
	Type string `json:"type,omitempty"`
}

func (*Login) MarshalBinary

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

MarshalBinary interface implementation

func (*Login) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Login) Validate

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

Validate validates this login

type LoginAdditionalProperties

type LoginAdditionalProperties []*Properties

func (LoginAdditionalProperties) Validate

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

Validate validates this login additional properties

type Permission

type Permission struct {

	// email
	// Required: true
	Email *string `json:"email"`

	// enabled
	Enabled bool `json:"enabled,omitempty"`

	// operation
	// Required: true
	Operation *string `json:"operation"`

	// resource
	// Required: true
	Resource *Resource `json:"resource"`
}

func (*Permission) MarshalBinary

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

MarshalBinary interface implementation

func (*Permission) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Permission) Validate

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

Validate validates this permission

type Properties

type Properties struct {

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

	// value
	Value string `json:"value,omitempty"`
}

func (*Properties) MarshalBinary

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

MarshalBinary interface implementation

func (*Properties) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Properties) Validate

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

Validate validates this properties

type Resource

type Resource struct {

	// description
	Description string `json:"description,omitempty"`

	// id
	// Required: true
	ID *string `json:"id"`
}

func (*Resource) MarshalBinary

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

MarshalBinary interface implementation

func (*Resource) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Resource) Validate

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

Validate validates this resource

type User

type User struct {
	Id string `json:"email"`
}

func (*User) AfterInsert

func (u *User) AfterInsert(db orm.DB) error

db Insert stmts

func (*User) String

func (u *User) String() string

func (*User) Validate

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

Validate validates this user

type UserToken

type UserToken struct {
	Id string `json:"tokenId"`
	// email
	UserId string
	// username
	TokenType string `json:"tokenType"`
	//Names
	Expiration time.Time
}

func (*UserToken) String

func (ut *UserToken) String() string

func (*UserToken) Validate

func (ut *UserToken) Validate(formats strfmt.Registry) error

Validate validates this user

Jump to

Keyboard shortcuts

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