Documentation ¶
Index ¶
- Variables
- func Execute()
- func GetRootCommand() *cobra.Command
- func NewCmdArt(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdCreate(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdCreateConfig() *cobra.Command
- func NewCmdCreateConfigController() *cobra.Command
- func NewCmdCreateConfigEnvironment() *cobra.Command
- func NewCmdCreateConfigRouter() *cobra.Command
- func NewCmdCreateConfigRouterEdge() *cobra.Command
- func NewCmdCreateConfigRouterFabric() *cobra.Command
- func NewCmdLogFormat(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdPKI(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdPKICreate(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdPKICreateCA(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdPKICreateCSR(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdPKICreateClient(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdPKICreateIntermediate(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdPKICreateKey(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdPKICreateServer(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdRoot(in io.Reader, out, err io.Writer, cmd *cobra.Command) *cobra.Command
- func NewRootCommand(in io.Reader, out, err io.Writer) *cobra.Command
- func NewUnwrapIdentityFileCommand(out io.Writer, errOut io.Writer) *cobra.Command
- func SetControllerIdentity(data *ControllerTemplateValues)
- func SetControllerIdentityCA(c *ControllerTemplateValues)
- func SetControllerIdentityCert(c *ControllerTemplateValues)
- func SetControllerIdentityKey(c *ControllerTemplateValues)
- func SetControllerIdentityServerCert(c *ControllerTemplateValues)
- func SetEdgeConfig(data *ControllerTemplateValues)
- func SetEdgeSigningCert(c *ControllerTemplateValues)
- func SetEdgeSigningKey(c *ControllerTemplateValues)
- func SetWebConfig(data *ControllerTemplateValues)
- func SetWebIdentityCA(c *ControllerTemplateValues)
- func SetWebIdentityCert(c *ControllerTemplateValues)
- func SetWebIdentityKey(c *ControllerTemplateValues)
- func SetWebIdentityServerCert(c *ControllerTemplateValues)
- func SetZitiRouterIdentity(r *RouterTemplateValues, routerName string)
- func SetZitiRouterIdentityCA(r *RouterTemplateValues, routerName string)
- func SetZitiRouterIdentityCert(r *RouterTemplateValues, routerName string)
- func SetZitiRouterIdentityKey(r *RouterTemplateValues, routerName string)
- func SetZitiRouterIdentityServerCert(r *RouterTemplateValues, routerName string)
- type ArtOptions
- type CommonOptions
- type ConfigTemplateValues
- type ControllerHealthCheckValues
- type ControllerTemplateValues
- type ControllerWebListenerValues
- type CreateConfigControllerOptions
- type CreateConfigEnvironmentOptions
- type CreateConfigOptions
- type CreateConfigRouterOptions
- type EdgeControllerValues
- type EdgeRouterTemplateValues
- type EnvVar
- type EnvVariableTemplateData
- type IdentityConfigFile
- type LogFormatOptions
- type MainOptions
- type PKICreateCAOptions
- type PKICreateCSROptions
- type PKICreateClientOptions
- type PKICreateIntermediateOptions
- type PKICreateKeyOptions
- type PKICreateOptions
- func (o *PKICreateOptions) ObtainCAFile() (string, error)
- func (o *PKICreateOptions) ObtainCAName(pkiroot string) (string, error)
- func (o *PKICreateOptions) ObtainCSRFile() (string, error)
- func (o *PKICreateOptions) ObtainClientCertFile() (string, error)
- func (o *PKICreateOptions) ObtainCommonName() (string, error)
- func (o *PKICreateOptions) ObtainFileName(cafile string, commonName string) string
- func (o *PKICreateOptions) ObtainIPsAndDNSNames() ([]net.IP, []string, error)
- func (o *PKICreateOptions) ObtainIntermediateCAFile() (string, error)
- func (o *PKICreateOptions) ObtainIntermediateCSRFile() (string, error)
- func (o *PKICreateOptions) ObtainKeyFile(required bool) (string, error)
- func (o *PKICreateOptions) ObtainKeyName(pkiroot string) (string, error)
- func (o *PKICreateOptions) ObtainPKICSRRequestTemplate(commonName string) *x509.CertificateRequest
- func (o *PKICreateOptions) ObtainPKIRequestTemplate(commonName string) *x509.Certificate
- func (o *PKICreateOptions) ObtainPKIRoot() (string, error)
- func (o *PKICreateOptions) ObtainServerCertFile() (string, error)
- func (o *PKICreateOptions) Run() error
- type PKICreateServerOptions
- type PKIFlags
- type PKIOptions
- type RootCmd
- type RouterForwarderTemplateValues
- type RouterListenerTemplateValues
- type RouterTemplateValues
- type WSSRouterTemplateValues
Constants ¶
This section is empty.
Variables ¶
var ZITI_COMPONENTS = []string{ c.ZITI, c.ZITI_CONTROLLER, c.ZITI_PROX_C, c.ZITI_ROUTER, c.ZITI_TUNNEL, c.ZITI_EDGE_TUNNEL, }
Functions ¶
func GetRootCommand ¶
func NewCmdCreate ¶
NewCmdCreate creates a command object for the "create" command
func NewCmdCreateConfig ¶
NewCmdCreateConfig creates a command object for the "config" command
func NewCmdCreateConfigController ¶
NewCmdCreateConfigController creates a command object for the "create" command
func NewCmdCreateConfigEnvironment ¶
NewCmdCreateConfigEnvironment creates a command object for the "environment" command
func NewCmdCreateConfigRouter ¶
NewCmdCreateConfigRouter creates a command object for the "router" command
func NewCmdCreateConfigRouterEdge ¶
NewCmdCreateConfigRouterEdge creates a command object for the "edge" command
func NewCmdCreateConfigRouterFabric ¶
NewCmdCreateConfigRouterFabric creates a command object for the "fabric" command
func NewCmdLogFormat ¶
NewCmdLogFormat a command object for the "log-format" command
func NewCmdPKICreate ¶
NewCmdPKICreate creates a command object for the "create" command
func NewCmdPKICreateCA ¶
NewCmdPKICreateCA creates a command object for the "create" command
func NewCmdPKICreateCSR ¶
NewCmdPKICreateCSR creates a command object for the "create" command
func NewCmdPKICreateClient ¶
NewCmdPKICreateClient creates a command object for the "create" command
func NewCmdPKICreateIntermediate ¶
NewCmdPKICreateIntermediate creates a command object for the "create" command
func NewCmdPKICreateKey ¶
NewCmdPKICreateKey creates a command object for the "create" command
func NewCmdPKICreateServer ¶
NewCmdPKICreateServer creates a command object for the "create" command
func NewCmdRoot ¶
func SetControllerIdentity ¶
func SetControllerIdentity(data *ControllerTemplateValues)
func SetControllerIdentityCA ¶
func SetControllerIdentityCA(c *ControllerTemplateValues)
func SetControllerIdentityCert ¶
func SetControllerIdentityCert(c *ControllerTemplateValues)
func SetControllerIdentityKey ¶
func SetControllerIdentityKey(c *ControllerTemplateValues)
func SetControllerIdentityServerCert ¶
func SetControllerIdentityServerCert(c *ControllerTemplateValues)
func SetEdgeConfig ¶
func SetEdgeConfig(data *ControllerTemplateValues)
func SetEdgeSigningCert ¶
func SetEdgeSigningCert(c *ControllerTemplateValues)
func SetEdgeSigningKey ¶
func SetEdgeSigningKey(c *ControllerTemplateValues)
func SetWebConfig ¶
func SetWebConfig(data *ControllerTemplateValues)
func SetWebIdentityCA ¶
func SetWebIdentityCA(c *ControllerTemplateValues)
func SetWebIdentityCert ¶
func SetWebIdentityCert(c *ControllerTemplateValues)
func SetWebIdentityKey ¶
func SetWebIdentityKey(c *ControllerTemplateValues)
func SetWebIdentityServerCert ¶
func SetWebIdentityServerCert(c *ControllerTemplateValues)
func SetZitiRouterIdentity ¶
func SetZitiRouterIdentity(r *RouterTemplateValues, routerName string)
func SetZitiRouterIdentityCA ¶
func SetZitiRouterIdentityCA(r *RouterTemplateValues, routerName string)
func SetZitiRouterIdentityCert ¶
func SetZitiRouterIdentityCert(r *RouterTemplateValues, routerName string)
func SetZitiRouterIdentityKey ¶
func SetZitiRouterIdentityKey(r *RouterTemplateValues, routerName string)
func SetZitiRouterIdentityServerCert ¶
func SetZitiRouterIdentityServerCert(r *RouterTemplateValues, routerName string)
Types ¶
type ArtOptions ¶
type ArtOptions struct {
CommonOptions
}
type CommonOptions ¶
type CommonOptions struct { Out io.Writer Err io.Writer Cmd *cobra.Command Args []string BatchMode bool Verbose bool Staging bool ConfigIdentity string Timeout int }
CommonOptions contains common options and helper methods
func (*CommonOptions) AddCommonFlags ¶
func (options *CommonOptions) AddCommonFlags(cmd *cobra.Command)
func (*CommonOptions) GetZitiComponent ¶
func (o *CommonOptions) GetZitiComponent(p string) (string, error)
type ConfigTemplateValues ¶
type ConfigTemplateValues struct { ZitiHome string Hostname string Controller ControllerTemplateValues Router RouterTemplateValues }
type ControllerTemplateValues ¶
type ControllerTemplateValues struct { Name string Port string AdvertisedAddress string ListenerAddress string IdentityCert string IdentityServerCert string IdentityKey string IdentityCA string MinQueuedConnects int MaxQueuedConnects int DefaultQueuedConnects int MinOutstandingConnects int MaxOutstandingConnects int DefaultOutstandingConnects int MinConnectTimeout time.Duration MaxConnectTimeout time.Duration DefaultConnectTimeout time.Duration EdgeIdentityDuration time.Duration EdgeRouterDuration time.Duration DefaultEdgeIdentityDuration time.Duration DefaultEdgeRouterDuration time.Duration Edge EdgeControllerValues WebListener ControllerWebListenerValues HealthCheck ControllerHealthCheckValues }
type CreateConfigControllerOptions ¶
type CreateConfigControllerOptions struct { CreateConfigOptions CtrlPort string MgmtListener string EdgeIdentityEnrollmentDuration time.Duration EdgeRouterEnrollmentDuration time.Duration }
CreateConfigControllerOptions the options for the create spring command
type CreateConfigEnvironmentOptions ¶
type CreateConfigEnvironmentOptions struct { CreateConfigOptions EnvVariableTemplateData // contains filtered or unexported fields }
CreateConfigEnvironmentOptions the options for the create environment command
type CreateConfigOptions ¶
type CreateConfigOptions struct { common.CommonOptions Output string DatabaseFile string }
CreateConfigOptions the options for the create config command
type CreateConfigRouterOptions ¶
type CreateConfigRouterOptions struct { CreateConfigOptions RouterName string WssEnabled bool IsPrivate bool TunnelerMode string LanInterface string }
CreateConfigRouterOptions the options for the router command
type EdgeControllerValues ¶
type EdgeControllerValues struct { AdvertisedPort string ZitiSigningCert string ZitiSigningKey string APIActivityUpdateBatchSize int APIActivityUpdateInterval time.Duration APISessionTimeout time.Duration ListenerHostPort string AdvertisedHostPort string IdentityCert string IdentityServerCert string IdentityKey string IdentityCA string }
type EnvVariableTemplateData ¶
type IdentityConfigFile ¶
type LogFormatOptions ¶
type LogFormatOptions struct { CommonOptions // contains filtered or unexported fields }
AgentOptions contains the command line options
type PKICreateCAOptions ¶
type PKICreateCAOptions struct {
PKICreateOptions
}
PKICreateCAOptions the options for the create spring command
func (*PKICreateCAOptions) Run ¶
func (o *PKICreateCAOptions) Run() error
Run implements this command
type PKICreateCSROptions ¶
type PKICreateCSROptions struct {
PKICreateOptions
}
PKICreateCSROptions the options for the create spring command
func (*PKICreateCSROptions) Run ¶
func (o *PKICreateCSROptions) Run() error
Run implements this command
type PKICreateClientOptions ¶
type PKICreateClientOptions struct {
PKICreateOptions
}
PKICreateClientOptions the options for the create spring command
func (*PKICreateClientOptions) Run ¶
func (o *PKICreateClientOptions) Run() error
Run implements this command
type PKICreateIntermediateOptions ¶
type PKICreateIntermediateOptions struct {
PKICreateOptions
}
PKICreateIntermediateOptions the options for the create spring command
func (*PKICreateIntermediateOptions) Run ¶
func (o *PKICreateIntermediateOptions) Run() error
Run implements this command
type PKICreateKeyOptions ¶
type PKICreateKeyOptions struct {
PKICreateOptions
}
PKICreateKeyOptions the options for the create spring command
func (*PKICreateKeyOptions) Run ¶
func (o *PKICreateKeyOptions) Run() error
Run implements this command
type PKICreateOptions ¶
type PKICreateOptions struct {
PKIOptions
}
PKICreateOptions the options for the create spring command
func (*PKICreateOptions) ObtainCAFile ¶
func (o *PKICreateOptions) ObtainCAFile() (string, error)
ObtainCAFile returns the value for ca-file
func (*PKICreateOptions) ObtainCAName ¶
func (o *PKICreateOptions) ObtainCAName(pkiroot string) (string, error)
ObtainCAName returns the value for ca-name
func (*PKICreateOptions) ObtainCSRFile ¶
func (o *PKICreateOptions) ObtainCSRFile() (string, error)
ObtainCSRFile returns the value for csr-file
func (*PKICreateOptions) ObtainClientCertFile ¶
func (o *PKICreateOptions) ObtainClientCertFile() (string, error)
ObtainClientCertFile returns the value for client-file
func (*PKICreateOptions) ObtainCommonName ¶
func (o *PKICreateOptions) ObtainCommonName() (string, error)
ObtainCommonName returns the value for CN
func (*PKICreateOptions) ObtainFileName ¶
func (o *PKICreateOptions) ObtainFileName(cafile string, commonName string) string
ObtainFileName returns the value for the 'name' used in the PKI request
func (*PKICreateOptions) ObtainIPsAndDNSNames ¶
func (o *PKICreateOptions) ObtainIPsAndDNSNames() ([]net.IP, []string, error)
ObtainIPsAndDNSNames returns the IP addrs and/or DNS names used in the PKI request template
func (*PKICreateOptions) ObtainIntermediateCAFile ¶
func (o *PKICreateOptions) ObtainIntermediateCAFile() (string, error)
ObtainIntermediateCAFile returns the value for intermediate-file
func (*PKICreateOptions) ObtainIntermediateCSRFile ¶
func (o *PKICreateOptions) ObtainIntermediateCSRFile() (string, error)
ObtainIntermediateCSRFile returns the value for intermediate-file
func (*PKICreateOptions) ObtainKeyFile ¶
func (o *PKICreateOptions) ObtainKeyFile(required bool) (string, error)
ObtainKeyFile returns the value for key-file
func (*PKICreateOptions) ObtainKeyName ¶
func (o *PKICreateOptions) ObtainKeyName(pkiroot string) (string, error)
ObtainKeyName returns the private key from the key-file
func (*PKICreateOptions) ObtainPKICSRRequestTemplate ¶
func (o *PKICreateOptions) ObtainPKICSRRequestTemplate(commonName string) *x509.CertificateRequest
ObtainPKICSRRequestTemplate returns the CSR 'template' used in the PKI request
func (*PKICreateOptions) ObtainPKIRequestTemplate ¶
func (o *PKICreateOptions) ObtainPKIRequestTemplate(commonName string) *x509.Certificate
ObtainPKIRequestTemplate returns the 'template' used in the PKI request
func (*PKICreateOptions) ObtainPKIRoot ¶
func (o *PKICreateOptions) ObtainPKIRoot() (string, error)
ObtainPKIRoot returns the value for pki-root
func (*PKICreateOptions) ObtainServerCertFile ¶
func (o *PKICreateOptions) ObtainServerCertFile() (string, error)
ObtainServerCertFile returns the value for server-file
type PKICreateServerOptions ¶
type PKICreateServerOptions struct {
PKICreateOptions
}
PKICreateServerOptions the options for the create spring command
func (*PKICreateServerOptions) Run ¶
func (o *PKICreateServerOptions) Run() error
Run implements this command
type PKIFlags ¶
type PKIFlags struct { PKIRoot string PKIOrganization string PKIOrganizationalUnit string PKICountry string PKILocality string PKIProvince string CAFile string CAName string CommonName string CAExpire int CAMaxpath int CAPrivateKeySize int IntermediateFile string IntermediateName string ServerFile string ServerName string ClientFile string ClientName string KeyFile string CSRFile string CSRName string KeyName string DNSName []string IP []string Email []string PKI *pki.ZitiPKI SpiffeID string }
type PKIOptions ¶
type PKIOptions struct { CommonOptions Flags PKIFlags }
PKIOptions contains the command line options
type RouterTemplateValues ¶
type RouterTemplateValues struct { Name string IsPrivate bool IsFabric bool IsWss bool TunnelerMode string IdentityCert string IdentityServerCert string IdentityKey string IdentityCA string Edge EdgeRouterTemplateValues Wss WSSRouterTemplateValues Forwarder RouterForwarderTemplateValues Listener RouterListenerTemplateValues }
Source Files ¶
- art.go
- cmd.go
- common.go
- common_commands.go
- common_init.go
- create.go
- create_config.go
- create_config_controller.go
- create_config_environment.go
- create_config_router.go
- create_config_router_common.go
- create_config_router_edge.go
- create_config_router_fabric.go
- log_filter.go
- pki.go
- pki_create.go
- pki_create_ca.go
- pki_create_client.go
- pki_create_csr.go
- pki_create_intermediate.go
- pki_create_key.go
- pki_create_server.go
- unwrap_identity.go