clienthelper

package
v0.17.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 16 Imported by: 2

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