Documentation ¶
Index ¶
- type FakeAuth
- func (a *FakeAuth) CanICreate(_ context.Context, kind, namespace, sub string) (bool, error)
- func (a *FakeAuth) CanIDelete(_ context.Context, kind, namespace, sub string) (bool, error)
- func (a *FakeAuth) CanIGet(_ context.Context, kind, namespace, sub string) (bool, error)
- func (a *FakeAuth) CanIUpdate(_ context.Context, kind, namespace, sub string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAuth ¶
type FakeAuth struct{}
FakeAuth providers implementation for testing, retuning true for all operations
func NewFakeAuth ¶
func NewFakeAuth() *FakeAuth
NewFakeAuth returns a new instance of Fake Auth that returns true for each operation
func (*FakeAuth) CanICreate ¶
CanICreate returns 'true'
func (*FakeAuth) CanIDelete ¶
CanIDelete returns 'true'
Click to show internal directories.
Click to hide internal directories.