Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdCreate ¶
NewCmdCreate returns a cobra.Command to run the create command.
func NewCmdCreateFabric ¶
NewCmdCreateFabric returns a cobra.Command to run the 'create fabric' subcommand.
func NewCmdCreatePeerCert ¶
NewCmdCreatePeerCert returns a cobra.Command to run the 'create peer-cert' subcommand.
Types ¶
type FabricOptions ¶
type FabricOptions struct {
// Name of the peer to create.
Name string
}
FabricOptions contains everything necessary to create and run a 'createfabric' subcommand.
func (*FabricOptions) AddFlags ¶
func (o *FabricOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags to fs and binds them to options.
type PeerOptions ¶
type PeerOptions struct {
// Name of the peer to create.
Name string
// Name of the fabric that the peer belongs to.
Fabric string
// Namespace where the ClusterLink components are deployed.
Namespace string
// Dataplanes is the number of dataplanes to create.
Dataplanes uint16
// DataplaneType is the type of dataplane to create (envoy or go-based)
DataplaneType string
// LogLevel is the log level.
LogLevel string
// ContainerRegistry is the container registry to pull the project images.
ContainerRegistry string
// Tag represents the tag of the project images.
Tag string
// CRDMode indicates whether to run a k8s CRD-based controlplane.
// This flag will be removed once the CRD-based controlplane feature is complete and stable.
CRDMode bool
}
PeerOptions contains everything necessary to create and run a 'create peer-cert' subcommand.
func (*PeerOptions) AddFlags ¶
func (o *PeerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags to fs and binds them to options.
func (*PeerOptions) RequiredFlags ¶
func (o *PeerOptions) RequiredFlags() []string
RequiredFlags are the names of flags that must be explicitly specified.
Click to show internal directories.
Click to hide internal directories.