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 ¶
- type AuthzManager
- func (authzManager *AuthzManager) Allowed(ctx gocontext.Context, op model.Operation, namespacePath string) error
- func (authzManager *AuthzManager) Close() error
- func (authzManager *AuthzManager) CreatePolicy(ctx gocontext.Context, policyEntry *model.AuthorizationPolicyEntry) (string, error)
- func (authzManager *AuthzManager) DeletePolicy(ctx gocontext.Context, policyId string) error
- func (authzManager *AuthzManager) GetPolicy(ctx gocontext.Context, policyId string) (*model.AuthorizationPolicyEntry, error)
- func (authzManager *AuthzManager) Init(moduleInitContext *context.ModuleInitContext) error
- func (authzManager *AuthzManager) RegisterEndpoints(mux *denco.Mux) []denco.Handler
- func (authzManager *AuthzManager) Type() string
- type AuthzPolicyCreationResponse
- type AuthzPolicyEntryParam
- type AuthzPolicyEntryResponse
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) 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
Click to show internal directories.
Click to hide internal directories.