metadata

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Namespace

type Namespace struct {
	ID          vanus.ID  `json:"id"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	CreatedAt   time.Time `json:"created_at"`
	UpdatedAt   time.Time `json:"updated_at"`
}

type Token

type Token struct {
	ID             vanus.ID  `json:"id"`
	UserIdentifier string    `json:"user_identifier"`
	Token          string    `json:"token"`
	CreatedAt      time.Time `json:"created_at"`
	UpdatedAt      time.Time `json:"updated_at"`
}

type User

type User struct {
	Identifier  string    `json:"identifier"`
	Description string    `json:"description,omitempty"`
	CreatedAt   time.Time `json:"created_at"`
	UpdatedAt   time.Time `json:"updated_at"`
}

type UserRole

type UserRole struct {
	UserIdentifier string                     `json:"user_identifier"`
	RoleID         string                     `json:"role_id,,omitempty"`
	ResourceID     vanus.ID                   `json:"resource_id,omitempty"`
	ResourceKind   authorization.ResourceKind `json:"resource_kind,omitempty"`
	Role           authorization.Role         `json:"role,omitempty"`
	CreatedAt      time.Time                  `json:"created_at"`
	UpdatedAt      time.Time                  `json:"updated_at"`
}

func (*UserRole) BuiltIn

func (ur *UserRole) BuiltIn() bool

func (*UserRole) GetRoleID

func (ur *UserRole) GetRoleID() string

func (*UserRole) Validate

func (ur *UserRole) Validate() error

Jump to

Keyboard shortcuts

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