Documentation ¶
Index ¶
- Constants
- Variables
- func Execute()
- func GetRootCommand() *cobra.Command
- func NewAgentCmd(p common.OptionsProvider) *cobra.Command
- func NewAgentCtrlInit(p common.OptionsProvider) *cobra.Command
- func NewAgentCtrlRaftJoin(p common.OptionsProvider) *cobra.Command
- func NewAgentCtrlRaftList(p common.OptionsProvider) *cobra.Command
- func NewCmdAdhoc(out io.Writer, errOut io.Writer) *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 NewCmdCreateEnvironment(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdExecute(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdExecuteController(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdInit(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdInstall(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdInstallAnsible(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdInstallTerraformProviderEdgeController(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdInstallZitiALL(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdInstallZitiController(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdInstallZitiEdgeTunnel(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdInstallZitiProxC(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdInstallZitiRouter(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdInstallZitiTunnel(out io.Writer, errOut io.Writer) *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 NewCmdPing(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdPlaybook(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdPs(p common.OptionsProvider) *cobra.Command
- func NewCmdRoot(in io.Reader, out, err io.Writer, cmd *cobra.Command) *cobra.Command
- func NewCmdUnInstall(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdUnInstallZitiController(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdUnInstallZitiEdgeTunnel(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdUnInstallZitiProxC(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdUnInstallZitiRouter(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdUnInstallZitiTunnel(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdUpdate(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdUpgrade(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdUpgradeZiti(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdUpgradeZitiController(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdUpgradeZitiEdgeTunnel(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdUpgradeZitiProxC(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdUpgradeZitiRouter(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdUpgradeZitiTunnel(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdUse(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdVersion(out io.Writer, errOut io.Writer) *cobra.Command
- func NewForgetLinkAgentCmd(p common.OptionsProvider) *cobra.Command
- func NewRootCommand(in io.Reader, out, err io.Writer) *cobra.Command
- func NewRouteCmd(p common.OptionsProvider) *cobra.Command
- func NewSimpleAgentCustomCmd(name string, appId AgentAppId, op byte, p common.OptionsProvider) *cobra.Command
- func NewSimpleChAgentCustomCmd(name string, appId AgentAppId, op int32, p common.OptionsProvider) *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 AdhocOptions
- type AgentAppId
- type AgentCtrlInitOptions
- type AgentCtrlRaftJoinOptions
- type AgentCtrlRaftListOptions
- type AgentRouteAction
- type ArtOptions
- type CommonOptions
- type ConfigTemplateValues
- type ControllerHealthCheckValues
- type ControllerTemplateValues
- type ControllerWebListenerValues
- type CreateConfigControllerOptions
- type CreateConfigEnvironmentOptions
- type CreateConfigOptions
- type CreateConfigRouterOptions
- type CreateEnvironmentOptions
- type EdgeControllerValues
- type EdgeRouterTemplateValues
- type EnvVar
- type EnvVariableTemplateData
- type ExecuteControllerOptions
- type ExecuteFlags
- type ExecuteOptions
- type ForgetLinkAgentAction
- type IdentityConfigFile
- type InitFlags
- type InitOptions
- type InstallAnsibleOptions
- type InstallOptions
- type InstallTerraformProviderEdgeControllerOptions
- type InstallZitiALLOptions
- type InstallZitiControllerOptions
- type InstallZitiEdgeTunnelOptions
- type InstallZitiProxCOptions
- type InstallZitiRouterOptions
- type InstallZitiTunnelOptions
- 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 PingOptions
- type PlaybookOptions
- type PsAction
- type RootCmd
- type RouterForwarderTemplateValues
- type RouterListenerTemplateValues
- type RouterTemplateValues
- type SimpleAgentAction
- type SimpleChAgentCmdOptions
- type UnInstallOptions
- type UnInstallZitiControllerOptions
- type UnInstallZitiEdgeTunnelOptions
- type UnInstallZitiProxCOptions
- type UnInstallZitiRouterOptions
- type UnInstallZitiTunnelOptions
- type UpdateOptions
- type UpgradeOptions
- type UpgradeZitiControllerOptions
- type UpgradeZitiEdgeTunnelOptions
- type UpgradeZitiOptions
- type UpgradeZitiProxCOptions
- type UpgradeZitiRouterOptions
- type UpgradeZitiTunnelOptions
- type UseOptions
- type VersionOptions
- type WSSRouterTemplateValues
Constants ¶
const ( AgentAppController = AgentAppId(controller.AgentAppId) AgentAppRouter = AgentAppId(router.AgentAppId) )
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 ¶ added in v0.25.9
func NewAgentCmd ¶ added in v0.25.2
func NewAgentCmd(p common.OptionsProvider) *cobra.Command
func NewAgentCtrlInit ¶ added in v0.25.11
func NewAgentCtrlInit(p common.OptionsProvider) *cobra.Command
func NewAgentCtrlRaftJoin ¶ added in v0.25.11
func NewAgentCtrlRaftJoin(p common.OptionsProvider) *cobra.Command
func NewAgentCtrlRaftList ¶ added in v0.25.11
func NewAgentCtrlRaftList(p common.OptionsProvider) *cobra.Command
func NewCmdAdhoc ¶
NewCmdAdhoc creates the command
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 ¶ added in v0.24.9
NewCmdCreateConfigEnvironment creates a command object for the "environment" command
func NewCmdCreateConfigRouter ¶
NewCmdCreateConfigRouter creates a command object for the "router" command
func NewCmdCreateConfigRouterEdge ¶ added in v0.24.9
NewCmdCreateConfigRouterEdge creates a command object for the "edge" command
func NewCmdCreateConfigRouterFabric ¶ added in v0.24.9
NewCmdCreateConfigRouterFabric creates a command object for the "fabric" command
func NewCmdCreateEnvironment ¶
NewCmdCreateEnvironment creates a command object for the "create" command
func NewCmdExecute ¶
NewCmdExecute Executes a command object for the "Execute" command
func NewCmdExecuteController ¶
NewCmdExecuteController creates a command object for the "create" command
func NewCmdInit ¶
NewCmdInit creates a command object for the generic "init" action
func NewCmdInstall ¶
NewCmdInstall creates the command
func NewCmdInstallAnsible ¶
NewCmdInstallAnsible defines the command
func NewCmdInstallTerraformProviderEdgeController ¶
NewCmdInstallTerraformProviderEdgeController defines the command
func NewCmdInstallZitiALL ¶
NewCmdInstallZitiALL defines the command
func NewCmdInstallZitiController ¶
NewCmdInstallZitiController defines the command
func NewCmdInstallZitiEdgeTunnel ¶ added in v0.16.3
NewCmdInstallZitiEdgeTunnel defines the command
func NewCmdInstallZitiProxC ¶
NewCmdInstallZitiProxC defines the command
func NewCmdInstallZitiRouter ¶
NewCmdInstallZitiRouter defines the command
func NewCmdInstallZitiTunnel ¶
NewCmdInstallZitiTunnel defines the command
func NewCmdLogFormat ¶ added in v0.17.8
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 NewCmdPing ¶
NewCmdPing creates the command
func NewCmdPs ¶
func NewCmdPs(p common.OptionsProvider) *cobra.Command
NewCmdPs Pss a command object for the "Ps" command
func NewCmdRoot ¶
func NewCmdUnInstall ¶
NewCmdUnInstall creates the command
func NewCmdUnInstallZitiController ¶
NewCmdUnInstallZitiController defines the command
func NewCmdUnInstallZitiEdgeTunnel ¶ added in v0.16.3
NewCmdUnInstallZitiEdgeTunnel defines the command
func NewCmdUnInstallZitiProxC ¶
NewCmdUnInstallZitiProxC defines the command
func NewCmdUnInstallZitiRouter ¶
NewCmdUnInstallZitiRouter defines the command
func NewCmdUnInstallZitiTunnel ¶
NewCmdUnInstallZitiTunnel defines the command
func NewCmdUpdate ¶
NewCmdUpdate creates a command object for the "update" command
func NewCmdUpgrade ¶
NewCmdUpgrade creates the command
func NewCmdUpgradeZiti ¶
NewCmdUpgradeZiti defines the command
func NewCmdUpgradeZitiController ¶
NewCmdUpgradeZitiController defines the command
func NewCmdUpgradeZitiEdgeTunnel ¶ added in v0.16.3
NewCmdUpgradeZitiEdgeTunnel defines the command
func NewCmdUpgradeZitiProxC ¶
NewCmdUpgradeZitiProxC defines the command
func NewCmdUpgradeZitiRouter ¶
NewCmdUpgradeZitiRouter defines the command
func NewCmdUpgradeZitiTunnel ¶
NewCmdUpgradeZitiTunnel defines the command
func NewForgetLinkAgentCmd ¶ added in v0.25.7
func NewForgetLinkAgentCmd(p common.OptionsProvider) *cobra.Command
func NewRootCommand ¶ added in v0.25.11
func NewRouteCmd ¶ added in v0.25.5
func NewRouteCmd(p common.OptionsProvider) *cobra.Command
func NewSimpleAgentCustomCmd ¶ added in v0.25.2
func NewSimpleAgentCustomCmd(name string, appId AgentAppId, op byte, p common.OptionsProvider) *cobra.Command
func NewSimpleChAgentCustomCmd ¶ added in v0.25.11
func NewSimpleChAgentCustomCmd(name string, appId AgentAppId, op int32, p common.OptionsProvider) *cobra.Command
func NewUnwrapIdentityFileCommand ¶ added in v0.20.5
func SetControllerIdentity ¶ added in v0.24.9
func SetControllerIdentity(data *ControllerTemplateValues)
func SetControllerIdentityCA ¶ added in v0.24.9
func SetControllerIdentityCA(c *ControllerTemplateValues)
func SetControllerIdentityCert ¶ added in v0.24.9
func SetControllerIdentityCert(c *ControllerTemplateValues)
func SetControllerIdentityKey ¶ added in v0.24.9
func SetControllerIdentityKey(c *ControllerTemplateValues)
func SetControllerIdentityServerCert ¶ added in v0.24.9
func SetControllerIdentityServerCert(c *ControllerTemplateValues)
func SetEdgeConfig ¶ added in v0.24.9
func SetEdgeConfig(data *ControllerTemplateValues)
func SetEdgeSigningCert ¶ added in v0.24.9
func SetEdgeSigningCert(c *ControllerTemplateValues)
func SetEdgeSigningKey ¶ added in v0.24.9
func SetEdgeSigningKey(c *ControllerTemplateValues)
func SetWebConfig ¶ added in v0.24.9
func SetWebConfig(data *ControllerTemplateValues)
func SetWebIdentityCA ¶ added in v0.24.9
func SetWebIdentityCA(c *ControllerTemplateValues)
func SetWebIdentityCert ¶ added in v0.24.9
func SetWebIdentityCert(c *ControllerTemplateValues)
func SetWebIdentityKey ¶ added in v0.24.9
func SetWebIdentityKey(c *ControllerTemplateValues)
func SetWebIdentityServerCert ¶ added in v0.24.9
func SetWebIdentityServerCert(c *ControllerTemplateValues)
func SetZitiRouterIdentity ¶ added in v0.24.9
func SetZitiRouterIdentity(r *RouterTemplateValues, routerName string)
func SetZitiRouterIdentityCA ¶ added in v0.24.9
func SetZitiRouterIdentityCA(r *RouterTemplateValues, routerName string)
func SetZitiRouterIdentityCert ¶ added in v0.24.9
func SetZitiRouterIdentityCert(r *RouterTemplateValues, routerName string)
func SetZitiRouterIdentityKey ¶ added in v0.24.9
func SetZitiRouterIdentityKey(r *RouterTemplateValues, routerName string)
func SetZitiRouterIdentityServerCert ¶ added in v0.24.9
func SetZitiRouterIdentityServerCert(r *RouterTemplateValues, routerName string)
Types ¶
type AdhocOptions ¶
type AdhocOptions struct {
CommonOptions
}
AdhocOptions are the flags for delete commands
type AgentAppId ¶ added in v0.25.2
type AgentAppId byte
type AgentCtrlInitOptions ¶ added in v0.25.11
type AgentCtrlInitOptions struct {
agentcli.AgentOptions
}
func (*AgentCtrlInitOptions) Run ¶ added in v0.25.11
func (o *AgentCtrlInitOptions) Run() error
Run implements the command
type AgentCtrlRaftJoinOptions ¶ added in v0.25.11
type AgentCtrlRaftJoinOptions struct { agentcli.AgentOptions Voter bool MemberId string }
func (*AgentCtrlRaftJoinOptions) Run ¶ added in v0.25.11
func (o *AgentCtrlRaftJoinOptions) Run() error
Run implements the command
type AgentCtrlRaftListOptions ¶ added in v0.25.11
type AgentCtrlRaftListOptions struct {
agentcli.AgentOptions
}
func (*AgentCtrlRaftListOptions) Run ¶ added in v0.25.11
func (o *AgentCtrlRaftListOptions) Run() error
Run implements the command
type AgentRouteAction ¶ added in v0.25.5
type AgentRouteAction struct { agentcli.AgentOptions CtrlListener string }
func (*AgentRouteAction) Run ¶ added in v0.25.5
func (self *AgentRouteAction) Run() error
Run implements the command
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 ¶ added in v0.25.5
func (options *CommonOptions) AddCommonFlags(cmd *cobra.Command)
func (*CommonOptions) GetZitiComponent ¶
func (o *CommonOptions) GetZitiComponent(p string) (string, error)
type ConfigTemplateValues ¶ added in v0.24.9
type ConfigTemplateValues struct { ZitiHome string Hostname string Controller ControllerTemplateValues Router RouterTemplateValues }
type ControllerHealthCheckValues ¶ added in v0.24.9
type ControllerTemplateValues ¶ added in v0.24.9
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 ControllerWebListenerValues ¶ added in v0.24.9
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 ¶ added in v0.24.9
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 CreateEnvironmentOptions ¶
type CreateEnvironmentOptions struct { CommonOptions EnvName string }
CreateEnvironmentOptions the options for the create spring command
func (*CreateEnvironmentOptions) Run ¶
func (o *CreateEnvironmentOptions) Run() error
Run implements this command
type EdgeControllerValues ¶ added in v0.24.9
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 EdgeRouterTemplateValues ¶ added in v0.24.9
type EnvVariableTemplateData ¶ added in v0.25.3
type ExecuteControllerOptions ¶
type ExecuteControllerOptions struct { ExecuteOptions CtrlListener string }
ExecuteControllerOptions the options for the create spring command
func (*ExecuteControllerOptions) Run ¶
func (o *ExecuteControllerOptions) Run() error
Run implements the command
type ExecuteFlags ¶
type ExecuteFlags struct {
Identity string
}
type ExecuteOptions ¶
type ExecuteOptions struct { CommonOptions Flags ExecuteFlags DisableImport bool OutDir string }
ExecuteOptions contains the command line options
type ForgetLinkAgentAction ¶ added in v0.25.7
type ForgetLinkAgentAction struct {
agentcli.AgentOptions
}
func (*ForgetLinkAgentAction) Run ¶ added in v0.25.7
func (self *ForgetLinkAgentAction) Run() error
Run implements the command
type IdentityConfigFile ¶ added in v0.20.5
type InitOptions ¶
type InitOptions struct { CommonOptions Flags InitFlags }
InitOptions the flags for running init
func (*InitOptions) Run ¶
func (o *InitOptions) Run() error
type InstallAnsibleOptions ¶
type InstallAnsibleOptions struct { InstallOptions Version string }
InstallAnsibleOptions the options for the install command
func (*InstallAnsibleOptions) Run ¶
func (o *InstallAnsibleOptions) Run() error
Run implements the command
type InstallOptions ¶
type InstallOptions struct {
CommonOptions
}
InstallOptions are the flags for delete commands
type InstallTerraformProviderEdgeControllerOptions ¶
type InstallTerraformProviderEdgeControllerOptions struct { InstallOptions Version string Branch string }
InstallTerraformProviderEdgeControllerOptions the options for the upgrade ziti-tunnel command
func (*InstallTerraformProviderEdgeControllerOptions) Run ¶
func (o *InstallTerraformProviderEdgeControllerOptions) Run() error
Run implements the command
type InstallZitiALLOptions ¶
type InstallZitiALLOptions struct { InstallOptions Version string }
InstallZitiALLOptions the options for the upgrade ziti-channel command
func (*InstallZitiALLOptions) Run ¶
func (o *InstallZitiALLOptions) Run() error
Run implements the command
type InstallZitiControllerOptions ¶
type InstallZitiControllerOptions struct { InstallOptions Version string }
InstallZitiControllerOptions the options for the upgrade ziti-controller command
func (*InstallZitiControllerOptions) Run ¶
func (o *InstallZitiControllerOptions) Run() error
Run implements the command
type InstallZitiEdgeTunnelOptions ¶ added in v0.16.3
type InstallZitiEdgeTunnelOptions struct { InstallOptions Version string }
InstallZitiEdgeTunnelOptions the options for the upgrade ziti-edge-tunnel command
func (*InstallZitiEdgeTunnelOptions) Run ¶ added in v0.16.3
func (o *InstallZitiEdgeTunnelOptions) Run() error
Run implements the command
type InstallZitiProxCOptions ¶
type InstallZitiProxCOptions struct { InstallOptions Version string }
InstallZitiProxCOptions the options for the upgrade ziti-prox-c command
func (*InstallZitiProxCOptions) Run ¶
func (o *InstallZitiProxCOptions) Run() error
Run implements the command
type InstallZitiRouterOptions ¶
type InstallZitiRouterOptions struct { InstallOptions Version string }
InstallZitiRouterOptions the options for the upgrade ziti-router command
func (*InstallZitiRouterOptions) Run ¶
func (o *InstallZitiRouterOptions) Run() error
Run implements the command
type InstallZitiTunnelOptions ¶
type InstallZitiTunnelOptions struct { InstallOptions Version string }
InstallZitiTunnelOptions the options for the upgrade ziti-tunnel command
func (*InstallZitiTunnelOptions) Run ¶
func (o *InstallZitiTunnelOptions) Run() error
Run implements the command
type LogFormatOptions ¶ added in v0.17.8
type LogFormatOptions struct { CommonOptions // contains filtered or unexported fields }
AgentOptions contains the command line options
func (*LogFormatOptions) Run ¶ added in v0.17.8
func (o *LogFormatOptions) Run() error
Run implements this command
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 PingOptions ¶
type PingOptions struct {
CommonOptions
}
PingOptions are the flags for delete commands
type PlaybookOptions ¶
type PlaybookOptions struct {
CommonOptions
}
type PsAction ¶ added in v0.25.5
type PsAction struct {
agentcli.AgentOptions
}
type RouterForwarderTemplateValues ¶ added in v0.24.9
type RouterListenerTemplateValues ¶ added in v0.24.9
type RouterTemplateValues ¶ added in v0.24.9
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 }
type SimpleAgentAction ¶ added in v0.25.5
type SimpleAgentAction struct {
agentcli.AgentOptions
}
func (*SimpleAgentAction) Run ¶ added in v0.25.5
func (self *SimpleAgentAction) Run(appId AgentAppId, op byte) error
Run implements the command
type SimpleChAgentCmdOptions ¶ added in v0.25.11
type SimpleChAgentCmdOptions struct { agentcli.AgentOptions // contains filtered or unexported fields }
func (*SimpleChAgentCmdOptions) Run ¶ added in v0.25.11
func (o *SimpleChAgentCmdOptions) Run(appId AgentAppId) error
Run implements the command
type UnInstallOptions ¶
type UnInstallOptions struct {
CommonOptions
}
UnInstallOptions are the flags for delete commands
type UnInstallZitiControllerOptions ¶
type UnInstallZitiControllerOptions struct { UnInstallOptions Version string }
UnInstallZitiControllerOptions the options for the upgrade ziti-controller command
func (*UnInstallZitiControllerOptions) Run ¶
func (o *UnInstallZitiControllerOptions) Run() error
Run implements the command
type UnInstallZitiEdgeTunnelOptions ¶ added in v0.16.3
type UnInstallZitiEdgeTunnelOptions struct { UnInstallOptions Version string }
UnInstallZitiEdgeTunnelOptions the options for the upgrade ziti-edge-tunnel command
func (*UnInstallZitiEdgeTunnelOptions) Run ¶ added in v0.16.3
func (o *UnInstallZitiEdgeTunnelOptions) Run() error
Run implements the command
type UnInstallZitiProxCOptions ¶
type UnInstallZitiProxCOptions struct { UnInstallOptions Version string }
UnInstallZitiProxCOptions the options for the upgrade ziti-prox-c command
func (*UnInstallZitiProxCOptions) Run ¶
func (o *UnInstallZitiProxCOptions) Run() error
Run implements the command
type UnInstallZitiRouterOptions ¶
type UnInstallZitiRouterOptions struct { UnInstallOptions Version string }
UnInstallZitiRouterOptions the options for the upgrade ziti-router command
func (*UnInstallZitiRouterOptions) Run ¶
func (o *UnInstallZitiRouterOptions) Run() error
Run implements the command
type UnInstallZitiTunnelOptions ¶
type UnInstallZitiTunnelOptions struct { UnInstallOptions Version string }
UnInstallZitiTunnelOptions the options for the upgrade ziti-tunnel command
func (*UnInstallZitiTunnelOptions) Run ¶
func (o *UnInstallZitiTunnelOptions) Run() error
Run implements the command
type UpdateOptions ¶
type UpdateOptions struct { CommonOptions DisableImport bool OutDir string }
Update contains the command line options
type UpgradeOptions ¶
type UpgradeOptions struct {
CommonOptions
}
UpgradeOptions are the flags for delete commands
type UpgradeZitiControllerOptions ¶
type UpgradeZitiControllerOptions struct { CommonOptions Version string }
UpgradeZitiControllerOptions the options for the upgrade ziti-controller command
func (*UpgradeZitiControllerOptions) Run ¶
func (o *UpgradeZitiControllerOptions) Run() error
Run implements the command
type UpgradeZitiEdgeTunnelOptions ¶ added in v0.16.3
type UpgradeZitiEdgeTunnelOptions struct { CommonOptions Version string }
UpgradeZitiEdgeTunnelOptions the options for the upgrade ziti-edge-tunnel command
func (*UpgradeZitiEdgeTunnelOptions) Run ¶ added in v0.16.3
func (o *UpgradeZitiEdgeTunnelOptions) Run() error
Run implements the command
type UpgradeZitiOptions ¶
type UpgradeZitiOptions struct { CommonOptions Version string }
UpgradeZitiOptions the options for the create spring command
func (*UpgradeZitiOptions) Run ¶
func (o *UpgradeZitiOptions) Run() error
Run implements the command
type UpgradeZitiProxCOptions ¶
type UpgradeZitiProxCOptions struct { CommonOptions Version string }
UpgradeZitiProxCOptions the options for the upgrade ziti-prox-c command
func (*UpgradeZitiProxCOptions) Run ¶
func (o *UpgradeZitiProxCOptions) Run() error
Run implements the command
type UpgradeZitiRouterOptions ¶
type UpgradeZitiRouterOptions struct { CommonOptions Version string }
UpgradeZitiRouterOptions the options for the upgrade ziti-router command
func (*UpgradeZitiRouterOptions) Run ¶
func (o *UpgradeZitiRouterOptions) Run() error
Run implements the command
type UpgradeZitiTunnelOptions ¶
type UpgradeZitiTunnelOptions struct { CommonOptions Version string }
UpgradeZitiTunnelOptions the options for the upgrade ziti-tunnel command
func (*UpgradeZitiTunnelOptions) Run ¶
func (o *UpgradeZitiTunnelOptions) Run() error
Run implements the command
type UseOptions ¶
type UseOptions struct { InstallOptions Version string Branch string }
UseOptions are the flags for delete commands
type VersionOptions ¶
type VersionOptions struct { CommonOptions Container string NoVersionCheck bool }
type WSSRouterTemplateValues ¶ added in v0.24.9
Source Files ¶
- adhoc.go
- agent.go
- agent_ch_simple.go
- agent_controller_init.go
- agent_controller_raft_join.go
- agent_controller_raft_list.go
- agent_router_add_route.go
- agent_router_forget_link.go
- agent_simple.go
- art.go
- cmd.go
- common.go
- common_commands.go
- common_init.go
- common_install.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
- create_environment.go
- execute.go
- execute_controller.go
- init.go
- install.go
- install_ansible.go
- install_terraform_provider_edge_controller.go
- install_ziti_ALL.go
- install_ziti_controller.go
- install_ziti_edge_tunnel.go
- install_ziti_prox_c.go
- install_ziti_router.go
- install_ziti_tunnel.go
- log_filter.go
- ping.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
- playbook.go
- ps.go
- uninstall.go
- uninstall_ziti_controller.go
- uninstall_ziti_edge_tunnel.go
- uninstall_ziti_proxy_c.go
- uninstall_ziti_router.go
- uninstall_ziti_tunnel.go
- unwrap_identity.go
- update.go
- upgrade.go
- upgrade_ziti.go
- upgrade_ziti_controller.go
- upgrade_ziti_edge_tunnel.go
- upgrade_ziti_prox_c.go
- upgrade_ziti_router.go
- upgrade_ziti_tunnel.go
- use.go
- version.go