environment

package
v0.18.5 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IncludedDepdendenciesNone    string = "none"
	IncludedDepdendenciesAll     string = "all"
	IncludedDepdendenciesMissing string = "missing"
)

Variables

This section is empty.

Functions

func Clone

func Clone(options *CloneOptions) (*sdk.EnvironmentItem, error)

func CloneRaw

func CloneRaw(options *CloneOptions) (*sdk.EnvironmentItem, *http.Response, error)

func Create added in v0.13.0

func Create(options *CreateOptions) (*sdk.EnvironmentItem, error)

func CreateRaw added in v0.13.0

func CreateRaw(options *CreateOptions) (*sdk.EnvironmentItem, *http.Response, error)

func Delete

func Delete(options *DeleteOptions) (*sdk.EventItem, error)

func DeleteRaw

func DeleteRaw(options *DeleteOptions) (*sdk.EventItem, *http.Response, error)

func Deploy

func Deploy(options *DeployOptions) (*sdk.EventItem, error)

func DeployRaw

func DeployRaw(options *DeployOptions) (*sdk.EventItem, *http.Response, error)

func EditBuildSettings added in v0.18.0

func EditBuildSettings(options *EditBuildSettingsOptions) (*sdk.EnvironmentItem, error)

func EditBuildSettingsRaw added in v0.18.0

func EditBuildSettingsRaw(options *EditBuildSettingsOptions) (*sdk.EnvironmentItem, *http.Response, error)

func EditComponents added in v0.16.0

func EditComponents(options *EditComponentOptions) (*sdk.EnvironmentItem, error)

func EditComponentsRaw added in v0.16.0

func EditComponentsRaw(options *EditComponentOptions) (*sdk.EnvironmentItem, *http.Response, error)

func EditConfiguration added in v0.16.0

func EditConfiguration(options *EditConfigurationOptions) (*sdk.EnvironmentItem, error)

func EditConfigurationRaw added in v0.16.0

func EditConfigurationRaw(options *EditConfigurationOptions) (*sdk.EnvironmentItem, *http.Response, error)

func EditSettings added in v0.16.0

func EditSettings(options *EditSettingsOptions) (*sdk.EnvironmentItem, error)

func EditSettingsRaw added in v0.16.0

func EditSettingsRaw(options *EditSettingsOptions) (*sdk.EnvironmentItem, *http.Response, error)

func Get

func Get(options *common.ItemOptions) (*sdk.EnvironmentItem, error)

func GetRaw

func GetRaw(options *common.ItemOptions) (*sdk.EnvironmentItem, *http.Response, error)

func KubeConfigRaw added in v0.14.0

func NewItemOptions

func NewItemOptions(id string) *common.ItemOptions

func Start

func Start(options *StartOptions) (*sdk.EventItem, error)

func StartRaw

func StartRaw(options *StartOptions) (*sdk.EventItem, *http.Response, error)

func Stop

func Stop(options *StopOptions) (*sdk.EventItem, error)

func StopRaw

func StopRaw(options *StopOptions) (*sdk.EventItem, *http.Response, error)

Types

type CloneOptions

type CloneOptions struct {
	common.ActionOptions

	sdk.EnvironmentCloneAction
}

func NewCloneOptions

func NewCloneOptions(id string) *CloneOptions

func (*CloneOptions) UpdateFlagSet

func (co *CloneOptions) UpdateFlagSet(flags *pflag.FlagSet)

type CreateOptions added in v0.13.0

type CreateOptions struct {
	DeployOptions

	sdk.EnvironmentCreateAction

	WithDeploy bool
}

func NewCreateOptions added in v0.13.0

func NewCreateOptions() *CreateOptions

func (*CreateOptions) UpdateFlagSet added in v0.13.0

func (co *CreateOptions) UpdateFlagSet(flags *pflag.FlagSet)

type DefinitionData

type DefinitionData map[string]any

func DefinitionRaw

func DefinitionRaw(options *DefinitionOptions) (DefinitionData, *http.Response, error)

type DefinitionItem

type DefinitionItem struct {
	Data DefinitionData

	Bytes []byte
}

func Definition

func Definition(options *DefinitionOptions) (*DefinitionItem, error)

type DefinitionOptions

type DefinitionOptions struct {
	common.ItemOptions
}

func NewDefinitionOptions

func NewDefinitionOptions(id string) *DefinitionOptions

type DeleteOptions

type DeleteOptions struct {
	common.ActionOptions
}

func NewDeleteOptions

func NewDeleteOptions(id string) *DeleteOptions

type DeployOptions

