context

package
v0.0.0-...-b9fdcee Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0, BSD-2-Clause, MIT Imports: 5 Imported by: 5

Documentation

Overview

Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause

Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause

Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause

Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause

Index

Constants

View Source
const RequestContextKeyUsername = RequestContextKey("username")

Variables

This section is empty.

Functions

func GetSystemRequestContext

func GetSystemRequestContext() gocontext.Context

func GetTestRequestContext

func GetTestRequestContext() gocontext.Context

Types

type AuthorizationManager

type AuthorizationManager interface {
	Allowed(ctx gocontext.Context, op model.Operation, namespacePath string) error
}

func GetTestAuthzManager

func GetTestAuthzManager() AuthorizationManager

type ModuleInitContext

type ModuleInitContext struct {
	Config          *config.Config
	DataStore       vds.DataStoreAdapter
	VirtualKeyStore *vks.VirtualKeyStore
	AuthzManager    AuthorizationManager
}

func NewModuleInitContext

func NewModuleInitContext(config *config.Config, dsAdapter vds.DataStoreAdapter, vKeyStore *vks.VirtualKeyStore, authzManager AuthorizationManager) *ModuleInitContext

type RequestContextKey

type RequestContextKey string

Jump to

Keyboard shortcuts

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