security

package
v0.0.0-...-9471f5d Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	mock.Mock
}

Context is an autogenerated mock type for the Context type

func NewContext

func NewContext(t interface {
	mock.TestingT
	Cleanup(func())
}) *Context

NewContext creates a new instance of Context. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Context) Can

func (_m *Context) Can(ctx context.Context, action types.Action, resource types.Resource) bool

Can provides a mock function with given fields: ctx, action, resource

func (*Context) GetUsername

func (_m *Context) GetUsername() string

GetUsername provides a mock function with given fields:

func (*Context) IsAuthenticated

func (_m *Context) IsAuthenticated() bool

IsAuthenticated provides a mock function with given fields:

func (*Context) IsSolutionUser

func (_m *Context) IsSolutionUser() bool

IsSolutionUser provides a mock function with given fields:

func (*Context) IsSysAdmin

func (_m *Context) IsSysAdmin() bool

IsSysAdmin provides a mock function with given fields:

func (*Context) Name

func (_m *Context) Name() string

Name provides a mock function with given fields:

Jump to

Keyboard shortcuts

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