stack

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoSync added in v1.3.0

type AutoSync struct {
	DeployWhenDriftDetected *bool `json:"deployWhenDriftDetected,omitempty"`
	// contains filtered or unexported fields
}

func (AutoSync) MarshalJSON added in v1.3.0

func (o AutoSync) MarshalJSON() ([]byte, error)

func (*AutoSync) SetDeployWhenDriftDetected added in v1.3.0

func (o *AutoSync) SetDeployWhenDriftDetected(v *bool) *AutoSync

type CreateDeploymentInput

type CreateDeploymentInput struct {
	StackId *string `json:"stackId,omitempty"`
}

type CreateDeploymentOutput

type CreateDeploymentOutput struct {
	Deployment *Deployment `json:"deployment,omitempty"`
}

type CreatePlanInput

type CreatePlanInput struct {
	StackId    *string `json:"stackId,omitempty"`
	HeadBranch *string `json:"headBranch,omitempty"`
	HeadSha    *string `json:"headSha,omitempty"`
}

type CreatePlanOutput

type CreatePlanOutput struct {
	Plan *Plan `json:"plan,omitempty"`
}

type CreateStackInput

type CreateStackInput struct {
	Stack *Stack `json:"stack,omitempty"`
}

type Data

type Data struct {
	DeploymentBehavior       *DeploymentBehavior                    `json:"deploymentBehavior,omitempty"`
	DeploymentApprovalPolicy *cross_models.DeploymentApprovalPolicy `json:"deploymentApprovalPolicy,omitempty"`
	VcsInfo                  *VcsInfo                               `json:"vcsInfo,omitempty"`
	RunTrigger               *RunTrigger                            `json:"runTrigger,omitempty"`
	IacConfig                *IacConfig                             `json:"iacConfig,omitempty"`
	Policy                   *Policy                                `json:"policy,omitempty"`
	RunnerConfig             *RunnerConfig                          `json:"runnerConfig,omitempty"`
	AutoSync                 *AutoSync                              `json:"autoSync,omitempty"`
	// contains filtered or unexported fields
}

func (Data) MarshalJSON

func (o Data) MarshalJSON() ([]byte, error)

func (*Data) SetAutoSync added in v1.3.0

func (o *Data) SetAutoSync(v *AutoSync) *Data

func (*Data) SetDeploymentApprovalPolicy added in v1.3.0

func (o *Data) SetDeploymentApprovalPolicy(v *cross_models.DeploymentApprovalPolicy) *Data

func (*Data) SetDeploymentBehavior

func (o *Data) SetDeploymentBehavior(v *DeploymentBehavior) *Data

func (*Data) SetIacConfig

func (o *Data) SetIacConfig(v *IacConfig) *Data

func (*Data) SetPolicy

func (o *Data) SetPolicy(v *Policy) *Data

func (*Data) SetRunTrigger

func (o *Data) SetRunTrigger(v *RunTrigger) *Data

func (*Data) SetRunnerConfig added in v1.3.0

func (o *Data) SetRunnerConfig(v *RunnerConfig) *Data

func (*Data) SetVcsInfo

func (o *Data) SetVcsInfo(v *VcsInfo) *Data

type Deployment

type Deployment struct {
	ID       *string `json:"id,omitempty"`
	Status   *string `json:"status,omitempty"`
	IsActive *bool   `json:"isActive,omitempty"`

	// Read-only fields.
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	// contains filtered or unexported fields
}

func (Deployment) MarshalJSON

func (o Deployment) MarshalJSON() ([]byte, error)

func (*Deployment) SetID

func (o *Deployment) SetID(v *string) *Deployment

type DeploymentBehavior

type DeploymentBehavior struct {
	DeployOnPush    *bool `json:"deployOnPush,omitempty"`
	WaitForApproval *bool `json:"waitForApproval,omitempty"`
	// contains filtered or unexported fields
}

func (DeploymentBehavior) MarshalJSON

func (o DeploymentBehavior) MarshalJSON() ([]byte, error)

func (*DeploymentBehavior) SetDeployOnPush

func (o *DeploymentBehavior) SetDeployOnPush(v *bool) *DeploymentBehavior

func (*DeploymentBehavior) SetWaitForApproval

func (o *DeploymentBehavior) SetWaitForApproval(v *bool) *DeploymentBehavior

type IacConfig

