kubeauth

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, p Plugin) error

Register registers the given auth plugin

func UpdateClient

func UpdateClient(
	conn *grpc.ClientConn,
	ctx context.Context,
	cloudCredentialName string,
	cloudCredentialUID string,
	orgID string,
	restConfig *rest.Config,
	clientConfig *clientcmd.Config,
) (string, error)

UpdateClient Updates the k8s client config with the required info from the cloud credential. It will return the new kubeconfig with which the client was updated

func UpdateClientByCredObject added in v1.2.1

func UpdateClientByCredObject(
	cloudCred *api.CloudCredentialObject,
	restConfig *rest.Config,
	clientConfig *clientcmd.Config,
) (string, error)

UpdateClientByCredObject Updates the k8s client config with the required info from the provided cloud credential object

Types

type Plugin

type Plugin interface {
	UpdateClient(
		conn *grpc.ClientConn,
		ctx context.Context,
		cloudCredentialName string,
		cloudCredentialUID string,
		orgID string,
		restConfig *rest.Config,
		clientConfig *clientcmd.Config,
	) (bool, string, error)

	UpdateClientByCredObject(
		cloudCred *api.CloudCredentialObject,
		restConfig *rest.Config,
		clientConfig *clientcmd.Config,
	) (bool, string, error)
}

Plugin is the interface the plugins need to implement

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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