Versions in this module Expand all Collapse all v1 v1.0.0 Jul 3, 2020 Changes in this version + const ApplyAnnotationsFlag + const DefaultErrorExitCode + var ALL_NAMESPACE = "" + var AUTH_API_VERSION = "client.authentication.k8s.io/v1alpha1" + var AUTH_COMMAND = "aws" + var AWS_IAM_ANNOTATION = "eks.amazonaws.com/role-arn" + var Blue = color.New(color.FgBlue).PrintlnFunc() + var CA_FINGERPRINT = "9e99a48a9960b14926bb7f3b02e22da2b0ab7280" + var Cyan = color.New(color.FgCyan).PrintlnFunc() + var DEFAULT_NODE_LABEL_FILTERS = []string + var ErrExit = fmt.Errorf("exit") + var FlagRegistry = []Flag + var Green = color.New(color.FgGreen).PrintlnFunc() + var KUBENX_HOMEDIR = ".kubenx" + var NO_FILE_EXCEPTION = "No file exists... Please check the file path" + var NO_STRING = "" + var Red = color.New(color.FgRed).PrintlnFunc() + var SSH_DEFAULT_PATH = "ssh" + var TAG_PREFIX = "kubernetes" + var TARGET_DEFAULT_PORT = "22" + var Yellow = color.New(color.FgYellow).PrintlnFunc() + func AddApplyAnnotationFlags(cmd *cobra.Command) + func AddApplyAnnotationVarFlags(cmd *cobra.Command, applyAnnotation *bool) + func AddDryRunFlag(cmd *cobra.Command) + func AddFilenameOptionFlags(cmd *cobra.Command, options *resource.FilenameOptions, usage string) + func AddGeneratorFlags(cmd *cobra.Command, defaultGenerator string) + func AddIncludeUninitializedFlag(cmd *cobra.Command) + func AddJsonFilenameFlag(flags *pflag.FlagSet, value *[]string, usage string) + func AddKustomizeFlag(flags *pflag.FlagSet, value *string) + func AddPodRunningTimeoutFlag(cmd *cobra.Command, defaultTimeout time.Duration) + func AddServerSideApplyFlags(cmd *cobra.Command) + func AddSourceToErr(verb string, source string, err error) error + func AddValidateFlags(cmd *cobra.Command) + func AddValidateOptionFlags(cmd *cobra.Command, options *ValidateOptions) + func BehaviorOnFatal(f func(string, int)) + func BytesToString(bytes []byte) (s string) + func CheckErr(err error) + func DefaultBehaviorOnFatal() + func DefaultSubCommandRun(out io.Writer) func(c *cobra.Command, args []string) + func DumpReaderToFile(reader io.Reader, filename string) error + func GetCurrentCluster() (string, error) + func GetDryRunFlag(cmd *cobra.Command) bool + func GetFieldManagerFlag(cmd *cobra.Command) string + func GetFlagBool(cmd *cobra.Command, flag string) bool + func GetFlagDuration(cmd *cobra.Command, flag string) time.Duration + func GetFlagInt(cmd *cobra.Command, flag string) int + func GetFlagInt32(cmd *cobra.Command, flag string) int32 + func GetFlagInt64(cmd *cobra.Command, flag string) int64 + func GetFlagString(cmd *cobra.Command, flag string) string + func GetFlagStringArray(cmd *cobra.Command, flag string) []string + func GetFlagStringSlice(cmd *cobra.Command, flag string) []string + func GetForceConflictsFlag(cmd *cobra.Command) bool + func GetPodRunningTimeoutFlag(cmd *cobra.Command) (time.Duration, error) + func GetResourcesAndPairs(args []string, pairType string) (resources []string, pairArgs []string, err error) + func GetServerSideApplyFlag(cmd *cobra.Command) bool + func IsFilenameSliceEmpty(filenames []string, directory string) bool + func IsSiblingCommandExists(cmd *cobra.Command, targetCmdName string) bool + func ManualStrip(file []byte) []byte + func Merge(codec runtime.Codec, dst runtime.Object, fragment string) (runtime.Object, error) + func MultilineError(prefix string, err error) string + func MultipleErrors(prefix string, errs []error) string + func NewCmdCluster() *cobra.Command + func NewCmdCompletion() *cobra.Command + func NewCmdConfig() *cobra.Command + func NewCmdConfigDelete() *cobra.Command + func NewCmdConfigInit() *cobra.Command + func NewCmdConfigUpdate() *cobra.Command + func NewCmdContext() *cobra.Command + func NewCmdGet() *cobra.Command + func NewCmdGetCluster() *cobra.Command + func NewCmdGetClusterRole() *cobra.Command + func NewCmdGetClusterRoleBinding() *cobra.Command + func NewCmdGetConfigMap() *cobra.Command + func NewCmdGetDeployment() *cobra.Command + func NewCmdGetIngress() *cobra.Command + func NewCmdGetNode() *cobra.Command + func NewCmdGetPod() *cobra.Command + func NewCmdGetRole() *cobra.Command + func NewCmdGetRolebinding() *cobra.Command + func NewCmdGetSecret() *cobra.Command + func NewCmdGetService() *cobra.Command + func NewCmdGetServiceAccount() *cobra.Command + func NewCmdInitCluster() *cobra.Command + func NewCmdInspect() *cobra.Command + func NewCmdInspectNode() *cobra.Command + func NewCmdNamespace() *cobra.Command + func NewCmdPortForward() *cobra.Command + func NewCmdSearch() *cobra.Command + func NewCmdSearchLabel() *cobra.Command + func NewCmdVersion() *cobra.Command + func NewKubenxCommand(out, err io.Writer) *cobra.Command + func ParsePairs(pairArgs []string, pairType string, supportRemove bool) (newPairs map[string]string, removePairs []string, err error) + func PrintErrorWithCauses(err error, errOut io.Writer) bool + func RequireNoArguments(c *cobra.Command, args []string) + func RunCompletion(out io.Writer, boilerPlate string, cmd *cobra.Command, args []string) error + func SetCommandFlags(cmd *cobra.Command) + func StandardErrorMessage(err error) (string, bool) + func StringToBytes(str string) []byte + func StripComments(file []byte) []byte + func UsageErrorf(cmd *cobra.Command, format string, args ...interface{}) error + func Warning(cmdErr io.Writer, newGeneratorName, oldGeneratorName string) + type Bastion struct + Servers []Server + type Builder interface + AddCommand func(cmd *cobra.Command) Builder + AddConfigGroups func() Builder + AddGetGroups func() Builder + AddInspectGroups func() Builder + AddSearchGroups func() Builder + RunWithArgs func(action func(context.Context, io.Writer, []string) error) *cobra.Command + RunWithArgsAndCmd func(action func(context.Context, io.Writer, *cobra.Command, []string) error) *cobra.Command + RunWithNoArgs func(action func(context.Context, io.Writer) error) *cobra.Command + SetAliases func(alias []string) Builder + SetFlags func() Builder + WithDescription func(description string) Builder + WithLongDescription func(description string) Builder + func NewCmd(use string) Builder + type Executor struct + BetaV1Client *v1beta1.ExtensionsV1beta1Client + Client *kubernetes.Clientset + Config *rest.Config + Context context.Context + EC2 *ec2.EC2 + EKS *eks.EKS + IAM *iam.IAM + Namespace string + RbacV1Client *rbacv1.RbacV1Client + type Flag struct + DefValue interface{} + DefValuePerCommand map[string]interface{} + DefinedOn []string + FlagAddMethod string + Hidden bool + Name string + Shorthand string + Usage string + Value interface{} + type PortForwardAPodRequest struct + LocalPort int + Pod corev1.Pod + PodPort int + ReadyCh chan struct{} + RestConfig *rest.Config + StopCh <-chan struct{} + Streams genericclioptions.IOStreams + type SSHClient struct + func (c *SSHClient) Terminal(config *TerminalConfig) *remoteShell + type SSHConfig struct + type ScaleClientFunc func(genericclioptions.RESTClientGetter) (scale.ScalesGetter, error) + var ScaleClientFn ScaleClientFunc = scaleClient + type Server struct + Addr string + Key string + KeyFile string + Port string + User string + type TerminalConfig struct + Height int + Modes ssh.TerminalModes + Term string + Weight int + type ValidateOptions struct + EnableValidation bool