Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.