cmd

package
v0.0.0-...-7183293 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeployCmd = &cobra.Command{
	Use:   "deploy <deployId>",
	Short: "deploy",
	Args:  cobra.ExactArgs(1),
	RunE: func(cmd *cobra.Command, args []string) error {
		return DeployFn(cmd.OutOrStdout(), args[0], newConfigService())
	},
}
View Source
var DeploysCmd = &cobra.Command{
	Use:   "deploys",
	Short: "generate deploy manifests",
	Args:  cobra.ExactArgs(0),
	RunE: func(cmd *cobra.Command, args []string) error {
		return DeploysFn(cmd.OutOrStdout(), newConfigService())
	},
}
View Source
var Version = ""
View Source
var VsCmd = &cobra.Command{
	Use:   "version",
	Short: "version",
	Args:  cobra.ExactArgs(0),
	RunE: func(cmd *cobra.Command, args []string) error {
		return Vs(cmd.OutOrStdout())
	},
}

Functions

func AddFn

func AddFn(name string, repository string, version string, addConfig bool, manifests *manifest.Svc, cmp *hash.Svc, lock *cfg.Lock) error

func AllImages

func AllImages(w io.Writer, config *cfg.Svc, manifests *manifest.Svc, match *matcher.Svc) error

func ContainerResourcesForDeploy

func ContainerResourcesForDeploy(compName string, envName string, w io.Writer, config *cfg.Svc, match *matcher.Svc) error

func ContainerResourcesForDeploys

func ContainerResourcesForDeploys(w io.Writer, config *cfg.Svc, match *matcher.Svc) error

func DeployFn

func DeployFn(w io.Writer, id string, config *cfg.Svc) error

func DeploysAsYaml

func DeploysAsYaml(l cfg.Deploys, w io.Writer) error

func DeploysFn

func DeploysFn(w io.Writer, config *cfg.Svc) error

func Execute

func Execute() error

Execute executes the root command.

func GenerateFn

func GenerateFn(config *cfg.Svc, manifests *manifest.Svc) error

func ImagesForDeploy

func ImagesForDeploy(environment string, component string, w io.Writer, config *cfg.Svc, manifests *manifest.Svc, match *matcher.Svc) error

func InitFn

func InitFn(force bool, config *cfg.Svc) error

func SetFn

func SetFn(path string, value string, setType string, config *cfg.Svc) error

func ShowFn

func ShowFn(thing string, environment string, component string, w io.Writer, config *cfg.Svc) error

func VerifyFn

func VerifyFn(w io.Writer, config *cfg.Svc, manifests *manifest.Svc, lock *cfg.Lock, h *hash.Svc) error

func Vs

func Vs(w io.Writer) error

Types

type DeployContainerResources

type DeployContainerResources struct {
	Name      string
	Resources matcher.ContainerResources
}

Jump to

Keyboard shortcuts

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