fake

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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

func (a *FakeAuth) CanICreate(_ context.Context, kind, namespace, sub string) (bool, error)

CanICreate returns 'true'

func (*FakeAuth) CanIDelete

func (a *FakeAuth) CanIDelete(_ context.Context, kind, namespace, sub string) (bool, error)

CanIDelete returns 'true'

func (*FakeAuth) CanIGet

func (a *FakeAuth) CanIGet(_ context.Context, kind, namespace, sub string) (bool, error)

CanIGet returns 'true'

func (*FakeAuth) CanIUpdate

func (a *FakeAuth) CanIUpdate(_ context.Context, kind, namespace, sub string) (bool, error)

CanIUpdate returns 'true'

Jump to

Keyboard shortcuts

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