plugin

package
v1.15.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package plugin contains the common behaviors of the kubectl-cnpg subcommand

Index

Constants

View Source
const (
	// OutputFormatText means just use a human-readable output
	OutputFormatText = "text"

	// OutputFormatJSON means use machine-readable JSON output
	OutputFormatJSON = "json"

	// OutputFormatYAML means use machine-readable JSON output
	OutputFormatYAML = "yaml"
)

Variables

View Source
var (
	// Namespace to operate in
	Namespace string

	// Config is the Kubernetes configuration used
	Config *rest.Config

	// Client is the controller-runtime client
	Client client.Client
)

Functions

func CreateKubernetesClient

func CreateKubernetesClient(configFlags *genericclioptions.ConfigFlags) error

CreateKubernetesClient creates a k8s client to be used inside the kubectl-cnpg utility

func Print

func Print(o interface{}, format OutputFormat, writer io.Writer) error

Print output an object via an io.Writer in a machine-readable way

Types

type OutputFormat

type OutputFormat string

OutputFormat represent the output format supported by this command

Directories

Path Synopsis
Package certificate implement the kubectl-cnpg certificate command
Package certificate implement the kubectl-cnpg certificate command
Package fence implements a command to fence instances in a cluster
Package fence implements a command to fence instances in a cluster
Package maintenance implements the kubectl-cnpg maintenance sub-command
Package maintenance implements the kubectl-cnpg maintenance sub-command
Package promote implement the kubectl-cnpg promote command
Package promote implement the kubectl-cnpg promote command
Package reload implements a command to trigger a reconciliation loop for a cluster
Package reload implements a command to trigger a reconciliation loop for a cluster
Package report implements the kubectl-cnpg report command
Package report implements the kubectl-cnpg report command
Package restart implements a command to rollout restart a cluster or restart a single instance
Package restart implements a command to rollout restart a cluster or restart a single instance
Package status implements the kubectl-cnpg status command
Package status implements the kubectl-cnpg status command

Jump to

Keyboard shortcuts

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