cae

package
v1.64.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ComponentResourceNotFoundCodes = []string{
	"CAE.01500404",
	"CAE.01500208",
}
View Source
var ConfigRelatedResourcesNotFoundCodes = []string{
	"CAE.01500208",
	"CAE.01500404",
}

Functions

func DataSourceApplications added in v1.63.2

func DataSourceApplications() *schema.Resource

@API CAE GET /v1/{project_id}/cae/applications

func DataSourceEnvironments added in v1.63.2

func DataSourceEnvironments() *schema.Resource

@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

func ParseQueryError400(err error, specErrors []string) error

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

func ResourceComponent() *schema.Resource

@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

func ResourceComponentConfigurations() *schema.Resource

@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

func ResourceComponentDeployment() *schema.Resource

@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.

type ListNode

type ListNode struct {
	Timestamp int64
	Val       interface{} // The stored data for node.
	Next      *ListNode   // Pointer to next node.
}

ListNode is the structure of linked list node.

Jump to

Keyboard shortcuts

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