deploy

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: 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 'deploy peer' subcommand.

Types

type PeerOptions

type PeerOptions struct {
	// Name of the peer to deploy.
	Name string
	// Name of the fabric that the peer belongs to.
	Fabric 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
	// Tag represents the tag of the project images.
	Tag 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 'deploy peer' subcommand.

Jump to

Keyboard shortcuts

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