create

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 NewCmdCreateConfigEnvironment

func NewCmdCreateConfigEnvironment() *cobra.Command

NewCmdCreateConfigEnvironment creates a command object for the "environment" command

func NewCmdCreateConfigRouterEdge

func NewCmdCreateConfigRouterEdge(routerOptions *CreateConfigRouterOptions, data *ConfigTemplateValues) *cobra.Command

NewCmdCreateConfigRouterEdge creates a command object for the "edge" command

func NewCmdCreateConfigRouterFabric

func NewCmdCreateConfigRouterFabric(routerOptions *CreateConfigRouterOptions, data *ConfigTemplateValues) *cobra.Command

NewCmdCreateConfigRouterFabric creates a command object for the "fabric" command

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 SetCtrlAltServerCerts

func SetCtrlAltServerCerts(c *ControllerTemplateValues)

func SetEdgeConfig

func SetEdgeConfig(data *ControllerTemplateValues)

func SetEdgeSigningCert

func SetEdgeSigningCert(c *ControllerTemplateValues)

func SetEdgeSigningKey

func SetEdgeSigningKey(c *ControllerTemplateValues)

func SetRouterAltServerCerts

func SetRouterAltServerCerts(c *RouterTemplateValues)

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 BindPointsValues

type BindPointsValues struct {
	InterfaceAddress string
	InterfacePort    string
	AddressAddress   string
	AddressPort      string
}

type ConfigTemplateValues

type ConfigTemplateValues struct {
	ZitiHome              string
	HostnameOrNetworkName string

	Controller ControllerTemplateValues
	Router     RouterTemplateValues
}

func (*ConfigTemplateValues) PopulateConfigValues

func (data *ConfigTemplateValues) PopulateConfigValues()

type ControllerTemplateValues

type ControllerTemplateValues struct {
	Identity       IdentityValues
	Database       DatabaseValues
	Ctrl           CtrlValues
	HealthChecks   HealthChecksValues
	EdgeApi        EdgeApiValues
	EdgeEnrollment EdgeEnrollmentValues
	Web            WebValues
}

type CreateConfigControllerOptions

type CreateConfigControllerOptions struct {
	CreateConfigOptions

	CtrlPort                       string
	EdgeIdentityEnrollmentDuration time.Duration
	EdgeRouterEnrollmentDuration   time.Duration
	MinCluster                     int
}

CreateConfigControllerOptions the options for the create spring command

type CreateConfigEnvironmentOptions

type CreateConfigEnvironmentOptions struct {
	CreateConfigOptions
	EnvVariableTemplateData

	DisableOSVarDeclare bool
}

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 CreateControllerConfigCmd

type CreateControllerConfigCmd struct {
	*cobra.Command
	ConfigData *ConfigTemplateValues
}

func NewCmdCreateConfigController

func NewCmdCreateConfigController() *CreateControllerConfigCmd

NewCmdCreateConfigController creates a command object for the "create" command

type CtrlValues

type CtrlValues struct {
	MinQueuedConnects          int
	MaxQueuedConnects          int
	DefaultQueuedConnects      int
	MinOutstandingConnects     int
	MaxOutstandingConnects     int
	DefaultOutstandingConnects int
	MinConnectTimeout          time.Duration
	MaxConnectTimeout          time.Duration
	DefaultConnectTimeout      time.Duration
	AdvertisedAddress          string
	AdvertisedPort             string
	BindAddress                string
	AltAdvertisedAddress       string
	MinClusterSize             int
}

type DatabaseValues added in v1.1.0

type DatabaseValues struct {
	DatabaseFile string
}

type EdgeApiValues

type EdgeApiValues struct {
	APIActivityUpdateBatchSize int
	APIActivityUpdateInterval  time.Duration
	SessionTimeout             time.Duration
	Address                    string
	Port                       string
}

type EdgeEnrollmentValues

type EdgeEnrollmentValues struct {
	SigningCert                 string
	SigningCertKey              string
	EdgeIdentityDuration        time.Duration
	EdgeRouterDuration          time.Duration
	DefaultEdgeIdentityDuration time.Duration
	DefaultEdgeRouterDuration   time.Duration
}

type EdgeRouterTemplateValues

type EdgeRouterTemplateValues struct {
	Port             string
	IPOverride       string
	AdvertisedHost   string
	LanInterface     string
	Resolver         string
	DnsSvcIpRange    string
	ListenerBindPort string
	CsrC             string
	CsrST            string
	CsrL             string
	CsrO             string
	CsrOU            string
	CsrSans          string
}

type EnvVar

type EnvVar struct {
	Name        string
	Description string
	Value       string
}

type EnvVariableTemplateData

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

type HealthChecksValues

type HealthChecksValues struct {
	Interval     time.Duration
	Timeout      time.Duration
	InitialDelay time.Duration
}

type IdentityValues

type IdentityValues struct {
	Ca              string
	Key             string
	ServerCert      string
	Cert            string
	AltServerCert   string
	AltServerKey    string
	AltCertsEnabled bool
}

type NewCreateConfigRouterCmd

type NewCreateConfigRouterCmd struct {
	*cobra.Command
	RenderedValues *ConfigTemplateValues
}

func NewCmdCreateConfigRouter

func NewCmdCreateConfigRouter(routerOptions *CreateConfigRouterOptions) *NewCreateConfigRouterCmd

NewCmdCreateConfigRouter creates a command object for the "router" command

type RouterForwarderTemplateValues

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

type RouterListenerTemplateValues

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

type RouterTemplateValues

type RouterTemplateValues struct {
	Name               string
	IsPrivate          bool
	IsFabric           bool
	IsWss              bool
	TunnelerMode       string
	IdentityCert       string
	IdentityServerCert string
	IdentityKey        string
	IdentityCA         string
	AltServerCert      string
	AltServerKey       string
	AltCertsEnabled    bool
	Edge               EdgeRouterTemplateValues
	Wss                WSSRouterTemplateValues
	Forwarder          RouterForwarderTemplateValues
	Listener           RouterListenerTemplateValues
}

type WSSRouterTemplateValues

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
}

type WebOptionsValues

type WebOptionsValues struct {
	IdleTimeout   time.Duration
	ReadTimeout   time.Duration
	WriteTimeout  time.Duration
	MinTLSVersion string
	MaxTLSVersion string
}

type WebValues

type WebValues struct {
	BindPoints BindPointsValues
	Identity   IdentityValues
	Options    WebOptionsValues
}

Jump to

Keyboard shortcuts

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