actions

package
v1.87.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrHalt = errors.New("interrupt")

Functions

func Run

func Run(ctx *Context, api *API, script, name string, timeout time.Duration, allowedToFail bool) error

Types

type API

type API map[string]interface{}

func (*API) SetExternalUser

func (a *API) SetExternalUser(user *domain.ExternalUser) *API

func (*API) SetHuman

func (a *API) SetHuman(human *domain.Human) *API

func (*API) SetMetadata

func (a *API) SetMetadata(metadata *[]*domain.Metadata) *API

func (*API) SetUserGrants

func (a *API) SetUserGrants(usergrants *[]UserGrant) *API

type Context

type Context map[string]interface{}

func (*Context) SetToken

func (c *Context) SetToken(t *oidc.Tokens) *Context

type UserGrant

type UserGrant struct {
	ProjectID      string
	ProjectGrantID string
	Roles          []string
}

Jump to

Keyboard shortcuts

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