fake

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 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 added in v0.3.0

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