Documentation
¶
Index ¶
- type AutoSync
- type CreateDeploymentInput
- type CreateDeploymentOutput
- type CreatePlanInput
- type CreatePlanOutput
- type CreateStackInput
- type Data
- func (o Data) MarshalJSON() ([]byte, error)
- func (o *Data) SetAutoSync(v *AutoSync) *Data
- func (o *Data) SetDeploymentApprovalPolicy(v *cross_models.DeploymentApprovalPolicy) *Data
- func (o *Data) SetDeploymentBehavior(v *DeploymentBehavior) *Data
- func (o *Data) SetIacConfig(v *IacConfig) *Data
- func (o *Data) SetPolicy(v *Policy) *Data
- func (o *Data) SetRunTrigger(v *RunTrigger) *Data
- func (o *Data) SetRunnerConfig(v *RunnerConfig) *Data
- func (o *Data) SetVcsInfo(v *VcsInfo) *Data
- type Deployment
- type DeploymentBehavior
- type IacConfig
- func (o IacConfig) MarshalJSON() ([]byte, error)
- func (o *IacConfig) SetIsTerragruntRunAll(v *bool) *IacConfig
- func (o *IacConfig) SetOpentofuVersion(v *string) *IacConfig
- func (o *IacConfig) SetTerraformVersion(v *string) *IacConfig
- func (o *IacConfig) SetTerragruntVersion(v *string) *IacConfig
- func (o *IacConfig) SetVarFiles(v []*string) *IacConfig
- type Plan
- type Policy
- type ReadDeploymentInput
- type ReadDeploymentOutput
- type ReadPlanInput
- type ReadPlanOutput
- type RunTrigger
- type RunnerConfig
- type Service
- type ServiceOp
- func (s *ServiceOp) CreateDeployment(ctx context.Context, input *CreateDeploymentInput) (*CreateDeploymentOutput, error)
- func (s *ServiceOp) CreatePlan(ctx context.Context, input *CreatePlanInput) (*CreatePlanOutput, error)
- func (s *ServiceOp) CreateStack(ctx context.Context, input *Stack) (*Stack, error)
- func (s *ServiceOp) DeleteStack(ctx context.Context, stackId string) (*commons.EmptyResponse, error)
- func (s *ServiceOp) ListStacks(ctx context.Context, stackId *string, stackName *string, namespaceId *string) ([]*Stack, error)
- func (s *ServiceOp) ReadDeployment(ctx context.Context, input *ReadDeploymentInput) (*ReadDeploymentOutput, error)
- func (s *ServiceOp) ReadPlan(ctx context.Context, input *ReadPlanInput) (*ReadPlanOutput, error)
- func (s *ServiceOp) ReadStack(ctx context.Context, stackId string) (*Stack, error)
- func (s *ServiceOp) UpdateStack(ctx context.Context, stackId string, input *Stack) (*Stack, error)
- type Stack
- type TtlConfig
- type TtlDefinition
- type TtlOverride
- type VcsInfo
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 (*AutoSync) SetDeployWhenDriftDetected ¶ added in v1.3.0
type CreateDeploymentInput ¶
type CreateDeploymentInput struct {
StackId *string `json:"stackId,omitempty"`
}
type CreateDeploymentOutput ¶
type CreateDeploymentOutput struct {
Deployment *Deployment `json:"deployment,omitempty"`
}
type CreatePlanInput ¶
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 (*Data) SetAutoSync ¶ added in v1.3.0
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 (*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 ¶
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 (*IacConfig) SetIsTerragruntRunAll ¶ added in v1.3.0
func (*IacConfig) SetOpentofuVersion ¶ added in v1.4.0
func (*IacConfig) SetTerraformVersion ¶
func (*IacConfig) SetTerragruntVersion ¶
func (*IacConfig) SetVarFiles ¶ added in v1.3.0
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 ¶
type Policy ¶
type Policy struct { TtlConfig *TtlConfig `json:"ttlConfig,omitempty"` // contains filtered or unexported fields }
func (Policy) MarshalJSON ¶
func (*Policy) SetTtlConfig ¶
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 ¶
type Service interface { CreateStack(context.Context, *Stack) (*Stack, error) ListStacks(context.Context, *string, *string, *string) ([]*Stack, error) ReadStack(context.Context, string) (*Stack, error) UpdateStack(context.Context, string, *Stack) (*Stack, error) DeleteStack(context.Context, string) (*commons.EmptyResponse, error) CreateDeployment(context.Context, *CreateDeploymentInput) (*CreateDeploymentOutput, error) ReadDeployment(context.Context, *ReadDeploymentInput) (*ReadDeploymentOutput, error) CreatePlan(context.Context, *CreatePlanInput) (*CreatePlanOutput, error) ReadPlan(context.Context, *ReadPlanInput) (*ReadPlanOutput, error) }
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.
type ServiceOp ¶
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 (*ServiceOp) DeleteStack ¶
func (*ServiceOp) ListStacks ¶
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)
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 (*Stack) SetDescription ¶
func (*Stack) SetIacType ¶
func (*Stack) SetNamespaceId ¶
type TtlConfig ¶
type TtlConfig struct { Ttl *TtlDefinition `json:"ttl,omitempty"` TtlOverride *TtlOverride `json:"ttlOverride,omitempty"` // contains filtered or unexported fields }
func (TtlConfig) MarshalJSON ¶
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 (*VcsInfo) SetProviderId ¶
func (*VcsInfo) SetRepoName ¶
Click to show internal directories.
Click to hide internal directories.