Documentation ¶
Index ¶
- Variables
- func DataSourceApplications() *schema.Resource
- func DataSourceEnvironments() *schema.Resource
- func FilterActivatedConfigurations(configurations []interface{}) map[string]*LinkedList
- func GetComponentById(cfg *config.Config, region, environmentId, applicationId, componentId string) (interface{}, error)
- func ParseQueryError400(err error, specErrors []string) error
- func ResourceComponent() *schema.Resource
- func ResourceComponentConfigurations() *schema.Resource
- func ResourceComponentDeployment() *schema.Resource
- type LinkedList
- type ListNode
Constants ¶
This section is empty.
Variables ¶
var ComponentResourceNotFoundCodes = []string{
"CAE.01500404",
"CAE.01500208",
}
var ConfigRelatedResourcesNotFoundCodes = []string{
"CAE.01500208",
"CAE.01500404",
}
Functions ¶
func DataSourceApplications ¶ added in v1.63.2
@API CAE GET /v1/{project_id}/cae/applications
func DataSourceEnvironments ¶ added in v1.63.2
@API CAE GET /v1/{project_id}/cae/environments
func FilterActivatedConfigurations ¶
func FilterActivatedConfigurations(configurations []interface{}) map[string]*LinkedList
func GetComponentById ¶
func GetComponentById(cfg *config.Config, region, environmentId, applicationId, componentId string) (interface{}, error)
GetComponentById is a method to query component details from a specified application ID using given parameters.
func ParseQueryError400 ¶
ParseQueryError400 is a method used to parse whether a 404 error message means the resources not found. For the CAE service, there are some known 404 error codes: + CAE.01500208: application or component does not found. + CAE.01500404: environment does not found.
func ResourceComponent ¶
@API CAE POST /v1/{project_id}/cae/applications/{application_id}/components @API CAE GET /v1/{project_id}/cae/applications/{application_id}/components/{component_id} @API CAE PUT /v1/{project_id}/cae/applications/{application_id}/components/{component_id} @API CAE DELETE /v1/{project_id}/cae/applications/{application_id}/components/{component_id}
func ResourceComponentConfigurations ¶
@API CAE POST /v1/{project_id}/cae/applications/{application_id}/components/{component_id}/configurations @API CAE GET /v1/{project_id}/cae/applications/{application_id}/components/{component_id}/configurations @API CAE DELETE /v1/{project_id}/cae/applications/{application_id}/components/{component_id}/configurations
func ResourceComponentDeployment ¶
@API CAE POST /v1/{project_id}/cae/applications/{application_id}/components/{component_id}/action @API CAE GET /v1/{project_id}/cae/jobs/{job_id} ResourceComponentDeployment is a definition of the one-time action resource that used to manage component deployment.
Types ¶
type LinkedList ¶
type LinkedList struct {
// contains filtered or unexported fields
}
LinkedList is the structure of Singly Linked linked list.
func NewLinkedList ¶
func NewLinkedList() *LinkedList
NewLinkedList is a method that used to create a new linked list.
func (*LinkedList) Add ¶
func (l *LinkedList) Add(timestamp int64, value interface{})
Add is a method that used to add a new node to the head of the linked list.
func (*LinkedList) GetLatestEditingResult ¶
func (l *LinkedList) GetLatestEditingResult() interface{}
GetLatestEditingResult is a method that used to obtain the last editing results of specified type of configuration.