type IacConfig struct {
	TerraformVersion   *string   `json:"terraformVersion,omitempty"`
	TerragruntVersion  *string   `json:"terragruntVersion,omitempty"`
	OpentofuVersion    *string   `json:"opentofuVersion,omitempty"`
	IsTerragruntRunAll *bool     `json:"isTerragruntRunAll,omitempty"`
	VarFiles           []*string `json:"varFiles,omitempty"`
	// contains filtered or unexported fields
}

func (IacConfig) MarshalJSON

func (o IacConfig) MarshalJSON() ([]byte, error)

func (*IacConfig) SetIsTerragruntRunAll added in v1.3.0

func (o *IacConfig) SetIsTerragruntRunAll(v *bool) *IacConfig

func (*IacConfig) SetOpentofuVersion added in v1.4.0

func (o *IacConfig) SetOpentofuVersion(v *string) *IacConfig

func (*IacConfig) SetTerraformVersion

func (o *IacConfig) SetTerraformVersion(v *string) *IacConfig

func (*IacConfig) SetTerragruntVersion

func (o *IacConfig) SetTerragruntVersion(v *string) *IacConfig

func (*IacConfig) SetVarFiles added in v1.3.0

func (o *IacConfig) SetVarFiles(v []*string) *IacConfig

type Plan

type Plan struct {
	ID       *string `json:"id,omitempty"`
	Status   *string `json:"status,omitempty"`
	IsActive *bool   `json:"isActive,omitempty"`

	// Read-only fields.
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	// contains filtered or unexported fields
}

func (Plan) MarshalJSON

func (o Plan) MarshalJSON() ([]byte, error)

func (*Plan) SetID

func (o *Plan) SetID(v *string) *Plan

type Policy

type Policy struct {
	TtlConfig *TtlConfig `json:"ttlConfig,omitempty"`
	// contains filtered or unexported fields
}

func (Policy) MarshalJSON

func (o Policy) MarshalJSON() ([]byte, error)

func (*Policy) SetTtlConfig

func (o *Policy) SetTtlConfig(v *TtlConfig) *Policy

type ReadDeploymentInput

type ReadDeploymentInput struct {
	DeploymentId *string `json:"deploymentId,omitempty"`
}

type ReadDeploymentOutput

type ReadDeploymentOutput struct {
	Deployment *Deployment `json:"deployment,omitempty"`
}

type ReadPlanInput

type ReadPlanInput struct {
	PlanId *string `json:"planId,omitempty"`
}

type ReadPlanOutput

type ReadPlanOutput struct {
	Plan *Plan `json:"plan,omitempty"`
}

type RunTrigger

type RunTrigger struct {
	Patterns        []*string `json:"patterns,omitempty"`
	ExcludePatterns []*string `json:"excludePatterns,omitempty"`
	// contains filtered or unexported fields
}

func (RunTrigger) MarshalJSON

func (o RunTrigger) MarshalJSON() ([]byte, error)

func (*RunTrigger) SetExcludePatterns added in v1.3.0

func (o *RunTrigger) SetExcludePatterns(v []*string) *RunTrigger

func (*RunTrigger) SetPatterns

func (o *RunTrigger) SetPatterns(v []*string) *RunTrigger

type RunnerConfig added in v1.3.0

type RunnerConfig struct {
	Mode   *string   `json:"mode,omitempty"` //commons.RunnerConfigModeTypes
	Groups []*string `json:"groups,omitempty"`
	// contains filtered or unexported fields
}

func (RunnerConfig) MarshalJSON added in v1.3.0

func (o RunnerConfig) MarshalJSON() ([]byte, error)

func (*RunnerConfig) SetGroups added in v1.3.0

func (o *RunnerConfig) SetGroups(v []*string) *RunnerConfig

func (*RunnerConfig) SetMode added in v1.3.0

func (o *RunnerConfig) SetMode(v *string) *RunnerConfig

type Service

Service provides the API operation methods for making requests to endpoints of the ControlMonkey API. See this package's package overview docs for details on the service.

func New

func New(sess *session.Session, cfgs ...*controlmonkey.Config) Service

type ServiceOp

type ServiceOp struct {
	Client *client.Client
}

func (*ServiceOp) CreateDeployment

func (s *ServiceOp) CreateDeployment(ctx context.Context, input *CreateDeploymentInput) (*CreateDeploymentOutput, error)

func (*ServiceOp) CreatePlan

func (s *ServiceOp) CreatePlan(ctx context.Context, input *CreatePlanInput) (*CreatePlanOutput, error)

func (*ServiceOp) CreateStack

func (s *ServiceOp) CreateStack(ctx context.Context, input *Stack) (*Stack, error)

func (*ServiceOp) DeleteStack

