Documentation
¶
Index ¶
- Variables
- type CreateDeploymentInput
- type CreateDeploymentOutput
- type CreatePlanInput
- type CreatePlanOutput
- type DeletePlanInput
- type DeletePlanOutput
- type Deployment
- type ListPlansInput
- type ListPlansOutput
- type Plan
- type Product
- type ReadDeploymentInput
- type ReadDeploymentOutput
- type ReadPlanInput
- type ReadPlanOutput
- 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) ReadDeployment(ctx context.Context, input *ReadDeploymentInput) (*ReadDeploymentOutput, error)
- func (s *ServiceOp) ReadPlan(ctx context.Context, input *ReadPlanInput) (*ReadPlanOutput, error)
- type UpdatePlanInput
- type UpdatePlanOutput
Constants ¶
This section is empty.
Variables ¶
View Source
var ProductName = map[Product]string{ ProductWindows: "Windows", ProductWindowsVPC: "Windows (Amazon VPC)", ProductLinuxUnix: "Linux/UNIX", ProductLinuxUnixVPC: "Linux/UNIX (Amazon VPC)", ProductSUSELinux: "SUSE Linux", ProductSUSELinuxVPC: "SUSE Linux (Amazon VPC)", }
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 DeletePlanInput ¶
type DeletePlanInput struct{}
type DeletePlanOutput ¶
type DeletePlanOutput struct{}
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 ListPlansInput ¶
type ListPlansInput struct{}
type ListPlansOutput ¶
type ListPlansOutput struct {
Plans []*Plan `json:"stacks,omitempty"`
}
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 Product ¶
type Product int
A Product represents the type of an operating system.
const ( // ProductWindows represents the Windows product. ProductWindows Product = iota // ProductWindowsVPC represents the Windows (Amazon VPC) product. ProductWindowsVPC // ProductLinuxUnix represents the Linux/Unix product. ProductLinuxUnix // ProductLinuxUnixVPC represents the Linux/Unix (Amazon VPC) product. ProductLinuxUnixVPC // ProductSUSELinux represents the SUSE Linux product. ProductSUSELinux // ProductSUSELinuxVPC represents the SUSE Linux (Amazon VPC) product. ProductSUSELinuxVPC )
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 Service ¶
type Service interface {
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) 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 UpdatePlanInput ¶
type UpdatePlanInput struct{}
type UpdatePlanOutput ¶
type UpdatePlanOutput struct{}
Click to show internal directories.
Click to hide internal directories.