Documentation ¶
Index ¶
- Constants
- func BindGetSignerCertOptions(options *GetSignerCertOptions, flags *pflag.FlagSet, prefix string)
- func BindSignerCertOptions(options *CreateSignerCertOptions, flags *pflag.FlagSet, prefix string)
- func CopyFile(src, dest string, permissions os.FileMode) error
- func DefaultAssetServingCertInfo(certDir string) configapi.CertInfo
- func DefaultCertDir(certDir, username string) string
- func DefaultCertFilename(certDir, username string) string
- func DefaultKeyFilename(certDir, username string) string
- func DefaultKubeConfigFilename(certDir, username string) string
- func DefaultMasterServingCertInfo(certDir string) configapi.CertInfo
- func DefaultNodeClientCertInfo(certDir, nodeName string) configapi.CertInfo
- func DefaultNodeDir(nodeName string) string
- func DefaultNodeKubeConfigFile(certDir, nodeName string) string
- func DefaultNodeServingCertInfo(certDir, nodeName string) configapi.CertInfo
- func DefaultRootCAFile(certDir string) string
- func DefaultSerialFilename(certDir, username string) string
- func DefaultServerCerts(certDir string) []configapi.CertInfo
- func DefaultSignerName() string
- func NewCommandCreateBootstrapPolicyFile(commandName string, fullName string, out io.Writer) *cobra.Command
- func NewCommandCreateClient(commandName string, fullName string, out io.Writer) *cobra.Command
- func NewCommandCreateKubeConfig(commandName string, fullName string, out io.Writer) *cobra.Command
- func NewCommandCreateMasterCerts(commandName string, fullName string, out io.Writer) *cobra.Command
- func NewCommandCreateServerCert(commandName string, fullName string, out io.Writer) *cobra.Command
- func NewCommandCreateSignerCert(commandName string, fullName string, out io.Writer) *cobra.Command
- func NewCommandNodeConfig(commandName string, fullName string, out io.Writer) *cobra.Command
- func NewCommandOverwriteBootstrapPolicy(commandName string, fullName string, createBootstrapPolicyCommand string, ...) *cobra.Command
- func OverwriteBootstrapPolicy(etcdHelper tools.EtcdHelper, ...) error
- type ClientCertInfo
- func DefaultClientCerts(certDir string) []ClientCertInfo
- func DefaultClusterAdminClientCertInfo(certDir string) ClientCertInfo
- func DefaultDeployerClientCertInfo(certDir string) ClientCertInfo
- func DefaultKubeClientClientCertInfo(certDir string) ClientCertInfo
- func DefaultOpenshiftLoopbackClientCertInfo(certDir string) ClientCertInfo
- func DefaultRegistryClientCertInfo(certDir string) ClientCertInfo
- func DefaultRouterClientCertInfo(certDir string) ClientCertInfo
- type CreateBootstrapPolicyFileOptions
- type CreateClientCertOptions
- type CreateClientOptions
- type CreateKubeConfigOptions
- type CreateMasterCertsOptions
- type CreateNodeConfigOptions
- func (o CreateNodeConfigOptions) CreateNodeFolder() error
- func (o CreateNodeConfigOptions) IsCreateClientCertificate() bool
- func (o CreateNodeConfigOptions) IsCreateServerCertificate() bool
- func (o CreateNodeConfigOptions) MakeCA(clientCopyOfCAFile string) error
- func (o CreateNodeConfigOptions) MakeClientCert(clientCertFile, clientKeyFile string) error
- func (o CreateNodeConfigOptions) MakeKubeConfig(clientCertFile, clientKeyFile, clientCopyOfCAFile, kubeConfigFile string) error
- func (o CreateNodeConfigOptions) MakeNodeConfig(serverCertFile, serverKeyFile, kubeConfigFile, nodeConfigFile string) error
- func (o CreateNodeConfigOptions) MakeNodeJSON(nodeJSONFile string) error
- func (o CreateNodeConfigOptions) MakeServerCert(serverCertFile, serverKeyFile string) error
- func (o CreateNodeConfigOptions) UseTLS() bool
- func (o CreateNodeConfigOptions) Validate(args []string) error
- type CreateServerCertOptions
- type CreateSignerCertOptions
- type GetSignerCertOptions
- type OverwriteBootstrapPolicyOptions
Constants ¶
View Source
const ( DefaultPolicyFile = "openshift.local.policy/policy.json" CreateBootstrapPolicyFileCommand = "create-bootstrap-policy-file" CreateBootstrapPolicyFileFullCommand = "openshift admin " + CreateBootstrapPolicyFileCommand )
View Source
const CreateClientCommandName = "create-api-client-config"
View Source
const CreateKubeConfigCommandName = "create-kubeconfig"
View Source
const CreateMasterCertsCommandName = "create-master-certs"
View Source
const CreateServerCertCommandName = "create-server-cert"
View Source
const CreateSignerCertCommandName = "create-signer-cert"
View Source
const (
DefaultCADir = "ca"
)
View Source
const NodeConfigCommandName = "create-node-config"
View Source
const OverwriteBootstrapPolicyCommandName = "overwrite-policy"
Variables ¶
This section is empty.
Functions ¶
func BindGetSignerCertOptions ¶
func BindGetSignerCertOptions(options *GetSignerCertOptions, flags *pflag.FlagSet, prefix string)
func BindSignerCertOptions ¶
func BindSignerCertOptions(options *CreateSignerCertOptions, flags *pflag.FlagSet, prefix string)
func DefaultCertDir ¶
func DefaultCertFilename ¶
func DefaultKeyFilename ¶
func DefaultNodeDir ¶
func DefaultRootCAFile ¶
func DefaultSerialFilename ¶
func DefaultServerCerts ¶
func DefaultSignerName ¶
func DefaultSignerName() string
func NewCommandCreateClient ¶
func NewCommandNodeConfig ¶
Types ¶
type ClientCertInfo ¶
type ClientCertInfo struct { CertLocation configapi.CertInfo SubDir string User string Groups util.StringSet }
func DefaultClientCerts ¶
func DefaultClientCerts(certDir string) []ClientCertInfo
func DefaultClusterAdminClientCertInfo ¶
func DefaultClusterAdminClientCertInfo(certDir string) ClientCertInfo
func DefaultDeployerClientCertInfo ¶
func DefaultDeployerClientCertInfo(certDir string) ClientCertInfo
func DefaultKubeClientClientCertInfo ¶
func DefaultKubeClientClientCertInfo(certDir string) ClientCertInfo
func DefaultOpenshiftLoopbackClientCertInfo ¶
func DefaultOpenshiftLoopbackClientCertInfo(certDir string) ClientCertInfo
func DefaultRegistryClientCertInfo ¶
func DefaultRegistryClientCertInfo(certDir string) ClientCertInfo
func DefaultRouterClientCertInfo ¶
func DefaultRouterClientCertInfo(certDir string) ClientCertInfo
type CreateBootstrapPolicyFileOptions ¶
func (CreateBootstrapPolicyFileOptions) CreateBootstrapPolicyFile ¶
func (o CreateBootstrapPolicyFileOptions) CreateBootstrapPolicyFile() error
func (CreateBootstrapPolicyFileOptions) Validate ¶
func (o CreateBootstrapPolicyFileOptions) Validate(args []string) error
type CreateClientCertOptions ¶
type CreateClientCertOptions struct { GetSignerCertOptions *GetSignerCertOptions CertFile string KeyFile string User string Groups util.StringList Overwrite bool }
func (CreateClientCertOptions) CreateClientCert ¶
func (o CreateClientCertOptions) CreateClientCert() (*crypto.TLSCertificateConfig, error)
func (CreateClientCertOptions) Validate ¶
func (o CreateClientCertOptions) Validate(args []string) error
type CreateClientOptions ¶
type CreateClientOptions struct { GetSignerCertOptions *GetSignerCertOptions ClientDir string User string Groups util.StringList APIServerCAFile string APIServerURL string PublicAPIServerURL string }
func (CreateClientOptions) CreateClientFolder ¶
func (o CreateClientOptions) CreateClientFolder() error
func (CreateClientOptions) Validate ¶
func (o CreateClientOptions) Validate(args []string) error
type CreateKubeConfigOptions ¶
type CreateKubeConfigOptions struct { APIServerURL string PublicAPIServerURL string APIServerCAFile string ServerNick string CertFile string KeyFile string UserNick string KubeConfigFile string }
func (CreateKubeConfigOptions) CreateKubeConfig ¶
func (o CreateKubeConfigOptions) CreateKubeConfig() (*clientcmdapi.Config, error)
func (CreateKubeConfigOptions) Validate ¶
func (o CreateKubeConfigOptions) Validate(args []string) error
type CreateMasterCertsOptions ¶
type CreateMasterCertsOptions struct { CertDir string SignerName string Hostnames util.StringList APIServerURL string PublicAPIServerURL string Overwrite bool }
func (CreateMasterCertsOptions) CreateMasterCerts ¶
func (o CreateMasterCertsOptions) CreateMasterCerts() error
func (CreateMasterCertsOptions) Validate ¶
func (o CreateMasterCertsOptions) Validate(args []string) error
type CreateNodeConfigOptions ¶
type CreateNodeConfigOptions struct { GetSignerCertOptions *GetSignerCertOptions NodeConfigDir string NodeName string Hostnames util.StringList VolumeDir string NetworkContainerImage string AllowDisabledDocker bool DNSDomain string DNSIP string ListenAddr flagtypes.Addr ClientCertFile string ClientKeyFile string ServerCertFile string ServerKeyFile string APIServerCAFile string APIServerURL string }
func NewDefaultCreateNodeConfigOptions ¶
func NewDefaultCreateNodeConfigOptions() *CreateNodeConfigOptions
func (CreateNodeConfigOptions) CreateNodeFolder ¶
func (o CreateNodeConfigOptions) CreateNodeFolder() error
func (CreateNodeConfigOptions) IsCreateClientCertificate ¶
func (o CreateNodeConfigOptions) IsCreateClientCertificate() bool
func (CreateNodeConfigOptions) IsCreateServerCertificate ¶
func (o CreateNodeConfigOptions) IsCreateServerCertificate() bool
func (CreateNodeConfigOptions) MakeCA ¶
func (o CreateNodeConfigOptions) MakeCA(clientCopyOfCAFile string) error
func (CreateNodeConfigOptions) MakeClientCert ¶
func (o CreateNodeConfigOptions) MakeClientCert(clientCertFile, clientKeyFile string) error
func (CreateNodeConfigOptions) MakeKubeConfig ¶
func (o CreateNodeConfigOptions) MakeKubeConfig(clientCertFile, clientKeyFile, clientCopyOfCAFile, kubeConfigFile string) error
func (CreateNodeConfigOptions) MakeNodeConfig ¶
func (o CreateNodeConfigOptions) MakeNodeConfig(serverCertFile, serverKeyFile, kubeConfigFile, nodeConfigFile string) error
func (CreateNodeConfigOptions) MakeNodeJSON ¶
func (o CreateNodeConfigOptions) MakeNodeJSON(nodeJSONFile string) error
func (CreateNodeConfigOptions) MakeServerCert ¶
func (o CreateNodeConfigOptions) MakeServerCert(serverCertFile, serverKeyFile string) error
func (CreateNodeConfigOptions) UseTLS ¶
func (o CreateNodeConfigOptions) UseTLS() bool
func (CreateNodeConfigOptions) Validate ¶
func (o CreateNodeConfigOptions) Validate(args []string) error
type CreateServerCertOptions ¶
type CreateServerCertOptions struct { GetSignerCertOptions *GetSignerCertOptions CertFile string KeyFile string Hostnames util.StringList Overwrite bool }
func (CreateServerCertOptions) CreateServerCert ¶
func (o CreateServerCertOptions) CreateServerCert() (*crypto.TLSCertificateConfig, error)
func (CreateServerCertOptions) Validate ¶
func (o CreateServerCertOptions) Validate(args []string) error
type CreateSignerCertOptions ¶
type CreateSignerCertOptions struct { CertFile string KeyFile string SerialFile string Name string Overwrite bool }
func (CreateSignerCertOptions) CreateSignerCert ¶
func (o CreateSignerCertOptions) CreateSignerCert() (*crypto.CA, error)
func (CreateSignerCertOptions) Validate ¶
func (o CreateSignerCertOptions) Validate(args []string) error
type GetSignerCertOptions ¶
func (GetSignerCertOptions) GetSignerCert ¶
func (o GetSignerCertOptions) GetSignerCert() (*crypto.CA, error)
func (GetSignerCertOptions) Validate ¶
func (o GetSignerCertOptions) Validate() error
type OverwriteBootstrapPolicyOptions ¶
type OverwriteBootstrapPolicyOptions struct { File string MasterConfigFile string Force bool Out io.Writer CreateBootstrapPolicyCommand string }
func (OverwriteBootstrapPolicyOptions) OverwriteBootstrapPolicy ¶
func (o OverwriteBootstrapPolicyOptions) OverwriteBootstrapPolicy() error
func (OverwriteBootstrapPolicyOptions) Validate ¶
func (o OverwriteBootstrapPolicyOptions) Validate(args []string) error
Click to show internal directories.
Click to hide internal directories.