model

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Principal

type Principal struct {
	User         User
	RoleBindings []ProjectRoleBinding `yaml:"role_bindings"`
}

Principal the principal of a request

type ProjectRoleBinding

type ProjectRoleBinding struct {
	Role    Role
	Project string
}

ProjectRoleBinding defines User role bindings with the project

type Role

type Role string

Role for user

var (
	// None role for User doesn't grant any rights
	None Role = "none"
	// Viewer role for User grants view and listing for backups
	Viewer Role = "viewer"
	// Owner role for User grant all rights to the backups
	Owner Role = "owner"
)

func (Role) String

func (r Role) String() string

type User

type User struct {
	Email string
}

User object

Jump to

Keyboard shortcuts

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