Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
func Check(ctx context.Context, vClusterName string, globalFlags *flags.GlobalFlags, output string, log log.Logger) error
Check executes the check command in the backend by piping its output to stdout.
func Rotate ¶
func Rotate(ctx context.Context, vClusterName string, rotationCmd RotationCmd, globalFlags *flags.GlobalFlags, log log.Logger) error
Rotate triggers the rotate commands in the backend. Depending on if the virtual cluster has persistence it either: - Pauses the current virtual cluster, spawns an extra pod, executes the rotation and resumes the virtual cluster. - Executes the rotation directly in the currently running syncer pod.
Types ¶
type RotationCmd ¶
type RotationCmd string
const ( RotationCmdCerts RotationCmd = "rotate" RotationCmdCACerts RotationCmd = "rotate-ca" )
Click to show internal directories.
Click to hide internal directories.