auth

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account added in v1.3.0

type Account struct {
	AccountID          uuid.UUID                    `json:"accountID" gorm:"primary_key"`
	Email              string                       `json:"email"`
	Password           string                       `json:"password"`
	Username           string                       `json:"username"`
	IsConfirmed        bool                         `json:"isConfirmed"`
	IsApplicationAdmin bool                         `json:"isApplicationAdmin"`
	CreatedAt          time.Time                    `json:"createdAt"`
	UpdatedAt          time.Time                    `json:"updatedAt"`
	Companies          []accountEntities.Company    `gorm:"many2many:account_company;association_jointable_foreignkey:company_id;jointable_foreignkey:account_id"`       // nolint
	Repositories       []accountEntities.Repository `gorm:"many2many:account_repository;association_jointable_foreignkey:repository_id;jointable_foreignkey:account_id"` // nolint
}

nolint

func (*Account) GetTable added in v1.3.0

func (a *Account) GetTable() string

func (*Account) IsAccountConfirmed added in v1.3.0

func (a *Account) IsAccountConfirmed() error

func (*Account) IsNotApplicationAdminAccount added in v1.3.0

func (a *Account) IsNotApplicationAdminAccount() bool

func (*Account) SetAccountData added in v1.3.0

func (a *Account) SetAccountData() *Account

func (*Account) SetAccountID added in v1.3.0

func (a *Account) SetAccountID()

func (*Account) SetCreatedAt added in v1.3.0

func (a *Account) SetCreatedAt()

func (*Account) SetIsConfirmed added in v1.3.0

func (a *Account) SetIsConfirmed() *Account

func (*Account) SetPasswordHash added in v1.3.0

func (a *Account) SetPasswordHash()

func (*Account) SetUpdatedAt added in v1.3.0

func (a *Account) SetUpdatedAt() *Account

func (*Account) ToBytes added in v1.3.0

func (a *Account) ToBytes() []byte

func (*Account) ToMap added in v1.3.0

func (a *Account) ToMap() map[string]interface{}

func (*Account) ToUpdateMap added in v1.4.0

func (a *Account) ToUpdateMap() map[string]interface{}

func (*Account) ToUpdatePasswordMap added in v1.4.0

func (a *Account) ToUpdatePasswordMap() map[string]interface{}

func (*Account) UpdationValidate added in v1.3.0

func (a *Account) UpdationValidate() error

func (*Account) Validate added in v1.3.0

func (a *Account) Validate() error

type ConfigAuth

type ConfigAuth struct {
	ApplicationAdminEnable bool                   `json:"applicationAdminEnable"`
	DisabledBroker         bool                   `json:"disabledBroker"`
	AuthType               auth.AuthorizationType `json:"authType"`
}

func ParseInterfaceToConfigAuth

func ParseInterfaceToConfigAuth(content interface{}) (configAuth ConfigAuth, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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