fake

package
v0.31.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 144

Documentation

Overview

Package fake has the automatically generated clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeAuthenticationV1

type FakeAuthenticationV1 struct {
	*testing.Fake
}

func (*FakeAuthenticationV1) RESTClient

func (c *FakeAuthenticationV1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*FakeAuthenticationV1) SelfSubjectReviews added in v0.28.0

func (c *FakeAuthenticationV1) SelfSubjectReviews() v1.SelfSubjectReviewInterface

func (*FakeAuthenticationV1) TokenReviews

func (c *FakeAuthenticationV1) TokenReviews() v1.TokenReviewInterface

type FakeSelfSubjectReviews added in v0.28.0

type FakeSelfSubjectReviews struct {
	Fake *FakeAuthenticationV1
}

FakeSelfSubjectReviews implements SelfSubjectReviewInterface

func (*FakeSelfSubjectReviews) Create added in v0.28.0

func (c *FakeSelfSubjectReviews) Create(ctx context.Context, selfSubjectReview *v1.SelfSubjectReview, opts metav1.CreateOptions) (result *v1.SelfSubjectReview, err error)

Create takes the representation of a selfSubjectReview and creates it. Returns the server's representation of the selfSubjectReview, and an error, if there is any.

type FakeTokenReviews

type FakeTokenReviews struct {
	Fake *FakeAuthenticationV1
}

FakeTokenReviews implements TokenReviewInterface

func (*FakeTokenReviews) Create

func (c *FakeTokenReviews) Create(ctx context.Context, tokenReview *v1.TokenReview, opts metav1.CreateOptions) (result *v1.TokenReview, err error)

Create takes the representation of a tokenReview and creates it. Returns the server's representation of the tokenReview, and an error, if there is any.

Jump to

Keyboard shortcuts

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