projectcreator

package
v0.0.0-...-318a3d5 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIProvider

type APIProvider func(EndpointInfo) (api.KeptnInterface, error)

type EndpointInfo

type EndpointInfo struct {
	APIEndpoint string
	APIToken    string
}

type ProjectCreator

type ProjectCreator struct {
	APIV1Interface   api.APIV1Interface
	ShipyardProvider ShipyardProvider
	FileSystem       fs.FS
}

func New

func New(
	apiV1Interface api.APIV1Interface,
	shipyardProvider ShipyardProvider,
	fileSystem fs.FS) *ProjectCreator

func (*ProjectCreator) CreateProject

func (p *ProjectCreator) CreateProject(projectInfo ProjectInfo) error

CreateProject does what is required to create a new Keptn Project First it gets the metadata from the Keptn API to see whether the Keptn installation was setup using the automatic provisioning feature, then it tries to load the shipyard file and finally it tries to create the Keptn project using the public API of Keptn

type ProjectInfo

type ProjectInfo struct {
	Name              string
	Shipyard          string
	GitUser           string
	GitToken          string
	RemoteURL         string
	GitPrivateKey     string
	GitPrivateKeyPass string
	GitProxyURL       string
	GitProxyScheme    string
	GitProxyUser      string
	GitProxyPassword  string
	GitPemCertificate string
	InsecureSkipTLS   bool
}

type ShipyardProvider

type ShipyardProvider func(string) ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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