cli

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const ASCIILogo1 = `` /* 235-byte string literal not displayed */

ASCIILogo1 is an ascii logo of noobaa

View Source
const ASCIILogo2 = `` /* 244-byte string literal not displayed */

ASCIILogo2 is an ascii logo of noobaa

Variables

This section is empty.

Functions

func CurrentNamespace

func CurrentNamespace() string

func ForEachCommand

func ForEachCommand(cmd *cobra.Command, handler func(c *cobra.Command))

Types

type CLI

type CLI struct {
	Client client.Client
	Ctx    context.Context
	Log    *logrus.Entry

	Namespace        string
	SystemName       string
	StorageClassName string
	NooBaaImage      string
	OperatorImage    string
	ImagePullSecret  string

	// Commands
	Cmd          *cobra.Command
	CmdOptions   *cobra.Command
	CmdVersion   *cobra.Command
	CmdInstall   *cobra.Command
	CmdUninstall *cobra.Command
	CmdStatus    *cobra.Command
	CmdBucket    *cobra.Command
	CmdCrd       *cobra.Command
	CmdOlmHub    *cobra.Command
	CmdOlmLocal  *cobra.Command
	CmdOperator  *cobra.Command
	CmdSystem    *cobra.Command
}

func New

func New() *CLI

func (*CLI) BucketCreate

func (cli *CLI) BucketCreate(args []string)

func (*CLI) BucketDelete

func (cli *CLI) BucketDelete(args []string)

func (*CLI) BucketList

func (cli *CLI) BucketList()

func (*CLI) CrdWaitReady

func (cli *CLI) CrdWaitReady(crd *apiextv1beta1.CustomResourceDefinition) (bool, error)

func (*CLI) CrdsCreate

func (cli *CLI) CrdsCreate()

func (*CLI) CrdsDelete

func (cli *CLI) CrdsDelete()

func (*CLI) CrdsStatus

func (cli *CLI) CrdsStatus()

func (*CLI) CrdsWaitReady

func (cli *CLI) CrdsWaitReady()

func (*CLI) CrdsYaml

func (cli *CLI) CrdsYaml()

func (*CLI) GetNBClient

func (cli *CLI) GetNBClient() nb.Client

func (*CLI) HubInstall

func (cli *CLI) HubInstall()

func (*CLI) HubStatus

func (cli *CLI) HubStatus()

func (*CLI) HubUninstall

func (cli *CLI) HubUninstall()

func (*CLI) Install

func (cli *CLI) Install()

func (*CLI) OperatorInstall

func (cli *CLI) OperatorInstall()

func (*CLI) OperatorLocalInstall

func (cli *CLI) OperatorLocalInstall()

func (*CLI) OperatorLocalReconcile

func (cli *CLI) OperatorLocalReconcile()

func (*CLI) OperatorLocalUninstall

func (cli *CLI) OperatorLocalUninstall()

func (*CLI) OperatorStatus

func (cli *CLI) OperatorStatus()

func (*CLI) OperatorUninstall

func (cli *CLI) OperatorUninstall()

func (*CLI) OperatorYamls

func (cli *CLI) OperatorYamls()

func (*CLI) Run

func (cli *CLI) Run()

func (*CLI) Status

func (cli *CLI) Status()

func (*CLI) SystemCreate

func (cli *CLI) SystemCreate()

func (*CLI) SystemDelete

func (cli *CLI) SystemDelete()

func (*CLI) SystemList

func (cli *CLI) SystemList()

func (*CLI) SystemStatus

func (cli *CLI) SystemStatus()

func (*CLI) SystemWaitReady

func (cli *CLI) SystemWaitReady()

func (*CLI) SystemYaml

func (cli *CLI) SystemYaml()

func (*CLI) Uninstall

func (cli *CLI) Uninstall()

func (*CLI) Version

func (cli *CLI) Version()

type HubConf

type HubConf struct {
	Objects []*unstructured.Unstructured
}

type OperatorConf

type OperatorConf struct {
	NS                 *corev1.Namespace
	SA                 *corev1.ServiceAccount
	Role               *rbacv1.Role
	RoleBinding        *rbacv1.RoleBinding
	ClusterRole        *rbacv1.ClusterRole
	ClusterRoleBinding *rbacv1.ClusterRoleBinding
	Deployment         *appsv1.Deployment
}

type Runnable

type Runnable func(cmd *cobra.Command, args []string)

func ToRunnable

func ToRunnable(f func()) Runnable

func ToRunnableArgs

func ToRunnableArgs(f func(args []string)) Runnable

Jump to

Keyboard shortcuts

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