client

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIProvider

type APIProvider func() (KubeAPI, error)

type InCluster

type InCluster struct {
	KubeAPI
	// contains filtered or unexported fields
}

func (*InCluster) CheckAdmin

func (c *InCluster) CheckAdmin(ctx context.Context, token string) error

func (*InCluster) CreateTokenReview

func (c *InCluster) CreateTokenReview(ctx context.Context, tr *authv1.TokenReview, opts *metav1.CreateOptions) (*authv1.TokenReview, error)

type KubeAPI

type KubeAPI interface {
	CreateTokenReview(ctx context.Context, tr *authv1.TokenReview, opts *metav1.CreateOptions) (*authv1.TokenReview, error)
	CheckAdmin(ctx context.Context, token string) error
}

Interface for mocking

func NewInCluster

func NewInCluster() (KubeAPI, error)

Jump to

Keyboard shortcuts

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