create

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdCreate

func NewCmdCreate() *cobra.Command

NewCmdCreate returns a cobra.Command to run the create command.

func NewCmdCreateFabric

func NewCmdCreateFabric() *cobra.Command

NewCmdCreateFabric returns a cobra.Command to run the 'create fabric' subcommand.

func NewCmdCreatePeerCert

func NewCmdCreatePeerCert() *cobra.Command

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.

func (*FabricOptions) Run

func (o *FabricOptions) Run() error

Run the 'create fabric' subcommand.

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.

func (*PeerOptions) Run

func (o *PeerOptions) Run() error

Run the 'create peer-cert' subcommand.

Jump to

Keyboard shortcuts

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