cli

package
v0.38.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 68 Imported by: 0

Documentation

Overview

Copyright 2020-2021 The UnDistro authors

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

View Source
const Indentation = `  `

Variables

This section is empty.

Functions

func Examples

func Examples(s string) string

Examples normalizes a command's examples to follow the conventions.

func LongDesc

func LongDesc(s string) string

LongDesc normalizes a command's long description to follow the conventions.

func NewCmdCluster added in v0.22.0

func NewCmdCluster(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

func NewCmdCompletion added in v0.17.5

func NewCmdCompletion(streams genericclioptions.IOStreams) *cobra.Command

func NewCmdCreate added in v0.22.0

func NewCmdCreate(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

func NewCmdDestroy added in v0.34.0

func NewCmdDestroy(streams genericclioptions.IOStreams) *cobra.Command

func NewCmdGet

func NewCmdGet(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

func NewCmdInstall

func NewCmdInstall(f *ConfigFlags, streams genericclioptions.IOStreams) *cobra.Command

func NewCmdKubeconfig

func NewCmdKubeconfig(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

func NewCmdMove

func NewCmdMove(f *ConfigFlags, streams genericclioptions.IOStreams) *cobra.Command

func NewCmdSetup added in v0.34.0

func NewCmdSetup(f *ConfigFlags, streams genericclioptions.IOStreams) *cobra.Command

func NewCmdShowProgress added in v0.18.0

func NewCmdShowProgress(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

func NewCmdUpgrade added in v0.18.0

func NewCmdUpgrade(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

func NewUndistroCommand

func NewUndistroCommand(in io.Reader, out, err io.Writer) *cobra.Command

Types

type ClusterOptions added in v0.22.0

type ClusterOptions struct {
	genericclioptions.IOStreams
	Namespace       string
	ClusterName     string
	Infra           string
	Flavor          string
	SshKeyName      string
	GenerateFile    bool
	K8sVersion      string
	Region          string
	AuthEnabled     bool
	ObserverEnabled bool
	PoliciesEnabled bool
	Addons          bool
	CloudsFile      string
	// contains filtered or unexported fields
}

func NewClusterOptions added in v0.22.0

func NewClusterOptions(streams genericclioptions.IOStreams) *ClusterOptions

func (*ClusterOptions) AddFlags added in v0.22.0

func (o *ClusterOptions) AddFlags(flags *pflag.FlagSet)

func (*ClusterOptions) Complete added in v0.22.0

func (o *ClusterOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

func (*ClusterOptions) RunCreateCluster added in v0.22.0

func (o *ClusterOptions) RunCreateCluster(f cmdutil.Factory, cmd *cobra.Command) error

type ConfigFlags

type ConfigFlags struct {
	ConfigFile *string
	*genericclioptions.ConfigFlags
}

func NewConfigFlags

func NewConfigFlags() *ConfigFlags

NewConfigFlags returns ConfigFlags with default values set

func (*ConfigFlags) AddFlags

func (f *ConfigFlags) AddFlags(flags *pflag.FlagSet, goflags *flag.FlagSet)

type DestroyOptions added in v0.34.0

type DestroyOptions struct {
	genericclioptions.IOStreams
	Provider string
	Name     string
}

func NewDestroyOptions added in v0.34.0

func NewDestroyOptions(streams genericclioptions.IOStreams) *DestroyOptions

func (*DestroyOptions) AddFlags added in v0.34.0

func (o *DestroyOptions) AddFlags(flags *pflag.FlagSet)

func (*DestroyOptions) Complete added in v0.34.0

func (o *DestroyOptions) Complete(args []string) error

func (*DestroyOptions) RunDestroy added in v0.34.0

func (o *DestroyOptions) RunDestroy(cmd *cobra.Command) error

type InstallOptions

type InstallOptions struct {
	ConfigPath  string
	ClusterName string
	Remote      bool
	genericclioptions.IOStreams
}

func NewInstallOptions

func NewInstallOptions(streams genericclioptions.IOStreams) *InstallOptions

func (*InstallOptions) Complete

func (o *InstallOptions) Complete(f *ConfigFlags, cmd *cobra.Command, args []string) error

func (*InstallOptions) RunInstall

func (o *InstallOptions) RunInstall(f cmdutil.Factory, cmd *cobra.Command) error

func (*InstallOptions) Validate

func (o *InstallOptions) Validate() error

type KubeconfigOptions

type KubeconfigOptions struct {
	genericclioptions.IOStreams
	Namespace      string
	ClusterName    string
	Admin          bool
	Kubeconfigdeps pinnipedcmd.KubeconfigDeps
}

func (*KubeconfigOptions) Complete

func (o *KubeconfigOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

func (*KubeconfigOptions) RunGetKubeconfig

func (o *KubeconfigOptions) RunGetKubeconfig(f cmdutil.Factory, cmd *cobra.Command, params pinnipedcmd.GetKubeconfigParams) error

type MoveOptions

type MoveOptions struct {
	ConfigPath  string
	ClusterName string
	Namespace   string
	genericclioptions.IOStreams
}

func NewMoveOptions

func NewMoveOptions(streams genericclioptions.IOStreams) *MoveOptions

func (*MoveOptions) Complete

func (o *MoveOptions) Complete(f *ConfigFlags, cmd *cobra.Command, args []string) error

func (*MoveOptions) RunMove

func (o *MoveOptions) RunMove(f cmdutil.Factory, cmd *cobra.Command) error

func (*MoveOptions) Validate

func (o *MoveOptions) Validate() error

type SetupOptions added in v0.34.0

type SetupOptions struct {
	genericclioptions.IOStreams
	Provider          string
	Name              string
	ConfigPath        string
	Flavor            string
	SSHKeyName        string
	CloudsFile        string
	KubernetesVersion string
	Region            string

	Delete bool
	// contains filtered or unexported fields
}

func NewSetupOptions added in v0.34.0

func NewSetupOptions(streams genericclioptions.IOStreams) *SetupOptions

func (*SetupOptions) AddFlags added in v0.34.0

func (o *SetupOptions) AddFlags(flags *pflag.FlagSet)

func (*SetupOptions) Complete added in v0.34.0

func (o *SetupOptions) Complete(f *ConfigFlags, args []string) error

func (*SetupOptions) RunSetup added in v0.34.0

func (o *SetupOptions) RunSetup(cmd *cobra.Command, args []string) error

type ShowProgressOptions added in v0.18.0

type ShowProgressOptions struct {
	genericclioptions.IOStreams
	Namespace   string
	ClusterName string
}

func NewShowProgressOptions added in v0.18.0

func NewShowProgressOptions(streams genericclioptions.IOStreams) *ShowProgressOptions

func (*ShowProgressOptions) Complete added in v0.18.0

func (o *ShowProgressOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

func (*ShowProgressOptions) RunShowProgress added in v0.18.0

func (o *ShowProgressOptions) RunShowProgress(f cmdutil.Factory, cmd *cobra.Command) error

type UpgradeOptions added in v0.18.0

type UpgradeOptions struct {
	genericclioptions.IOStreams
	Version string
}

func NewUpgradeOptions added in v0.18.0

func NewUpgradeOptions(streams genericclioptions.IOStreams) *UpgradeOptions

func (*UpgradeOptions) AddFlags added in v0.18.0

func (o *UpgradeOptions) AddFlags(flags *pflag.FlagSet)

func (*UpgradeOptions) RunUpgrade added in v0.18.0

func (o *UpgradeOptions) RunUpgrade(f cmdutil.Factory, cmd *cobra.Command) error

Jump to

Keyboard shortcuts

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