fixtures

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChannel

func NewChannel(spaceID string, channelID string, channelName string, projectID string) *channels.Channel

func NewCobraRootCommand

func NewCobraRootCommand(fac *testutil.MockFactory) (cmd *cobra.Command, stdout *bytes.Buffer, stderr *bytes.Buffer)

NewCobraRootCommand creates the Cobra root command, and captures its stdout/stderr into buffers so you can assert on them later

func NewDeploymentProcessForProject

func NewDeploymentProcessForProject(spaceID string, projectID string) *deployments.DeploymentProcess

func NewDeploymentProcessForVersionControlledProject

func NewDeploymentProcessForVersionControlledProject(spaceID string, projectID string, gitRef string) *deployments.DeploymentProcess

func NewDeploymentSettingsForProject

func NewDeploymentSettingsForProject(spaceID string, projectID string, versioningStrategy *projects.VersioningStrategy) *deployments.DeploymentSettings

func NewEnvironment added in v0.2.1

func NewEnvironment(spaceID string, envID string, name string) *environments.Environment

func NewProject

func NewProject(spaceID string, projectID string, projectName string, lifecycleID string, projectGroupID string, deploymentProcessID string) *projects.Project

NewProject creates a new project resource, using default settings from the server. NOT tenanted VersioningStrategy is template based NOT version controlled

func NewRelease

func NewRelease(spaceID string, releaseID string, releaseVersion string, projectID string, channelID string) *releases.Release

func NewSpace

func NewSpace(spaceID string, name string) *spaces.Space

func NewTenant added in v0.2.1

func NewTenant(spaceID string, tenantID string, name string, tenantTags ...string) *tenants.Tenant

func NewVariableSetForProject added in v0.2.1

func NewVariableSetForProject(spaceID string, projectID string) *variables.VariableSet

func NewVersionControlledProject

func NewVersionControlledProject(spaceID string, projectID string, projectName string, lifecycleID string, projectGroupID string, deploymentProcessID string) *projects.Project

Types

This section is empty.

Jump to

Keyboard shortcuts

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