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 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 ShipyardProvider ¶
Click to show internal directories.
Click to hide internal directories.