authz

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: 11 Imported by: 0

Documentation

Overview

Package classification Virtual Security Module

Authorization API

BasePath: /

swagger:meta

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthzManager

type AuthzManager struct {
	// contains filtered or unexported fields
}

func New

func New() *AuthzManager

func (*AuthzManager) Allowed

func (authzManager *AuthzManager) Allowed(ctx gocontext.Context, op model.Operation, namespacePath string) error

func (*AuthzManager) Close

func (authzManager *AuthzManager) Close() error

func (*AuthzManager) CreatePolicy

func (authzManager *AuthzManager) CreatePolicy(ctx gocontext.Context, policyEntry *model.AuthorizationPolicyEntry) (string, error)

func (*AuthzManager) DeletePolicy

func (authzManager *AuthzManager) DeletePolicy(ctx gocontext.Context, policyId string) error

func (*AuthzManager) GetPolicy

func (authzManager *AuthzManager) GetPolicy(ctx gocontext.Context, policyId string) (*model.AuthorizationPolicyEntry, error)

func (*AuthzManager) Init

func (authzManager *AuthzManager) Init(moduleInitContext *context.ModuleInitContext) error

func (*AuthzManager) RegisterEndpoints

func (authzManager *AuthzManager) RegisterEndpoints(mux *denco.Mux) []denco.Handler

func (*AuthzManager) Type

func (authzManager *AuthzManager) Type() string

type AuthzPolicyCreationResponse

type AuthzPolicyCreationResponse struct {
	// in:body
	Body struct {
		AuthzPolicyId string
	}
}

swagger:response AuthzPolicyCreationResponse

type AuthzPolicyEntryParam

type AuthzPolicyEntryParam struct {
	// in:body
	AuthzPolicyEntry model.AuthorizationPolicyEntry
}

swagger:parameters CreateAuthzPolicy

type AuthzPolicyEntryResponse

type AuthzPolicyEntryResponse struct {
	// in:body
	AuthzPolicyEntry model.AuthorizationPolicyEntry
}

swagger:response AuthzPolicyEntryResponse

Jump to

Keyboard shortcuts

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