clienthelper

package
v0.6.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 23 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func Apply

func ConvertExtra

func ConvertExtra(orig map[string][]string) map[string]authv1.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 CurrentPodName added in v0.3.0

func CurrentPodName() (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