clienthelper

package
v0.19.5 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultScheme = runtime.NewScheme()
)

Functions

func ConvertExtra

func ConvertExtra(orig map[string][]string) map[string]authorizationv1.ExtraValue

ConvertExtra converts a string array map into the correct kubernetes auth extra value type

func ConvertExtraFrom

func ConvertExtraFrom(orig map[string]authenticationv1.ExtraValue) map[string][]string

ConvertExtraFrom converts a string array map into the correct kubernetes auth extra value type

func CurrentNamespace

func CurrentNamespace() (string, error)

func GVKFrom

func GVKFrom(obj runtime.Object, scheme *runtime.Scheme) (schema.GroupVersionKind, error)

func GetByIndex

func GetByIndex(ctx context.Context, c client.Client, obj runtime.Object, index, value string) error

func NewImpersonatingClient added in v0.3.0

func NewImpersonatingClient(config *rest.Config, mapper meta.RESTMapper, user user.Info, scheme *runtime.Scheme) (client.Client, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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