ecs_instance

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSourceVestackEcsInstances

func DataSourceVestackEcsInstances() *schema.Resource

func ResourceVestackEcsInstance

func ResourceVestackEcsInstance() *schema.Resource

Types

type VestackEcsService

type VestackEcsService struct {
	Client     *ve.SdkClient
	Dispatcher *ve.Dispatcher
}

func NewEcsService

func NewEcsService(c *ve.SdkClient) *VestackEcsService

func (*VestackEcsService) CommonResponseConvert

func (s *VestackEcsService) CommonResponseConvert() map[string]ve.ResponseConvert

func (*VestackEcsService) CreateResource

func (s *VestackEcsService) CreateResource(resourceData *schema.ResourceData, resource *schema.Resource) []ve.Callback

func (*VestackEcsService) DatasourceResources

func (s *VestackEcsService) DatasourceResources(data *schema.ResourceData, resource *schema.Resource) ve.DataSourceInfo

func (*VestackEcsService) GetClient

func (s *VestackEcsService) GetClient() *ve.SdkClient

func (*VestackEcsService) ModifyResource

func (s *VestackEcsService) ModifyResource(resourceData *schema.ResourceData, resource *schema.Resource) (callbacks []ve.Callback)

func (*VestackEcsService) ReadResource

func (s *VestackEcsService) ReadResource(resourceData *schema.ResourceData, instanceId string) (data map[string]interface{}, err error)

func (*VestackEcsService) ReadResourceId

func (s *VestackEcsService) ReadResourceId(id string) string

func (*VestackEcsService) ReadResources

func (s *VestackEcsService) ReadResources(condition map[string]interface{}) ([]interface{}, error)

func (*VestackEcsService) RefreshResourceState

func (s *VestackEcsService) RefreshResourceState(resourceData *schema.ResourceData, target []string, timeout time.Duration, id string) *resource.StateChangeConf

func (*VestackEcsService) RemoveResource

func (s *VestackEcsService) RemoveResource(resourceData *schema.ResourceData, r *schema.Resource) []ve.Callback

func (*VestackEcsService) StartOrStopInstanceCallback

func (s *VestackEcsService) StartOrStopInstanceCallback(resourceData *schema.ResourceData, isStop bool) ve.Callback

func (*VestackEcsService) WithResourceResponseHandlers

func (s *VestackEcsService) WithResourceResponseHandlers(ecs map[string]interface{}) []ve.ResourceResponseHandler

Jump to

Keyboard shortcuts

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