bqrole

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	READER = "READER"
	WRITER = "WRITER"
	OWNER  = "OWNER"
)

Variables

This section is empty.

Functions

func DatasetRole

func DatasetRole(role string) (bq.AccessRole, error)

func PermitDataset

func PermitDataset(role bq.AccessRole, project string, users, datasets []string) error

func PermitProject

func PermitProject(role, project string, users []string) error

func ProjectRole

func ProjectRole(role string) (string, error)

Types

type ProjectPolicy

type ProjectPolicy struct {
	Bindings []struct {
		Role    string   `json:"role"`
		Members []string `json:"members"`
	} `json:"bindings"`
	Etag    string `json:"etag"`
	Version int    `json:"version"`
}

Jump to

Keyboard shortcuts

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