scopes

package
v0.0.0-...-4946764 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UserProfileRead allow the app to view the user's profile
	UserProfileRead = Scope(1 << iota)

	// UserRead allows the app to view the user's profile
	UserRead

	// UserWrite allow the app to write to the user's profile
	UserWrite

	// ViewablesRead View your viewable data
	ViewablesRead

	// DataRead view your data
	DataRead

	// DataWrite manage your data
	DataWrite

	// DataCreate write your data
	DataCreate

	// DataSearch search across your data
	DataSearch

	// BucketCreate creates new buckets
	BucketCreate

	// BucketRead view your buckets
	BucketRead

	// BucketUpdate update your buckets
	BucketUpdate

	// BucketDelete delete your buckets
	BucketDelete

	// CodeAll author or execute your code
	CodeAll

	// AccountRead view your product and service account
	AccountRead

	// AccountWrite manage your product and service accounts
	AccountWrite
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Scope

type Scope uint64

Scope represents a set of requested scopes https://forge.autodesk.com/en/docs/oauth/v2/developers_guide/scopes/

func For

func For(val string) Scope

For takes a space seprated list of scopes and returns the Scope set for it.

func (Scope) Allows

func (s Scope) Allows(s1 Scope) bool

Allows checks to see if s allows for all scopes in s1

func (Scope) IsValid

func (s Scope) IsValid() bool

IsValid checks to see if at least one known scope is encoded

func (Scope) String

func (s Scope) String() string

String will return the string version of the set of scopes

Jump to

Keyboard shortcuts

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