Documentation ¶
Index ¶
- Constants
- func NewCmdDown(name, fullName string) *cobra.Command
- func NewCmdStatus(name, fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewCmdUp(name, fullName string, f genericclioptions.RESTClientGetter, ...) *cobra.Command
- func PrintError(err error, out io.Writer)
- type ClientStatusConfig
- type ClientStopConfig
- type ClusterUpConfig
- func (c *ClusterUpConfig) Bind(flags *pflag.FlagSet)
- func (c *ClusterUpConfig) BuildConfig() (*configDirs, error)
- func (c *ClusterUpConfig) Check() error
- func (c *ClusterUpConfig) ClusterAdminKubeConfigBytes() ([]byte, error)
- func (c *ClusterUpConfig) Complete(f genericclioptions.RESTClientGetter, cmd *cobra.Command) error
- func (c *ClusterUpConfig) DockerHelper() *dockerhelper.Helper
- func (c *ClusterUpConfig) GetDockerClient() dockerhelper.Interface
- func (c *ClusterUpConfig) GetKubeAPIServerConfigDir() string
- func (c *ClusterUpConfig) GetPublicHostName() string
- func (c *ClusterUpConfig) HostHelper() *host.HostHelper
- func (c *ClusterUpConfig) LocalDirFor(componentName string) string
- func (c *ClusterUpConfig) OpenShiftHelper() *openshift.Helper
- func (c *ClusterUpConfig) PostClusterStartupMutations(out io.Writer) error
- func (c *ClusterUpConfig) RESTConfig() (*rest.Config, error)
- func (c *ClusterUpConfig) RemoteDirFor(componentName string) string
- func (c *ClusterUpConfig) ShouldCreateUser() bool
- func (c *ClusterUpConfig) Start() error
- func (c *ClusterUpConfig) StartSelfHosted(out io.Writer) error
- func (c *ClusterUpConfig) Validate() error
Constants ¶
const CmdDownRecommendedName = "down"
const CmdStatusRecommendedName = "status"
CmdStatusRecommendedName is the recommended command name
const (
// CmdUpRecommendedName is the recommended command name
CmdUpRecommendedName = "up"
)
Variables ¶
This section is empty.
Functions ¶
func NewCmdDown ¶
NewCmdDown creates a command that stops OpenShift
func NewCmdStatus ¶
func NewCmdStatus(name, fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
NewCmdStatus implements the OpenShift cluster status command.
func NewCmdUp ¶
func NewCmdUp(name, fullName string, f genericclioptions.RESTClientGetter, streams genericclioptions.IOStreams, clusterAdd *cobra.Command) *cobra.Command
NewCmdUp creates a command that starts OpenShift on Docker with reasonable defaults
func PrintError ¶
Types ¶
type ClientStatusConfig ¶
type ClientStatusConfig struct { }
ClientStatusConfig is the configuration for the client status command
type ClientStopConfig ¶
type ClientStopConfig struct { }
func (*ClientStopConfig) Stop ¶
func (c *ClientStopConfig) Stop() error
Stop stops the currently running origin container and any containers started by the node.
type ClusterUpConfig ¶
type ClusterUpConfig struct { ImageTemplate variable.ImageTemplate ImageTag string DockerMachine string SkipRegistryCheck bool PortForwarding bool ClusterAdd *cobra.Command UserEnabledComponents []string KubeOnly bool // BaseTempDir is the directory to use as the root for temp directories // This allows us to bundle all of the cluster-up directories in one spot for easier cleanup and ensures we aren't // doing crazy thing like dirtying /var on the host (that does weird stuff) BaseDir string SpecifiedBaseDir bool HostName string UseExistingConfig bool ServerLogLevel int ComponentsToEnable *components.Components HostVolumesDir string HostConfigDir string WriteConfig bool HostDataDir string UsePorts []int DNSPort int ServerIP string AdditionalIPs []string UseNsenterMount bool PublicHostname string RoutingSuffix string HostPersistentVolumesDir string HTTPProxy string HTTPSProxy string NoProxy []string genericclioptions.IOStreams // contains filtered or unexported fields }
func NewClusterUpConfig ¶
func NewClusterUpConfig(streams genericclioptions.IOStreams, clusterAdd *cobra.Command) *ClusterUpConfig
func (*ClusterUpConfig) Bind ¶
func (c *ClusterUpConfig) Bind(flags *pflag.FlagSet)
func (*ClusterUpConfig) BuildConfig ¶
func (c *ClusterUpConfig) BuildConfig() (*configDirs, error)
func (*ClusterUpConfig) Check ¶
func (c *ClusterUpConfig) Check() error
Check is a spot to do NON-MUTATING, preflight checks. Over time, we should try to move our non-mutating checks out of Complete and into Check.
func (*ClusterUpConfig) ClusterAdminKubeConfigBytes ¶
func (c *ClusterUpConfig) ClusterAdminKubeConfigBytes() ([]byte, error)
func (*ClusterUpConfig) Complete ¶
func (c *ClusterUpConfig) Complete(f genericclioptions.RESTClientGetter, cmd *cobra.Command) error
func (*ClusterUpConfig) DockerHelper ¶
func (c *ClusterUpConfig) DockerHelper() *dockerhelper.Helper
DockerHelper returns a helper object to work with the Docker client
func (*ClusterUpConfig) GetDockerClient ¶
func (c *ClusterUpConfig) GetDockerClient() dockerhelper.Interface
GetDockerClient obtains a new Docker client from the environment or from a Docker machine, starting it if necessary
func (*ClusterUpConfig) GetKubeAPIServerConfigDir ¶
func (c *ClusterUpConfig) GetKubeAPIServerConfigDir() string
func (*ClusterUpConfig) GetPublicHostName ¶
func (c *ClusterUpConfig) GetPublicHostName() string
func (*ClusterUpConfig) HostHelper ¶
func (c *ClusterUpConfig) HostHelper() *host.HostHelper
HostHelper returns a helper object to check Host configuration
func (*ClusterUpConfig) LocalDirFor ¶
func (c *ClusterUpConfig) LocalDirFor(componentName string) string
LocalDirFor returns a local directory path for the given component.
func (*ClusterUpConfig) OpenShiftHelper ¶
func (c *ClusterUpConfig) OpenShiftHelper() *openshift.Helper
OpenShiftHelper returns a helper object to work with OpenShift on the server
func (*ClusterUpConfig) PostClusterStartupMutations ¶
func (c *ClusterUpConfig) PostClusterStartupMutations(out io.Writer) error
func (*ClusterUpConfig) RESTConfig ¶
func (c *ClusterUpConfig) RESTConfig() (*rest.Config, error)
func (*ClusterUpConfig) RemoteDirFor ¶
func (c *ClusterUpConfig) RemoteDirFor(componentName string) string
RemoteDirFor returns a directory path on remote host DEPRECATED:
func (*ClusterUpConfig) ShouldCreateUser ¶
func (c *ClusterUpConfig) ShouldCreateUser() bool
ShouldCreateUser determines whether a user and project should be created. If the user provider has been modified in the config, then it should not attempt to create a user. Also, even if the user provider has not been modified, but data has been initialized, then we should also not create user.
func (*ClusterUpConfig) Start ¶
func (c *ClusterUpConfig) Start() error
Start runs the start tasks ensuring that they are executed in sequence
func (*ClusterUpConfig) StartSelfHosted ¶
func (c *ClusterUpConfig) StartSelfHosted(out io.Writer) error
func (*ClusterUpConfig) Validate ¶
func (c *ClusterUpConfig) Validate() error
Validate validates that required fields in StartConfig have been populated
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
coreinstall
|
|
docker
|
|
exec
Package exec contains a utility to Docker exec into a running a container Create an ExecHelper with NewExecHelper and then create new exec commands with Command()
|
Package exec contains a utility to Docker exec into a running a container Create an ExecHelper with NewExecHelper and then create new exec commands with Command() |
host
Package host contains a utility to run commands on the Docker host by using an image in privileged mode.
|
Package host contains a utility to run commands on the Docker host by using an image in privileged mode. |
run
Package runner contains a utility to run Docker containers Create a RunHelper with NewRunHelper and then create new run instances with New()
|
Package runner contains a utility to run Docker containers Create a RunHelper with NewRunHelper and then create new run instances with New() |