type DeployOptions struct {
	common.PartialActionOptions

	IncludedDepdendencies string
}

func NewDeployOptions

func NewDeployOptions(id string) *DeployOptions

func (*DeployOptions) UpdateFlagSet added in v0.17.1

func (options *DeployOptions) UpdateFlagSet(flags *pflag.FlagSet)

type EditBuildSettingsOptions added in v0.18.0

type EditBuildSettingsOptions struct {
	build_settings.EditOptions

	sdk.EnvironmentEditBuildSettingsAction
}

func NewEditBuildSettingsOptions added in v0.18.0

func NewEditBuildSettingsOptions(project string) *EditBuildSettingsOptions

type EditComponentOptions added in v0.16.0

type EditComponentOptions struct {
	DeployOptions

	EditComponentsData

	WithDeploy bool
}

func NewEditComponentOptions added in v0.16.0

func NewEditComponentOptions() *EditComponentOptions

func (*EditComponentOptions) UpdateFlagSet added in v0.16.0

func (eo *EditComponentOptions) UpdateFlagSet(flags *pflag.FlagSet)

type EditComponentsData added in v0.16.0

type EditComponentsData struct {
	K8SIntegration string

	Component string

	SourceRepository string
	SourceBranch     string

	TargetRepository string
	TargetBranch     string
}

type EditConfigurationData added in v0.16.0

type EditConfigurationData struct {
	K8SIntegration string
}

type EditConfigurationOptions added in v0.16.0

type EditConfigurationOptions struct {
	DeployOptions

	sdk.EnvironmentEditConfiguration

	EditConfigurationData

	WithDeploy bool
}

func NewEditConfigurationOptions added in v0.16.0

func NewEditConfigurationOptions(environment string) *EditConfigurationOptions

func (*EditConfigurationOptions) UpdateFlagSet added in v0.16.0

func (eco *EditConfigurationOptions) UpdateFlagSet(flags *pflag.FlagSet)

type EditSettingsData added in v0.16.0

type EditSettingsData struct {
	Name string

	RemoteDevelopmentAllowed enum.Bool
	AutoUpdate               enum.Bool

	Labels       map[string]string
	LabelReplace bool

	K8SIntegration string

	EphemeralK8SIntegration   string
	CreateEphemeralOnPrCreate enum.Bool
	DestroyEphemeralOnPrClose enum.Bool
	AutoDeployEphemeral       enum.Bool
}

type EditSettingsOptions added in v0.16.0

type EditSettingsOptions struct {
	common.ItemOptions

	*sdk.EnvironmentEditSettings

	EditSettingsData
}

func NewEditSettingsOptions added in v0.16.0

func NewEditSettingsOptions(environment string) *EditSettingsOptions

func (*EditSettingsOptions) UpdateEditSettingsForType added in v0.18.0

func (eso *EditSettingsOptions) UpdateEditSettingsForType(environmentType string) error

func (*EditSettingsOptions) UpdateFlagSet added in v0.16.0

func (eso *EditSettingsOptions) UpdateFlagSet(flags *pflag.FlagSet)

type KubeConfigData added in v0.14.0

type KubeConfigData map[string]any

type KubeConfigItem added in v0.14.0

type KubeConfigItem struct {
	Data *sdk.EnvironmentKubeConfigKubeConfigRead

	Bytes []byte
}

func KubeConfig added in v0.14.0

func KubeConfig(options *KubeConfigOptions) (*KubeConfigItem, error)

type KubeConfigOptions added in v0.14.0

type KubeConfigOptions struct {
	common.ItemOptions
}

func NewKubeConfigOptions added in v0.14.0

func NewKubeConfigOptions(id string) *KubeConfigOptions

type ListOptions

type ListOptions struct {
	common.ListOptions

	Organization          string
	Project               string
	KubernetesIntegration string

	Type            string
	ClusterStatus   string
	OperationStatus string

	Search string

	Labels map[string]string
}

func NewListOptions

func NewListOptions() *ListOptions

func (*ListOptions) UpdateFlagSet

func (lo *ListOptions) UpdateFlagSet(flags *pflag.FlagSet)

type StartOptions

type StartOptions struct {
	common.PartialActionOptions

	WithDependencies bool
}

func NewStartOptions

func NewStartOptions(id string) *StartOptions

func (*StartOptions) UpdateFlagSet added in v0.17.1

func (options *StartOptions) UpdateFlagSet(flags *pflag.FlagSet)

type StopOptions

type StopOptions struct {
	common.PartialActionOptions
}

func NewStopOptions

func NewStopOptions(id string) *StopOptions

Jump to

Keyboard shortcuts

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