fake

package
v0.0.0-...-283a394 Latest Latest
Warning

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

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

Documentation

Overview

Copyright Jetstack Ltd. See LICENSE for details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeReviewer

type FakeReviewer struct {
	CreateFn func(*authv1.TokenReview) (*authv1.TokenReview, error)
}

func New

func New() *FakeReviewer

func (*FakeReviewer) Create

func (*FakeReviewer) CreateContext

func (f *FakeReviewer) CreateContext(ctx context.Context, req *authv1.TokenReview) (*authv1.TokenReview, error)

func (*FakeReviewer) WithCreate

func (f *FakeReviewer) WithCreate(req *authv1.TokenReview, err error) *FakeReviewer

Jump to

Keyboard shortcuts

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