command

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(d *Dependencies, settings []byte, skipMatches string, renderType renderer.RenderType) error

Diff Using a Project & Renderer & Get, renders the pipeline and shows the difference between current and desired state.

func NewDeleteCommand added in v0.0.12

func NewDeleteCommand(d *Dependencies) *cobra.Command

NewDeleteCommand - Using a Project, Renderer & Backend, renders and deletes a pipeline and its nested pipelines. Abstraction for different configuration languages (I.E. Jsonnet/HCL/CUELang)

func NewDiffCommand

func NewDiffCommand(d *Dependencies) *cobra.Command

NewDiffCommand - A Cobra wrapper for the common Diff function. Abstraction for different configuration languages (I.E. Jsonnet/HCL/CUELang)

func NewExecCommand

func NewExecCommand(d *Dependencies, configPath string) *cobra.Command

NewExecCommand - Using a Project, Renderer & Backend, executes a pipeline pipeline.

func NewProjectCommand

func NewProjectCommand(d *Dependencies) *cobra.Command

NewProjectCommand - Creates the `project` subcommand

func NewProjectInitCommand

func NewProjectInitCommand(d *Dependencies) *cobra.Command

NewProjectInitCommand - initialize a `shore` project.

func NewRenderCommand

func NewRenderCommand(d *Dependencies) *cobra.Command

NewRenderCommand - A Cobra wrapper for the common Render function. Abstraction for different configuration languages (I.E. Jsonnet/HCL/CUELang)

func NewSaveCommand

func NewSaveCommand(d *Dependencies) *cobra.Command

NewSaveCommand - Using a Project, Renderer & Backend, renders and saves a pipeline. Abstraction for different configuration languages (I.E. Jsonnet/HCL/CUELang)

func NewTestRemoteCommand

func NewTestRemoteCommand(d *Dependencies) *cobra.Command

NewTestRemoteCommand - Using a Project, Renderer & Backend runs a test suite defined in a config file and outputs the results to the customer. Abstraction for different configuration languages (I.E. Jsonnet/HCL/CUELang/etc...) and backends (Spinnaker/Tekton/ArgoCD/JenkinsX/etc...)

func Render

func Render(d *Dependencies, settings []byte, renderType renderer.RenderType) (string, error)

Render - Using a Project & Renderer, renders the pipeline.

Types

type Dependencies

type Dependencies struct {
	Renderer renderer.Renderer
	Backend  backend.Backend
	Logger   logrus.FieldLogger
	Project  *project.Project
}

Dependencies - Shared dependencies all controller MAY require

Jump to

Keyboard shortcuts

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