Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizationData ¶
type AuthorizationData struct {
Token string `json:"token"`
Role authEnums.HorusecRoles `json:"role"`
CompanyID uuid.UUID `json:"companyID"`
RepositoryID uuid.UUID `json:"repositoryID"`
}
func (*AuthorizationData) ToBytes ¶
func (a *AuthorizationData) ToBytes() []byte
func (*AuthorizationData) Validate ¶
func (a *AuthorizationData) Validate() error
type ConfigAuth ¶
type ConfigAuth struct {
ApplicationAdminEnable bool `json:"applicationAdminEnable"`
AuthType auth.AuthorizationType `json:"authType"`
}
func ParseInterfaceToConfigAuth ¶
func ParseInterfaceToConfigAuth(content interface{}) (configAuth ConfigAuth, err error)
type Credentials ¶
type Credentials struct {
Username string `json:"username"`
Password string `json:"password"`
Otp string `json:"otp"`
}
func (*Credentials) ToBytes ¶
func (c *Credentials) ToBytes() []byte
func (*Credentials) Validate ¶
func (c *Credentials) Validate() error
Click to show internal directories.
Click to hide internal directories.