Documentation ¶
Index ¶
- Constants
- func BindCreateSignerCertOptions(options *CreateSignerCertOptions, flags *pflag.FlagSet, prefix string)
- func BindSignerCertOptions(options *SignerCertOptions, flags *pflag.FlagSet, prefix string)
- func CopyFile(src, dest string, permissions os.FileMode) error
- func DefaultAPIClientCAFile(certDir string) string
- func DefaultAssetServingCertInfo(certDir string) configapi.CertInfo
- func DefaultCAFilename(certDir, prefix string) string
- func DefaultCertFilename(certDir, prefix string) string
- func DefaultEtcdClientCAFile(certDir string) string
- func DefaultEtcdServingCertInfo(certDir string) configapi.CertInfo
- func DefaultKeyFilename(certDir, prefix string) string
- func DefaultKubeConfigFilename(certDir, prefix string) string
- func DefaultKubeletClientCAFile(certDir string) string
- func DefaultMasterServingCertInfo(certDir string) configapi.CertInfo
- func DefaultNodeClientCertInfo(nodeDir string) configapi.CertInfo
- func DefaultNodeDir(nodeName string) string
- func DefaultNodeKubeConfigFile(nodeDir string) string
- func DefaultNodeServingCertInfo(nodeDir string) configapi.CertInfo
- func DefaultRootCAFile(certDir string) string
- func DefaultSerialFilename(certDir, prefix string) string
- func DefaultServerCerts(certDir string) []configapi.CertInfo
- func DefaultServiceAccountPrivateKeyFile(certDir string) string
- func DefaultServiceAccountPublicKeyFile(certDir string) string
- func DefaultSignerName() string
- func NewCommandCreateBootstrapPolicyFile(commandName string, fullName string, out io.Writer) *cobra.Command
- func NewCommandCreateBootstrapProjectTemplate(f *clientcmd.Factory, commandName string, fullName string, out io.Writer) *cobra.Command
- func NewCommandCreateClient(commandName string, fullName string, out io.Writer) *cobra.Command
- func NewCommandCreateKeyPair(commandName string, fullName string, out io.Writer) *cobra.Command
- func NewCommandCreateKubeConfig(commandName string, fullName string, out io.Writer) *cobra.Command
- func NewCommandCreateLoginTemplate(f *clientcmd.Factory, 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(storage storage.Interface, policyFile, createBootstrapPolicyCommand string, ...) error
- type ClientCertInfo
- func DefaultAPIClientCerts(certDir string) []ClientCertInfo
- func DefaultClusterAdminClientCertInfo(certDir string) ClientCertInfo
- func DefaultEtcdClientCerts(certDir string) []ClientCertInfo
- func DefaultKubeletClientCerts(certDir string) []ClientCertInfo
- func DefaultMasterEtcdClientCertInfo(certDir string) ClientCertInfo
- func DefaultMasterKubeletClientCertInfo(certDir string) ClientCertInfo
- func DefaultOpenshiftLoopbackClientCertInfo(certDir string) ClientCertInfo
- func DefaultProxyClientCertInfo(certDir string) ClientCertInfo
- func DefaultProxyClientCerts(certDir string) []ClientCertInfo
- func DefaultRegistryClientCertInfo(certDir string) ClientCertInfo
- func DefaultRouterClientCertInfo(certDir string) ClientCertInfo
- type CreateBootstrapPolicyFileOptions
- type CreateBootstrapProjectTemplateOptions
- type CreateClientCertOptions
- type CreateClientOptions
- type CreateKeyPairOptions
- type CreateKubeConfigOptions
- type CreateLoginTemplateOptions
- type CreateMasterCertsOptions
- type CreateNodeConfigOptions
- func (o CreateNodeConfigOptions) CreateNodeFolder() error
- func (o CreateNodeConfigOptions) IsCreateClientCertificate() bool
- func (o CreateNodeConfigOptions) IsCreateServerCertificate() bool
- func (o CreateNodeConfigOptions) MakeAPIServerCA(clientCopyOfCAFile string) error
- func (o CreateNodeConfigOptions) MakeClientCert(clientCertFile, clientKeyFile string) error
- func (o CreateNodeConfigOptions) MakeKubeConfig(clientCertFile, clientKeyFile, clientCopyOfCAFile, kubeConfigFile string) error
- func (o CreateNodeConfigOptions) MakeNodeClientCA(clientCopyOfCAFile string) error
- func (o CreateNodeConfigOptions) MakeNodeConfig(serverCertFile, serverKeyFile, nodeClientCAFile, kubeConfigFile, ... string) error
- func (o CreateNodeConfigOptions) MakeNodeJSON(nodeJSONFile string) error
- func (o CreateNodeConfigOptions) MakeServerCert(serverCertFile, serverKeyFile string) error
- func (o CreateNodeConfigOptions) UseNodeClientCA() bool
- func (o CreateNodeConfigOptions) UseTLS() bool
- func (o CreateNodeConfigOptions) Validate(args []string) error
- type CreateServerCertOptions
- type CreateSignerCertOptions
- type OverwriteBootstrapPolicyOptions
- type SignerCertOptions
Constants ¶
View Source
const ( DefaultPolicyFile = "openshift.local.config/master/policy.json" CreateBootstrapPolicyFileCommand = "create-bootstrap-policy-file" CreateBootstrapPolicyFileFullCommand = "openshift admin " + CreateBootstrapPolicyFileCommand )
View Source
const ( CAFilePrefix = "ca" MasterFilePrefix = "master" )
View Source
const CreateBootstrapProjectTemplateCommand = "create-bootstrap-project-template"
View Source
const CreateClientCommandName = "create-api-client-config"
View Source
const CreateKeyPairCommandName = "create-key-pair"
View Source
const CreateKubeConfigCommandName = "create-kubeconfig"
View Source
const (
CreateLoginTemplateCommand = "create-login-template"
)
View Source
const CreateMasterCertsCommandName = "create-master-certs"
View Source
const CreateServerCertCommandName = "create-server-cert"
View Source
const CreateSignerCertCommandName = "create-signer-cert"
View Source
const NodeConfigCommandName = "create-node-config"
View Source
const OverwriteBootstrapPolicyCommandName = "overwrite-policy"
Variables ¶
This section is empty.
Functions ¶
func BindCreateSignerCertOptions ¶ added in v1.0.3
func BindCreateSignerCertOptions(options *CreateSignerCertOptions, flags *pflag.FlagSet, prefix string)
func BindSignerCertOptions ¶
func BindSignerCertOptions(options *SignerCertOptions, flags *pflag.FlagSet, prefix string)
func DefaultAPIClientCAFile ¶ added in v0.4.3
func DefaultCAFilename ¶ added in v0.5.1
func DefaultCertFilename ¶
func DefaultEtcdClientCAFile ¶ added in v0.4.3
func DefaultEtcdServingCertInfo ¶ added in v0.4.3
func DefaultKeyFilename ¶
func DefaultKubeletClientCAFile ¶ added in v0.4.3
func DefaultNodeDir ¶
func DefaultRootCAFile ¶
func DefaultSerialFilename ¶
func DefaultServerCerts ¶
func DefaultServiceAccountPrivateKeyFile ¶ added in v0.5.3
func DefaultServiceAccountPublicKeyFile ¶ added in v0.5.3
func DefaultSignerName ¶
func DefaultSignerName() string
func NewCommandCreateBootstrapProjectTemplate ¶ added in v0.5.3
func NewCommandCreateClient ¶
func NewCommandCreateKeyPair ¶ added in v0.5.3
func NewCommandCreateLoginTemplate ¶ added in v1.0.6
func NewCommandNodeConfig ¶
Types ¶
type ClientCertInfo ¶
type ClientCertInfo struct { CertLocation configapi.CertInfo UnqualifiedUser string User string Groups sets.String }
func DefaultAPIClientCerts ¶ added in v0.4.3
func DefaultAPIClientCerts(certDir string) []ClientCertInfo
func DefaultClusterAdminClientCertInfo ¶
func DefaultClusterAdminClientCertInfo(certDir string) ClientCertInfo
func DefaultEtcdClientCerts ¶ added in v0.4.3
func DefaultEtcdClientCerts(certDir string) []ClientCertInfo
func DefaultKubeletClientCerts ¶ added in v0.4.3
func DefaultKubeletClientCerts(certDir string) []ClientCertInfo
func DefaultMasterEtcdClientCertInfo ¶ added in v0.4.3
func DefaultMasterEtcdClientCertInfo(certDir string) ClientCertInfo
func DefaultMasterKubeletClientCertInfo ¶ added in v0.4.3
func DefaultMasterKubeletClientCertInfo(certDir string) ClientCertInfo
func DefaultOpenshiftLoopbackClientCertInfo ¶
func DefaultOpenshiftLoopbackClientCertInfo(certDir string) ClientCertInfo
func DefaultProxyClientCertInfo ¶ added in v1.0.7
func DefaultProxyClientCertInfo(certDir string) ClientCertInfo
func DefaultProxyClientCerts ¶ added in v1.0.7
func DefaultProxyClientCerts(certDir string) []ClientCertInfo
func DefaultRegistryClientCertInfo ¶
func DefaultRegistryClientCertInfo(certDir string) ClientCertInfo
func DefaultRouterClientCertInfo ¶
func DefaultRouterClientCertInfo(certDir string) ClientCertInfo
type CreateBootstrapPolicyFileOptions ¶
type CreateBootstrapPolicyFileOptions struct { File string }
func (CreateBootstrapPolicyFileOptions) CreateBootstrapPolicyFile ¶
func (o CreateBootstrapPolicyFileOptions) CreateBootstrapPolicyFile() error
func (CreateBootstrapPolicyFileOptions) Validate ¶
func (o CreateBootstrapPolicyFileOptions) Validate(args []string) error
type CreateBootstrapProjectTemplateOptions ¶ added in v0.5.3
type CreateBootstrapProjectTemplateOptions struct {
Name string
}
func (CreateBootstrapProjectTemplateOptions) CreateBootstrapProjectTemplate ¶ added in v0.5.3
func (o CreateBootstrapProjectTemplateOptions) CreateBootstrapProjectTemplate() (*templateapi.Template, error)
func (CreateBootstrapProjectTemplateOptions) Validate ¶ added in v0.5.3
func (o CreateBootstrapProjectTemplateOptions) Validate(args []string) error
type CreateClientCertOptions ¶
type CreateClientCertOptions struct { SignerCertOptions *SignerCertOptions CertFile string KeyFile string User string Groups []string Overwrite bool Output io.Writer }
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 { SignerCertOptions *SignerCertOptions ClientDir string BaseName string User string Groups []string APIServerCAFile string APIServerURL string PublicAPIServerURL string Output io.Writer }
func (CreateClientOptions) CreateClientFolder ¶
func (o CreateClientOptions) CreateClientFolder() error
func (CreateClientOptions) Validate ¶
func (o CreateClientOptions) Validate(args []string) error
type CreateKeyPairOptions ¶ added in v0.5.3
type CreateKeyPairOptions struct { PublicKeyFile string PrivateKeyFile string Overwrite bool Output io.Writer }
func (CreateKeyPairOptions) CreateKeyPair ¶ added in v0.5.3
func (o CreateKeyPairOptions) CreateKeyPair() error
func (CreateKeyPairOptions) Validate ¶ added in v0.5.3
func (o CreateKeyPairOptions) Validate(args []string) error
type CreateKubeConfigOptions ¶
type CreateKubeConfigOptions struct { APIServerURL string PublicAPIServerURL string APIServerCAFile string CertFile string KeyFile string ContextNamespace string KubeConfigFile string Output io.Writer }
func (CreateKubeConfigOptions) CreateKubeConfig ¶
func (o CreateKubeConfigOptions) CreateKubeConfig() (*clientcmdapi.Config, error)
func (CreateKubeConfigOptions) Validate ¶
func (o CreateKubeConfigOptions) Validate(args []string) error
type CreateLoginTemplateOptions ¶ added in v1.0.6
type CreateLoginTemplateOptions struct{}
func (CreateLoginTemplateOptions) Validate ¶ added in v1.0.6
func (o CreateLoginTemplateOptions) Validate(args []string) error
type CreateMasterCertsOptions ¶
type CreateMasterCertsOptions struct { CertDir string SignerName string Hostnames []string APIServerURL string PublicAPIServerURL string Overwrite bool Output io.Writer }
func (CreateMasterCertsOptions) CreateMasterCerts ¶
func (o CreateMasterCertsOptions) CreateMasterCerts() error
func (CreateMasterCertsOptions) Validate ¶
func (o CreateMasterCertsOptions) Validate(args []string) error
type CreateNodeConfigOptions ¶
type CreateNodeConfigOptions struct { SignerCertOptions *SignerCertOptions NodeConfigDir string NodeName string Hostnames []string VolumeDir string ImageTemplate variable.ImageTemplate AllowDisabledDocker bool DNSDomain string DNSIP string ListenAddr flagtypes.Addr ClientCertFile string ClientKeyFile string ServerCertFile string ServerKeyFile string NodeClientCAFile string APIServerCAFile string APIServerURL string Output io.Writer NetworkPluginName 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) MakeAPIServerCA ¶ added in v0.4.3
func (o CreateNodeConfigOptions) MakeAPIServerCA(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) MakeNodeClientCA ¶ added in v0.4.3
func (o CreateNodeConfigOptions) MakeNodeClientCA(clientCopyOfCAFile string) error
func (CreateNodeConfigOptions) MakeNodeConfig ¶
func (o CreateNodeConfigOptions) MakeNodeConfig(serverCertFile, serverKeyFile, nodeClientCAFile, 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) UseNodeClientCA ¶ added in v0.4.3
func (o CreateNodeConfigOptions) UseNodeClientCA() bool
func (CreateNodeConfigOptions) UseTLS ¶
func (o CreateNodeConfigOptions) UseTLS() bool
func (CreateNodeConfigOptions) Validate ¶
func (o CreateNodeConfigOptions) Validate(args []string) error
type CreateServerCertOptions ¶
type CreateServerCertOptions struct { SignerCertOptions *SignerCertOptions CertFile string KeyFile string Hostnames []string Overwrite bool Output io.Writer }
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 Output io.Writer Overwrite bool }
func (CreateSignerCertOptions) CreateSignerCert ¶
func (o CreateSignerCertOptions) CreateSignerCert() (*crypto.CA, error)
func (CreateSignerCertOptions) Validate ¶
func (o CreateSignerCertOptions) Validate(args []string) 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
type SignerCertOptions ¶ added in v1.0.3
type SignerCertOptions struct { CertFile string KeyFile string SerialFile string // contains filtered or unexported fields }
func NewDefaultSignerCertOptions ¶ added in v1.0.6
func NewDefaultSignerCertOptions() *SignerCertOptions
func (*SignerCertOptions) Validate ¶ added in v1.0.3
func (o *SignerCertOptions) Validate() error
Source Files ¶
- create_bootstrap_project_template.go
- create_bootstrappolicy_file.go
- create_client.go
- create_clientcert.go
- create_keypair.go
- create_kubeconfig.go
- create_login_template.go
- create_mastercerts.go
- create_nodeconfig.go
- create_servercert.go
- create_signercert.go
- default_certs.go
- overwrite_bootstrappolicy.go
- signer_cert_args.go
Click to show internal directories.
Click to hide internal directories.