command

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Copyright © 2020 Marvin

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Concurrency int
	Format      string
	Ssh         string
	SshTimeout  uint64
	WaitTimeout uint64
	Version     bool
	MetaDir     string
	MirrorDir   string
	SkipConfirm bool
}

Refer: https://github.com/pingcap/tiup cluster or dm component functions

func (*App) AppDeploy

func (a *App) AppDeploy() component.Cmder

func (*App) AppDestroy

func (a *App) AppDestroy() component.Cmder

func (*App) AppDisable

func (a *App) AppDisable() component.Cmder

func (*App) AppDisplay

func (a *App) AppDisplay() component.Cmder

func (*App) AppEditConfig

func (a *App) AppEditConfig() component.Cmder

func (*App) AppEnable

func (a *App) AppEnable() component.Cmder

func (*App) AppList

func (a *App) AppList() component.Cmder

func (*App) AppPatch

func (a *App) AppPatch() component.Cmder

func (*App) AppReload

func (a *App) AppReload() component.Cmder

func (*App) AppRestart

func (a *App) AppRestart() component.Cmder

func (*App) AppScaleIn

func (a *App) AppScaleIn() component.Cmder

func (*App) AppScaleOut

func (a *App) AppScaleOut() component.Cmder

func (*App) AppStart

func (a *App) AppStart() component.Cmder

func (*App) AppStop

func (a *App) AppStop() component.Cmder

func (*App) AppUpgrade

func (a *App) AppUpgrade() component.Cmder

func (*App) Cmd

func (a *App) Cmd() *cobra.Command

func (*App) PersistentPreRunE

func (a *App) PersistentPreRunE(cmd *cobra.Command, args []string) error

func (*App) RunE

func (a *App) RunE(cmd *cobra.Command, args []string) error

type AppDeploy

type AppDeploy struct {
	*App
	User           string // username to login to the SSH server
	SkipCreateUser bool   // don't create the user
	IdentityFile   string // path to the private key file
	UsePassword    bool   // use password instead of identity file for ssh connection
}

func (*AppDeploy) Cmd

func (a *AppDeploy) Cmd() *cobra.Command

func (*AppDeploy) Deploy

func (a *AppDeploy) Deploy(clusterName, clusterVersion, topoFile string, gOpt *operator.Options) error

func (*AppDeploy) RunE

func (a *AppDeploy) RunE(cmd *cobra.Command, args []string) error

type AppDestroy

type AppDestroy struct {
	*App
	RetainDataNodes []string
	RetainDataRoles []string
}

func (*AppDestroy) Cmd

func (a *AppDestroy) Cmd() *cobra.Command

func (*AppDestroy) Destroy

func (a *AppDestroy) Destroy(clusterName string, gOpt *operator.Options) error

func (*AppDestroy) RunE

func (a *AppDestroy) RunE(cmd *cobra.Command, args []string) error

type AppDisable

type AppDisable struct {
	*App
}

func (*AppDisable) Cmd

func (a *AppDisable) Cmd() *cobra.Command

func (*AppDisable) Disable

func (a *AppDisable) Disable(clusterName string, gOpt *operator.Options) error

func (*AppDisable) RunE

func (a *AppDisable) RunE(cmd *cobra.Command, args []string) error

type AppDisplay

type AppDisplay struct {
	*App
}

func (*AppDisplay) Cmd

func (a *AppDisplay) Cmd() *cobra.Command

func (*AppDisplay) Display

func (a *AppDisplay) Display(dOpt *manager.DisplayOption, gOpt *operator.Options) error

func (*AppDisplay) RunE

func (a *AppDisplay) RunE(cmd *cobra.Command, args []string) error

type AppEditConfig

type AppEditConfig struct {
	*App
	NewTopoFile string
}

func (*AppEditConfig) Cmd

func (a *AppEditConfig) Cmd() *cobra.Command

func (*AppEditConfig) EditConfig

func (a *AppEditConfig) EditConfig(clusterName string, gOpt *operator.Options) error

func (*AppEditConfig) RunE

func (a *AppEditConfig) RunE(cmd *cobra.Command, args []string) error

