Documentation ¶
Overview ¶
Package authorization is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
Attributes is input for authority to make decision. It can be extended in future if required auth on resources like WorkflowType and TaskList
type Authorizer ¶
type Authorizer interface {
Authorize(ctx context.Context, attributes *Attributes) (Result, error)
}
Authorizer is an interface for authorization
func NewNopAuthorizer ¶
func NewNopAuthorizer() Authorizer
NewNopAuthorizer creates a no-op authority
type MockAuthorizer ¶ added in v0.12.0
type MockAuthorizer struct {
// contains filtered or unexported fields
}
MockAuthorizer is a mock of Authorizer interface
func NewMockAuthorizer ¶ added in v0.12.0
func NewMockAuthorizer(ctrl *gomock.Controller) *MockAuthorizer
NewMockAuthorizer creates a new mock instance
func (*MockAuthorizer) Authorize ¶ added in v0.12.0
func (m *MockAuthorizer) Authorize(ctx context.Context, attributes *Attributes) (Result, error)
Authorize mocks base method
func (*MockAuthorizer) EXPECT ¶ added in v0.12.0
func (m *MockAuthorizer) EXPECT() *MockAuthorizerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockAuthorizerMockRecorder ¶ added in v0.12.0
type MockAuthorizerMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizerMockRecorder is the mock recorder for MockAuthorizer
func (*MockAuthorizerMockRecorder) Authorize ¶ added in v0.12.0
func (mr *MockAuthorizerMockRecorder) Authorize(ctx, attributes interface{}) *gomock.Call
Authorize indicates an expected call of Authorize
Click to show internal directories.
Click to hide internal directories.