func (s *ServiceOp) DeleteStack(ctx context.Context, stackId string) (*commons.EmptyResponse, error)

func (*ServiceOp) ListStacks

func (s *ServiceOp) ListStacks(ctx context.Context, stackId *string, stackName *string, namespaceId *string) ([]*Stack, error)

func (*ServiceOp) ReadDeployment

func (s *ServiceOp) ReadDeployment(ctx context.Context, input *ReadDeploymentInput) (*ReadDeploymentOutput, error)

func (*ServiceOp) ReadPlan

func (s *ServiceOp) ReadPlan(ctx context.Context, input *ReadPlanInput) (*ReadPlanOutput, error)

func (*ServiceOp) ReadStack

func (s *ServiceOp) ReadStack(ctx context.Context, stackId string) (*Stack, error)

func (*ServiceOp) UpdateStack

func (s *ServiceOp) UpdateStack(ctx context.Context, stackId string, input *Stack) (*Stack, error)

type Stack

type Stack struct {
	ID          *string `json:"id,omitempty"`      // read-only
	IacType     *string `json:"iacType,omitempty"` //commons.IacTypes
	NamespaceId *string `json:"namespaceId,omitempty"`
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
	Data        *Data   `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (Stack) MarshalJSON

func (o Stack) MarshalJSON() ([]byte, error)

func (*Stack) SetData

func (o *Stack) SetData(v *Data) *Stack

func (*Stack) SetDescription

func (o *Stack) SetDescription(v *string) *Stack

func (*Stack) SetIacType

func (o *Stack) SetIacType(v *string) *Stack

func (*Stack) SetName

func (o *Stack) SetName(v *string) *Stack

func (*Stack) SetNamespaceId

func (o *Stack) SetNamespaceId(v *string) *Stack

type TtlConfig

type TtlConfig struct {
	Ttl         *TtlDefinition `json:"ttl,omitempty"`
	TtlOverride *TtlOverride   `json:"ttlOverride,omitempty"`
	// contains filtered or unexported fields
}

func (TtlConfig) MarshalJSON

func (o TtlConfig) MarshalJSON() ([]byte, error)

func (*TtlConfig) SetTtl

func (o *TtlConfig) SetTtl(v *TtlDefinition) *TtlConfig

func (*TtlConfig) SetTtlOverride added in v1.3.0

func (o *TtlConfig) SetTtlOverride(v *TtlOverride) *TtlConfig

type TtlDefinition

type TtlDefinition struct {
	Type  *string `json:"type,omitempty"` //commons.TtlTypes
	Value *int    `json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (TtlDefinition) MarshalJSON

func (o TtlDefinition) MarshalJSON() ([]byte, error)

func (*TtlDefinition) SetType

func (o *TtlDefinition) SetType(v *string) *TtlDefinition

func (*TtlDefinition) SetValue

func (o *TtlDefinition) SetValue(v *int) *TtlDefinition

type TtlOverride added in v1.3.0

type TtlOverride struct {
	Type          *string    `json:"type,omitempty"` //commons.TtlTypes
	Value         *int       `json:"value,omitempty"`
	EffectiveFrom *time.Time `json:"effectiveFrom,omitempty"`
	// contains filtered or unexported fields
}

func (TtlOverride) MarshalJSON added in v1.3.0

func (o TtlOverride) MarshalJSON() ([]byte, error)

func (*TtlOverride) SetType added in v1.3.0

func (o *TtlOverride) SetType(v *string) *TtlOverride

func (*TtlOverride) SetValue added in v1.3.0

func (o *TtlOverride) SetValue(v *int) *TtlOverride

type VcsInfo

type VcsInfo struct {
	ProviderId *string `json:"providerId,omitempty"`
	RepoName   *string `json:"repoName,omitempty"`
	Path       *string `json:"path,omitempty"`
	Branch     *string `json:"branch,omitempty"`
	// contains filtered or unexported fields
}

func (VcsInfo) MarshalJSON

func (o VcsInfo) MarshalJSON() ([]byte, error)

func (*VcsInfo) SetBranch

func (o *VcsInfo) SetBranch(v *string) *VcsInfo

func (*VcsInfo) SetPath

func (o *VcsInfo) SetPath(v *string) *VcsInfo

func (*VcsInfo) SetProviderId

func (o *VcsInfo) SetProviderId(v *string) *VcsInfo

func (*VcsInfo) SetRepoName

func (o *VcsInfo) SetRepoName(v *string) *VcsInfo

Jump to

Keyboard shortcuts

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