Documentation ¶
Index ¶
- Constants
- func ResourceVestackEcsInstanceState() *schema.Resource
- type InstanceStateAction
- type VestackInstanceStateService
- func (s *VestackInstanceStateService) CreateResource(resourceData *schema.ResourceData, resource *schema.Resource) []ve.Callback
- func (s *VestackInstanceStateService) DatasourceResources(*schema.ResourceData, *schema.Resource) ve.DataSourceInfo
- func (s *VestackInstanceStateService) GetClient() *ve.SdkClient
- func (s *VestackInstanceStateService) ModifyResource(resourceData *schema.ResourceData, resource *schema.Resource) []ve.Callback
- func (s *VestackInstanceStateService) ReadResource(resourceData *schema.ResourceData, tmpId string) (data map[string]interface{}, err error)
- func (s *VestackInstanceStateService) ReadResourceId(id string) string
- func (s *VestackInstanceStateService) ReadResources(condition map[string]interface{}) (data []interface{}, err error)
- func (s *VestackInstanceStateService) RefreshResourceState(resourceData *schema.ResourceData, target []string, timeout time.Duration, ...) *resource.StateChangeConf
- func (s *VestackInstanceStateService) RemoveResource(resourceData *schema.ResourceData, r *schema.Resource) []ve.Callback
- func (VestackInstanceStateService) WithResourceResponseHandlers(subnet map[string]interface{}) []ve.ResourceResponseHandler
Constants ¶
View Source
const ( StartAction = InstanceStateAction("Start") StopAction = InstanceStateAction("Stop") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InstanceStateAction ¶
type InstanceStateAction string
type VestackInstanceStateService ¶
type VestackInstanceStateService struct { Client *ve.SdkClient Dispatcher *ve.Dispatcher }
func NewInstanceStateService ¶
func NewInstanceStateService(c *ve.SdkClient) *VestackInstanceStateService
func (*VestackInstanceStateService) CreateResource ¶
func (s *VestackInstanceStateService) CreateResource(resourceData *schema.ResourceData, resource *schema.Resource) []ve.Callback
func (*VestackInstanceStateService) DatasourceResources ¶
func (s *VestackInstanceStateService) DatasourceResources(*schema.ResourceData, *schema.Resource) ve.DataSourceInfo
func (*VestackInstanceStateService) GetClient ¶
func (s *VestackInstanceStateService) GetClient() *ve.SdkClient
func (*VestackInstanceStateService) ModifyResource ¶
func (s *VestackInstanceStateService) ModifyResource(resourceData *schema.ResourceData, resource *schema.Resource) []ve.Callback
func (*VestackInstanceStateService) ReadResource ¶
func (s *VestackInstanceStateService) ReadResource(resourceData *schema.ResourceData, tmpId string) (data map[string]interface{}, err error)
func (*VestackInstanceStateService) ReadResourceId ¶
func (s *VestackInstanceStateService) ReadResourceId(id string) string
func (*VestackInstanceStateService) ReadResources ¶
func (s *VestackInstanceStateService) ReadResources(condition map[string]interface{}) (data []interface{}, err error)
func (*VestackInstanceStateService) RefreshResourceState ¶
func (s *VestackInstanceStateService) RefreshResourceState(resourceData *schema.ResourceData, target []string, timeout time.Duration, id string) *resource.StateChangeConf
func (*VestackInstanceStateService) RemoveResource ¶
func (s *VestackInstanceStateService) RemoveResource(resourceData *schema.ResourceData, r *schema.Resource) []ve.Callback
func (VestackInstanceStateService) WithResourceResponseHandlers ¶
func (VestackInstanceStateService) WithResourceResponseHandlers(subnet map[string]interface{}) []ve.ResourceResponseHandler
Click to show internal directories.
Click to hide internal directories.