fake

package
v1.1.12 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 0 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(kind, namespace string) (bool, error)

CanICreate returns 'true'

func (*FakeAuth) CanIDelete

func (a *FakeAuth) CanIDelete(kind, namespace string) (bool, error)

CanIDelete returns 'true'

func (*FakeAuth) CanIGet

func (a *FakeAuth) CanIGet(kind, namespace string) (bool, error)

CanIGet returns 'true'

func (*FakeAuth) CanIUpdate

func (a *FakeAuth) CanIUpdate(kind, namespace string) (bool, error)

CanIUpdate returns 'true'

Jump to

Keyboard shortcuts

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