deploy

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdDeploy

func NewCmdDeploy() *cobra.Command

NewCmdDeploy returns a cobra.Command to run the deploy command.

func NewCmdDeployPeer

func NewCmdDeployPeer() *cobra.Command

NewCmdDeployPeer returns a cobra.Command to run the 'create peer' subcommand.

Types

type PeerOptions

type PeerOptions struct {
	// Name of the peer to create.
	Name string
	// Namespace where the ClusterLink components are deployed.
	Namespace string
	// CertDir is the directory where the certificates for the fabric and peer are located.
	CertDir string
	// StartInstance, if set to true, deploys a ClusterLink instance that will create the ClusterLink components.
	StartInstance bool
	// Ingress, represents the type of service used to expose the ClusterLink deployment.
	Ingress string
	// IngressPort, represents the port number of the service used to expose the ClusterLink deployment.
	IngressPort uint16
	// ContainerRegistry is the container registry to pull the project images.
	ContainerRegistry string
}

PeerOptions contains everything necessary to create and run a 'deploy peer' 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' subcommand.

Jump to

Keyboard shortcuts

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