operator

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package operator GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

View Source
var AccountContext = ioutil.ContextFor[*Account](nil)

Functions

func NeedAdminRole

func NeedAdminRole(roleTypeAndHigher group.RoleType) expression.Expression

func NeedGroupRole

func NeedGroupRole(roleTypeAndHigher group.RoleType) expression.Expression

func WhenGroupEnv

func WhenGroupEnv(envType group.EnvType, then expression.Expression) expression.Expression

Types

type Account

type Account struct {
	account.User
	AccountType account.Type                `json:"accountType"`
	AdminRole   group.RoleType              `json:"adminRole"`
	GroupRoles  map[group.ID]group.RoleType `json:"groupRoles,omitempty"`
}

func (*Account) InjectContext

func (a *Account) InjectContext(ctx context.Context) context.Context

func (Account) RuntimeDoc

func (v Account) RuntimeDoc(names ...string) ([]string, bool)

type ValidAccount

type ValidAccount struct {
	// Bearer access_token
	Authorization string `name:"Authorization" in:"header"`
}

func (*ValidAccount) Output

func (c *ValidAccount) Output(ctx context.Context) (interface{}, error)

func (ValidAccount) RuntimeDoc

func (v ValidAccount) RuntimeDoc(names ...string) ([]string, bool)

Jump to

Keyboard shortcuts

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