role

package
v0.0.0-...-46e61fc Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	AccountID uuid.UUID
	Username  string
	Email     string
}

type Data

type Data struct {
	Role         account.Role `json:"role"`
	AccountID    uuid.UUID    `json:"accountID" swaggerignore:"true"`
	WorkspaceID  uuid.UUID    `json:"workspaceID" swaggerignore:"true"`
	RepositoryID uuid.UUID    `json:"repositoryID" swaggerignore:"true"`
}

func (*Data) SetDataIDs

func (d *Data) SetDataIDs(accountID uuid.UUID, workspaceID, repositoryID string) *Data

func (*Data) ToBytes

func (d *Data) ToBytes() []byte

func (*Data) Validate

func (d *Data) Validate() error

type Response

type Response struct {
	AccountID uuid.UUID    `json:"accountID,omitempty"`
	Email     string       `json:"email,omitempty"`
	Username  string       `json:"username,omitempty"`
	Role      account.Role `json:"role,omitempty"`
}

type UserData

type UserData struct {
	Role         account.Role `json:"role"`
	Email        string       `json:"email"`
	AccountID    uuid.UUID    `json:"accountID"`
	Username     string       `json:"username"`
	WorkspaceID  uuid.UUID    `json:"workspaceID" swaggerignore:"true"`
	RepositoryID uuid.UUID    `json:"repositoryID" swaggerignore:"true"`
}

func (*UserData) SetIDs

func (u *UserData) SetIDs(workspaceID, repositoryID string) *UserData

func (*UserData) SetWorkspaceIDAndAccountData

func (u *UserData) SetWorkspaceIDAndAccountData(workspaceID string, data *proto.GetAccountDataResponse) *UserData

func (*UserData) ToBytes

func (u *UserData) ToBytes() []byte

func (*UserData) Validate

func (u *UserData) Validate() error

Jump to

Keyboard shortcuts

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