type AppEnable

type AppEnable struct {
	*App
}

func (*AppEnable) Cmd

func (a *AppEnable) Cmd() *cobra.Command

func (*AppEnable) Enable

func (a *AppEnable) Enable(clusterName string, gOpt *operator.Options) error

func (*AppEnable) RunE

func (a *AppEnable) RunE(cmd *cobra.Command, args []string) error

type AppList

type AppList struct {
	*App
}

func (*AppList) Cmd

func (a *AppList) Cmd() *cobra.Command

func (*AppList) List

func (a *AppList) List() error

func (*AppList) RunE

func (a *AppList) RunE(cmd *cobra.Command, args []string) error

type AppPatch

type AppPatch struct {
	*App
	Overwrite bool
}

func (*AppPatch) Cmd

func (a *AppPatch) Cmd() *cobra.Command

func (*AppPatch) Patch

func (a *AppPatch) Patch(clusterName, packagePath string, gOpt *operator.Options) error

func (*AppPatch) RunE

func (a *AppPatch) RunE(cmd *cobra.Command, args []string) error

type AppReload

type AppReload struct {
	*App
	SkipRestart bool
}

func (*AppReload) Cmd

func (a *AppReload) Cmd() *cobra.Command

func (*AppReload) Reload

func (a *AppReload) Reload(clusterName string, gOpt *operator.Options) error

func (*AppReload) RunE

func (a *AppReload) RunE(cmd *cobra.Command, args []string) error

type AppRestart

type AppRestart struct {
	*App
}

func (*AppRestart) Cmd

func (a *AppRestart) Cmd() *cobra.Command

func (*AppRestart) Restart

func (a *AppRestart) Restart(clusterName string, gOpt *operator.Options) error

func (*AppRestart) RunE

func (a *AppRestart) RunE(cmd *cobra.Command, args []string) error

type AppScaleIn

type AppScaleIn struct {
	*App
}

func (*AppScaleIn) Cmd

func (a *AppScaleIn) Cmd() *cobra.Command

func (*AppScaleIn) RunE

func (a *AppScaleIn) RunE(cmd *cobra.Command, args []string) error

func (*AppScaleIn) ScaleIn

func (a *AppScaleIn) ScaleIn(clusterName string, gOpt *operator.Options) error

type AppScaleOut

type AppScaleOut struct {
	*App
	User           string // username to login to the SSH server
	SkipCreateUser bool   // don't create the user
	IdentityFile   string // path to the private key file
	UsePassword    bool   // use password instead of identity file for ssh connection
}

func (*AppScaleOut) Cmd

func (a *AppScaleOut) Cmd() *cobra.Command

func (*AppScaleOut) RunE

func (a *AppScaleOut) RunE(cmd *cobra.Command, args []string) error

func (*AppScaleOut) ScaleOut

func (a *AppScaleOut) ScaleOut(clusterName, fileName string, gOpt *operator.Options) error

type AppStart

type AppStart struct {
	*App
}

func (*AppStart) Cmd

func (a *AppStart) Cmd() *cobra.Command

func (*AppStart) RunE

func (a *AppStart) RunE(cmd *cobra.Command, args []string) error

func (*AppStart) Start

func (a *AppStart) Start(clusterName string, gOpt *operator.Options) error

type AppStop

type AppStop struct {
	*App
}

func (*AppStop) Cmd

func (a *AppStop) Cmd() *cobra.Command

func (*AppStop) RunE

func (a *AppStop) RunE(cmd *cobra.Command, args []string) error

func (*AppStop) Stop

func (a *AppStop) Stop(clusterName string, gOpt *operator.Options) error

type AppUpgrade

type AppUpgrade struct {
	*App
}

func (*AppUpgrade) Cmd

func (a *AppUpgrade) Cmd() *cobra.Command

func (*AppUpgrade) RunE

func (a *AppUpgrade) RunE(cmd *cobra.Command, args []string) error

func (*AppUpgrade) Upgrade

func (a *AppUpgrade) Upgrade(clusterName string, clusterUpgradeVersion string, gOpt *operator.Options) error

Jump to

Keyboard shortcuts

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