{"modulePath":"github.com/2lambda123/openshift-origin","version":"v4.1.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package start\n\n## Functions\n\n```go\nfunc BindMasterArgs(args *MasterArgs, flags *pflag.FlagSet, prefix string)\n```\nBindMasterArgs binds the options to the flags with prefix + default flag names\n\n## Types\n\n```go\ntype MasterArgs struct {\n\t// MasterAddr is the master address for use by OpenShift components (host, host:port, or URL).\n\t// Scheme and port default to the --listen scheme and port. When unset, attempt to use the first\n\t// public IPv4 non-loopback address registered on this host.\n\tMasterAddr flagtypes.Addr\n\n\t// EtcdAddr is the address of the etcd server (host, host:port, or URL). If specified, no built-in\n\t// etcd will be started.\n\tEtcdAddr flagtypes.Addr\n\n\t// MasterPublicAddr is the master address for use by public clients, if different (host, host:port,\n\t// or URL). Defaults to same as --master.\n\tMasterPublicAddr flagtypes.Addr\n\n\t// StartAPI controls whether the API component of the master is started (to support the API role)\n\t// TODO: once we implement bastion role and kube/os controller role, revisit\n\tStartAPI bool\n\t// StartControllers controls whether the controller component of the master is started (to support\n\t// the controller role)\n\tStartControllers bool\n\n\t// DNSBindAddr exposed for integration tests to set\n\tDNSBindAddr flagtypes.Addr\n\n\t// EtcdDir is the etcd data directory.\n\tEtcdDir   string\n\tConfigDir *flag.StringFlag\n\n\t// CORSAllowedOrigins is a list of allowed origins for CORS, comma separated.\n\t// An allowed origin can be a regular expression to support subdomain matching.\n\t// CORS is enabled for localhost, 127.0.0.1, and the asset server by default.\n\tCORSAllowedOrigins []string\n\n\tAPIServerCAFiles []string\n\n\tListenArg          *options.ListenArg\n\tImageFormatArgs    *options.ImageFormatArgs\n\tKubeConnectionArgs *options.KubeConnectionArgs\n\n\tSchedulerConfigFile string\n\n\tNetworkArgs *options.NetworkArgs\n\n\tOverrideConfig func(config *configapi.MasterConfig) error\n}\n```\nMasterArgs is a struct that the command stores flag values into.  It holds a partially complete set of parameters for starting the master This object should hold the common set values, but not attempt to handle all cases.  The expected path is to use this object to create a fully specified config later on.  If you need something not set here, then create a fully specified config file and pass that as argument to starting the master.\n\n```go\nfunc NewDefaultMasterArgs() *MasterArgs\n```\nNewDefaultMasterArgs creates MasterArgs with sub-objects created and default values set.\n\n```go\nfunc (args MasterArgs) BuildSerializeableEtcdConfig() (*configapi.EtcdConfig, error)\n```\nBuildSerializeableEtcdConfig creates a fully specified etcd startup configuration based on MasterArgs\n\n```go\nfunc (args MasterArgs) BuildSerializeableKubeMasterConfig() (*configapi.KubernetesMasterConfig, error)\n```\nBuildSerializeableKubeMasterConfig creates a fully specified kubernetes master startup configuration based on MasterArgs\n\n```go\nfunc (args MasterArgs) BuildSerializeableMasterConfig() (*configapi.MasterConfig, error)\n```\nBuildSerializeableMasterConfig takes the MasterArgs (partially complete config) and uses them along with defaulting behavior to create the fully specified config object for starting the master\n\n```go\nfunc (args MasterArgs) BuildSerializeableOAuthConfig() (*configapi.OAuthConfig, error)\n```\n\n```go\nfunc (args MasterArgs) GetAssetPublicAddress() (*url.URL, error)\n```\n\n```go\nfunc (args MasterArgs) GetConfigFileToWrite() string\n```\nGetConfigFileToWrite returns the configuration filepath for master\n\n```go\nfunc (args MasterArgs) GetDNSBindAddress() (flagtypes.Addr, error)\n```\n\n```go\nfunc (args MasterArgs) GetEtcdAddress() (*url.URL, error)\n```\nGetEtcdAddress returns the address for etcd\n\n```go\nfunc (args MasterArgs) GetEtcdBindAddress() string\n```\nGetEtcdBindAddress derives the etcd bind address by using the bind address and the default etcd port\n\n```go\nfunc (args MasterArgs) GetEtcdPeerAddress() (*url.URL, error)\n```\n\n```go\nfunc (args MasterArgs) GetEtcdPeerBindAddress() string\n```\nGetEtcdPeerBindAddress derives the etcd peer address by using the bind address and the default etcd peering port\n\n```go\nfunc (args MasterArgs) GetMasterAddress() (*url.URL, error)\n```\nGetMasterAddress checks for an unset master address and then attempts to use the first public IPv4 non-loopback address registered on this host. TODO: make me IPv6 safe\n\n```go\nfunc (args MasterArgs) GetMasterPublicAddress() (*url.URL, error)\n```\n\n```go\nfunc (args MasterArgs) GetServerCertHostnames() (sets.String, error)\n```\nGetServerCertHostnames returns the set of hostnames that any serving certificate for master needs to be valid for.\n\n```go\nfunc (args MasterArgs) Validate() error\n```\n\n","path":"github.com/2lambda123/openshift-origin/pkg/cmd/server/start","name":"start","synopsis":"","isRedistributable":true}
