cmd

package
v0.26.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 70 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentAppController = AgentAppId(controller.AgentAppId)
	AgentAppRouter     = AgentAppId(router.AgentAppId)
)

Variables

Functions

func Execute

func Execute()

Execute is ...

func GetRootCommand added in v0.25.9

func GetRootCommand() *cobra.Command

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

func NewCmdAdhoc(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdAdhoc creates the command

func NewCmdArt

func NewCmdArt(out io.Writer, errOut io.Writer) *cobra.Command

func NewCmdCreate

func NewCmdCreate(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdCreate creates a command object for the "create" command

func NewCmdCreateConfig

func NewCmdCreateConfig() *cobra.Command

NewCmdCreateConfig creates a command object for the "config" command

func NewCmdCreateConfigController

func NewCmdCreateConfigController() *cobra.Command

NewCmdCreateConfigController creates a command object for the "create" command

func NewCmdCreateConfigEnvironment added in v0.24.9

func NewCmdCreateConfigEnvironment() *cobra.Command

NewCmdCreateConfigEnvironment creates a command object for the "environment" command

func NewCmdCreateConfigRouter

func NewCmdCreateConfigRouter() *cobra.Command

NewCmdCreateConfigRouter creates a command object for the "router" command

func NewCmdCreateConfigRouterEdge added in v0.24.9

func NewCmdCreateConfigRouterEdge() *cobra.Command

NewCmdCreateConfigRouterEdge creates a command object for the "edge" command

func NewCmdCreateConfigRouterFabric added in v0.24.9

func NewCmdCreateConfigRouterFabric() *cobra.Command

NewCmdCreateConfigRouterFabric creates a command object for the "fabric" command

func NewCmdCreateEnvironment

func NewCmdCreateEnvironment(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdCreateEnvironment creates a command object for the "create" command

func NewCmdExecute

func NewCmdExecute(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdExecute Executes a command object for the "Execute" command

func NewCmdExecuteController

func NewCmdExecuteController(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdExecuteController creates a command object for the "create" command

func NewCmdInit

func NewCmdInit(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdInit creates a command object for the generic "init" action

func NewCmdInstall

func NewCmdInstall(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdInstall creates the command

func NewCmdInstallAnsible

func NewCmdInstallAnsible(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdInstallAnsible defines the command

func NewCmdInstallTerraformProviderEdgeController

func NewCmdInstallTerraformProviderEdgeController(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdInstallTerraformProviderEdgeController defines the command

func NewCmdInstallZitiALL

func NewCmdInstallZitiALL(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdInstallZitiALL defines the command

func NewCmdInstallZitiController

func NewCmdInstallZitiController(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdInstallZitiController defines the command

func NewCmdInstallZitiEdgeTunnel added in v0.16.3

func NewCmdInstallZitiEdgeTunnel(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdInstallZitiEdgeTunnel defines the command

func NewCmdInstallZitiProxC

func NewCmdInstallZitiProxC(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdInstallZitiProxC defines the command

func NewCmdInstallZitiRouter

func NewCmdInstallZitiRouter(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdInstallZitiRouter defines the command

func NewCmdInstallZitiTunnel

func NewCmdInstallZitiTunnel(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdInstallZitiTunnel defines the command

func NewCmdLogFormat added in v0.17.8

func NewCmdLogFormat(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdLogFormat a command object for the "log-format" command

func NewCmdPKI

func NewCmdPKI(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdPKI PKIs a command object for the "PKI" command

func NewCmdPKICreate

func NewCmdPKICreate(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdPKICreate creates a command object for the "create" command

func NewCmdPKICreateCA

func NewCmdPKICreateCA(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdPKICreateCA creates a command object for the "create" command

func NewCmdPKICreateCSR

func NewCmdPKICreateCSR(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdPKICreateCSR creates a command object for the "create" command

func NewCmdPKICreateClient

func NewCmdPKICreateClient(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdPKICreateClient creates a command object for the "create" command

func NewCmdPKICreateIntermediate

func NewCmdPKICreateIntermediate(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdPKICreateIntermediate creates a command object for the "create" command

func NewCmdPKICreateKey

func NewCmdPKICreateKey(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdPKICreateKey creates a command object for the "create" command

func NewCmdPKICreateServer

func NewCmdPKICreateServer(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdPKICreateServer creates a command object for the "create" command

func NewCmdPing

func NewCmdPing(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdPing creates the command

func NewCmdPlaybook

func NewCmdPlaybook(out io.Writer, errOut io.Writer) *cobra.Command

func NewCmdPs

func NewCmdPs(p common.OptionsProvider) *cobra.Command

NewCmdPs Pss a command object for the "Ps" command

func NewCmdRoot

func NewCmdRoot(in io.Reader, out, err io.Writer, cmd *cobra.Command) *cobra.Command

func NewCmdUnInstall

func NewCmdUnInstall(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdUnInstall creates the command

func NewCmdUnInstallZitiController

func NewCmdUnInstallZitiController(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdUnInstallZitiController defines the command

func NewCmdUnInstallZitiEdgeTunnel added in v0.16.3

func NewCmdUnInstallZitiEdgeTunnel(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdUnInstallZitiEdgeTunnel defines the command

func NewCmdUnInstallZitiProxC

func NewCmdUnInstallZitiProxC(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdUnInstallZitiProxC defines the command

func NewCmdUnInstallZitiRouter

func NewCmdUnInstallZitiRouter(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdUnInstallZitiRouter defines the command

func NewCmdUnInstallZitiTunnel

func NewCmdUnInstallZitiTunnel(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdUnInstallZitiTunnel defines the command

func NewCmdUpdate

func NewCmdUpdate(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdUpdate creates a command object for the "update" command

func NewCmdUpgrade

func NewCmdUpgrade(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdUpgrade creates the command

func NewCmdUpgradeZiti

func NewCmdUpgradeZiti(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdUpgradeZiti defines the command

func NewCmdUpgradeZitiController

func NewCmdUpgradeZitiController(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdUpgradeZitiController defines the command

func NewCmdUpgradeZitiEdgeTunnel added in v0.16.3

func NewCmdUpgradeZitiEdgeTunnel(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdUpgradeZitiEdgeTunnel defines the command

func NewCmdUpgradeZitiProxC

func NewCmdUpgradeZitiProxC(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdUpgradeZitiProxC defines the command

func NewCmdUpgradeZitiRouter

func NewCmdUpgradeZitiRouter(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdUpgradeZitiRouter defines the command

func NewCmdUpgradeZitiTunnel

func NewCmdUpgradeZitiTunnel(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdUpgradeZitiTunnel defines the command

func NewCmdUse

func NewCmdUse(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdUse creates the command

func NewCmdVersion

func NewCmdVersion(out io.Writer, errOut io.Writer) *cobra.Command

func NewForgetLinkAgentCmd added in v0.25.7

func NewForgetLinkAgentCmd(p common.OptionsProvider) *cobra.Command

func NewRootCommand added in v0.25.11

func NewRootCommand(in io.Reader, out, err io.Writer) *cobra.Command

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 NewUnwrapIdentityFileCommand(out io.Writer, errOut io.Writer) *cobra.Command

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

func (*AdhocOptions) Run

func (o *AdhocOptions) Run() error

Run implements this command

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

Run implements the command

type AgentCtrlRaftListOptions added in v0.25.11

type AgentCtrlRaftListOptions struct {
	agentcli.AgentOptions
}

func (*AgentCtrlRaftListOptions) Run added in v0.25.11

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
}

func (*ArtOptions) Run

func (o *ArtOptions) Run() error

Run ...

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 ControllerHealthCheckValues struct {
	Interval     time.Duration
	Timeout      time.Duration
	InitialDelay time.Duration
}

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 ControllerWebListenerValues struct {
	IdleTimeout   time.Duration
	ReadTimeout   time.Duration
	WriteTimeout  time.Duration
	MinTLSVersion string
	MaxTLSVersion string
}

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

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 EdgeRouterTemplateValues struct {
	Hostname       string
	Port           string
	IPOverride     string
	AdvertisedHost string
	LanInterface   string
}

type EnvVar added in v0.25.3

type EnvVar struct {
	Name        string
	Description string
	Value       string
}

type EnvVariableTemplateData added in v0.25.3

type EnvVariableTemplateData struct {
	OSCommentPrefix string
	OSVarDeclare    string
	EnvVars         []EnvVar
}

type ExecuteControllerOptions

type ExecuteControllerOptions struct {
	ExecuteOptions

	CtrlListener string
}

ExecuteControllerOptions the options for the create spring command

func (*ExecuteControllerOptions) Run

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

func (*ExecuteOptions) Run

func (o *ExecuteOptions) Run() error

Run implements this command

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 IdentityConfigFile struct {
	ZtAPI       string          `json:"ztAPI"`
	ID          identity.Config `json:"id"`
	ConfigTypes []string        `json:"configTypes"`
}

type InitFlags

type InitFlags struct {
	Component string
}

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

func (*InstallOptions) Run

func (o *InstallOptions) Run() error

Run implements this command

type InstallTerraformProviderEdgeControllerOptions

type InstallTerraformProviderEdgeControllerOptions struct {
	InstallOptions

	Version string
	Branch  string
}

InstallTerraformProviderEdgeControllerOptions the options for the upgrade ziti-tunnel command

func (*InstallTerraformProviderEdgeControllerOptions) Run

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

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

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

Run implements the command

type InstallZitiTunnelOptions

type InstallZitiTunnelOptions struct {
	InstallOptions

	Version string
}

InstallZitiTunnelOptions the options for the upgrade ziti-tunnel command

func (*InstallZitiTunnelOptions) Run

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 MainOptions

type MainOptions struct {
	CommonOptions
}

InitOptions the flags for running init

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

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

func (*PKICreateOptions) Run

func (o *PKICreateOptions) Run() error

Run implements this command

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

func (*PKIOptions) Run

func (o *PKIOptions) Run() error

Run implements this command

type PingOptions

type PingOptions struct {
	CommonOptions
}

PingOptions are the flags for delete commands

func (*PingOptions) Run

func (o *PingOptions) Run() error

Run implements this command

type PlaybookOptions

type PlaybookOptions struct {
	CommonOptions
}

func (*PlaybookOptions) Run

func (o *PlaybookOptions) Run() error

Run ...

type PsAction added in v0.25.5

type PsAction struct {
	agentcli.AgentOptions
}

func (*PsAction) Run added in v0.25.5

func (self *PsAction) Run() error

Run implements this command

type RootCmd

type RootCmd struct {
	// contains filtered or unexported fields
}

type RouterForwarderTemplateValues added in v0.24.9

type RouterForwarderTemplateValues struct {
	LatencyProbeInterval  time.Duration
	XgressDialQueueLength int
	XgressDialWorkerCount int
	LinkDialQueueLength   int
	LinkDialWorkerCount   int
}

type RouterListenerTemplateValues added in v0.24.9

type RouterListenerTemplateValues struct {
	ConnectTimeout    time.Duration
	GetSessionTimeout time.Duration
	BindPort          int
	OutQueueSize      int
}

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

Run implements the command

type UnInstallOptions

type UnInstallOptions struct {
	CommonOptions
}

UnInstallOptions are the flags for delete commands

func (*UnInstallOptions) Run

func (o *UnInstallOptions) Run() error

Run implements this command

type UnInstallZitiControllerOptions

type UnInstallZitiControllerOptions struct {
	UnInstallOptions

	Version string
}

UnInstallZitiControllerOptions the options for the upgrade ziti-controller command

func (*UnInstallZitiControllerOptions) Run

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

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

Run implements the command

type UnInstallZitiRouterOptions

type UnInstallZitiRouterOptions struct {
	UnInstallOptions

	Version string
}

UnInstallZitiRouterOptions the options for the upgrade ziti-router command

func (*UnInstallZitiRouterOptions) Run

Run implements the command

type UnInstallZitiTunnelOptions

type UnInstallZitiTunnelOptions struct {
	UnInstallOptions

	Version string
}

UnInstallZitiTunnelOptions the options for the upgrade ziti-tunnel command

func (*UnInstallZitiTunnelOptions) Run

Run implements the command

type UpdateOptions

type UpdateOptions struct {
	CommonOptions

	DisableImport bool
	OutDir        string
}

Update contains the command line options

func (*UpdateOptions) Run

func (o *UpdateOptions) Run() error

Run implements this command

type UpgradeOptions

type UpgradeOptions struct {
	CommonOptions
}

UpgradeOptions are the flags for delete commands

func (*UpgradeOptions) Run

func (o *UpgradeOptions) Run() error

Run implements this command

type UpgradeZitiControllerOptions

type UpgradeZitiControllerOptions struct {
	CommonOptions

	Version string
}

UpgradeZitiControllerOptions the options for the upgrade ziti-controller command

func (*UpgradeZitiControllerOptions) Run

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

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

Run implements the command

type UpgradeZitiTunnelOptions

type UpgradeZitiTunnelOptions struct {
	CommonOptions

	Version string
}

UpgradeZitiTunnelOptions the options for the upgrade ziti-tunnel command

func (*UpgradeZitiTunnelOptions) Run

Run implements the command

type UseOptions

type UseOptions struct {
	InstallOptions

	Version string
	Branch  string
}

UseOptions are the flags for delete commands

func (*UseOptions) Run

func (o *UseOptions) Run() error

Run implements the command

type VersionOptions

type VersionOptions struct {
	CommonOptions

	Container      string
	NoVersionCheck bool
}

func (*VersionOptions) Run

func (o *VersionOptions) Run() error

Run ...

type WSSRouterTemplateValues added in v0.24.9

type WSSRouterTemplateValues struct {
	WriteTimeout      time.Duration
	ReadTimeout       time.Duration
	IdleTimeout       time.Duration
	PongTimeout       time.Duration
	PingInterval      time.Duration
	HandshakeTimeout  time.Duration
	ReadBufferSize    int
	WriteBufferSize   int
	EnableCompression bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL