backend

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	// TODO: Return type needs to be a custom wrapper in the future.
	// We cannot assume that every backend-cli implementation will return an HTTP object.
	SavePipeline(pipelineJSON string) (*http.Response, error)
	ExecutePipeline(parameters string, stringify bool) (string, *http.Response, error)
	WaitForPipelineToFinish(id string, timeout int) (string, *http.Response, error)
	// TODO: Reconsider `onChange`, it may be a channel to communicate data between `shore-cli` & the Testing process in an async fashion.
	TestPipeline(testConfig shore_testing.TestsConfig, onChange func(), stringify bool) error
	GetPipeline(application string, pipelineName string) (map[string]interface{}, *http.Response, error)
	DeletePipeline(pipelineJSON string) (*http.Response, error)
	GetPipelinesNamesAndApplication(pipelineJSON string) ([]string, string, error)
}

Backend - an interface that describes a generic backend pipeline

Directories

Path Synopsis
Package spinnaker - a `shore` backend implementation for Spinnaker APIs
Package spinnaker - a `shore` backend implementation for Spinnaker APIs

Jump to

Keyboard shortcuts

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