Documentation
¶
Index ¶
- type CreateDeploymentInput
- type CreateDeploymentOutput
- type CreatePlanInput
- type CreatePlanOutput
- type CreateStackInput
- type CreateStackOutput
- type Data
- type Deployment
- type DeploymentBehavior
- type IacConfig
- type ListStacksOutput
- type ListStacksParams
- type Plan
- type Policy
- type ReadDeploymentInput
- type ReadDeploymentOutput
- type ReadPlanInput
- type ReadPlanOutput
- type ReadStackOutput
- type RunTrigger
- 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 *CreateStackInput) (*CreateStackOutput, error)
- func (s *ServiceOp) DeleteStack(ctx context.Context, stackId string) (*commons.EmptyResponse, error)
- func (s *ServiceOp) ListStacks(ctx context.Context, input *ListStacksParams) (*ListStacksOutput, 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) (*ReadStackOutput, error)
- func (s *ServiceOp) UpdateStack(ctx context.Context, stackId string, input *Stack) (*UpdateStackOutput, error)
- type Stack
- func (o Stack) MarshalJSON() ([]byte, error)
- func (o *Stack) SetData(v *Data) *Stack
- func (o *Stack) SetDescription(v *string) *Stack
- func (o *Stack) SetIacType(v *string) *Stack
- func (o *Stack) SetName(v *string) *Stack
- func (o *Stack) SetNamespaceId(v *string) *Stack
- func (o *Stack) SetTemplateId(v *string) *Stack
- type TtlConfig
- type TtlDefinition
- type UpdateStackOutput
- type VcsInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 CreateStackOutput ¶
type CreateStackOutput struct {
Stack *Stack `json:"stack,omitempty"`
}
type Data ¶
type Data struct {
DeploymentBehavior *DeploymentBehavior `json:"deploymentBehavior,omitempty"`
VcsInfo *VcsInfo `json:"vcsInfo,omitempty"`
RunTrigger *RunTrigger `json:"runTrigger,omitempty"`
IacConfig *IacConfig `json:"iacConfig,omitempty"`
Policy *Policy `json:"policy,omitempty"`
// contains filtered or unexported fields
}
func (Data) MarshalJSON ¶
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) 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"`
// contains filtered or unexported fields
}
func (IacConfig) MarshalJSON ¶
func (*IacConfig) SetTerraformVersion ¶
func (*IacConfig) SetTerragruntVersion ¶
type ListStacksOutput ¶
type ListStacksOutput struct {
Stacks []*Stack `json:"stacks,omitempty"`
}
type ListStacksParams ¶
type ListStacksParams struct {
NamespaceId *string
}
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 ReadStackOutput ¶
type ReadStackOutput struct {
Stack *Stack `json:"stack,omitempty"`
}
type RunTrigger ¶
type RunTrigger struct {
Patterns *[]*string `json:"patterns,omitempty"`
// contains filtered or unexported fields
}
func (RunTrigger) MarshalJSON ¶
func (o RunTrigger) MarshalJSON() ([]byte, error)
func (*RunTrigger) SetPatterns ¶
func (o *RunTrigger) SetPatterns(v *[]*string) *RunTrigger
type Service ¶
type Service interface {
ListStacks(context.Context, *ListStacksParams) (*ListStacksOutput, error)
CreateStack(context.Context, *CreateStackInput) (*CreateStackOutput, error)
ReadStack(context.Context, string) (*ReadStackOutput, error)
UpdateStack(context.Context, string, *Stack) (*UpdateStackOutput, 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 (s *ServiceOp) CreateStack(ctx context.Context, input *CreateStackInput) (*CreateStackOutput, error)
func (*ServiceOp) DeleteStack ¶
func (*ServiceOp) ListStacks ¶
func (s *ServiceOp) ListStacks(ctx context.Context, input *ListStacksParams) (*ListStacksOutput, 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) UpdateStack ¶
type Stack ¶
type Stack struct {
ID *string `json:"id,omitempty"` // read-only
IacType *string `json:"iacType,omitempty"`
NamespaceId *string `json:"namespaceId,omitempty"`
TemplateId *string `json:"templateId,omitempty"` // read-only
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 ¶
func (*Stack) SetTemplateId ¶
type TtlConfig ¶
type TtlConfig struct {
Ttl *TtlDefinition `json:"ttl,omitempty"`
// contains filtered or unexported fields
}
func (TtlConfig) MarshalJSON ¶
func (*TtlConfig) SetTtl ¶
func (o *TtlConfig) SetTtl(v *TtlDefinition) *TtlConfig
type TtlDefinition ¶
type TtlDefinition struct {
Type *string `json:"type,omitempty"`
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 UpdateStackOutput ¶
type UpdateStackOutput struct {
Stack *Stack `json:"stack,omitempty"`
}
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.