Documentation ¶
Index ¶
- Constants
- func AttachList(diskIIDList []irs.IID, ownerVMIID irs.IID, ...) (*servers.Server, error)
- func CheckExistKey(client *gophercloud.ServiceClient, keyIID irs.IID) (bool, error)
- func CheckIIDValidation(IId irs.IID) bool
- func CheckKeyPairReqInfo(keyPairReqInfo irs.KeyPairReqInfo) error
- func CheckSnapshot(image images.Image) (bool, error)
- func GetCallLogScheme(endpoint string, resourceType call.RES_TYPE, resourceName string, ...) call.CLOUDLOGSCHEMA
- func GetFlavorByName(client *gophercloud.ServiceClient, flavorName string) (flavors.Flavor, error)
- func GetNetworkByName(networkClient *gophercloud.ServiceClient, networkName string) (*networks.Network, error)
- func GetPortByDeviceID(networkClient *gophercloud.ServiceClient, deviceID string) (*ports.Port, error)
- func GetPublicVPCInfo(client *gophercloud.ServiceClient, typeName string) (string, error)
- func GetRawKey(client *gophercloud.ServiceClient, keyIID irs.IID) (keypairs.KeyPair, error)
- func GetSecurityByName(networkClient *gophercloud.ServiceClient, securityName string) (*secgroups.SecurityGroup, error)
- func GetSubnetByID(networkClient *gophercloud.ServiceClient, subnetId string) (*subnets.Subnet, error)
- func Hosts(cidr string) ([]string, error)
- func InitLog()
- func LoggingError(hiscallInfo call.CLOUDLOGSCHEMA, err error)
- func LoggingInfo(hiscallInfo call.CLOUDLOGSCHEMA, start time.Time)
- type BlockDeviceMapping
- type DataDiskInfo
- type ImageMetaData
- type NLBScope
- type NLBType
- type NetworkWithExt
- type OpenStackAnyCallHandler
- type OpenStackImageHandler
- func (imageHandler *OpenStackImageHandler) CheckWindowsImage(imageIID irs.IID) (bool, error)
- func (imageHandler *OpenStackImageHandler) CreateImage(imageReqInfo irs.ImageReqInfo) (irs.ImageInfo, error)
- func (imageHandler *OpenStackImageHandler) DeleteImage(imageIID irs.IID) (bool, error)
- func (imageHandler *OpenStackImageHandler) GetImage(imageIID irs.IID) (irs.ImageInfo, error)
- func (imageHandler *OpenStackImageHandler) ListImage() ([]*irs.ImageInfo, error)
- type OpenStackKeyPairHandler
- func (keyPairHandler *OpenStackKeyPairHandler) CreateKey(keyPairReqInfo irs.KeyPairReqInfo) (irs.KeyPairInfo, error)
- func (keyPairHandler *OpenStackKeyPairHandler) DeleteKey(keyIID irs.IID) (bool, error)
- func (keyPairHandler *OpenStackKeyPairHandler) GetKey(keyIID irs.IID) (irs.KeyPairInfo, error)
- func (keyPairHandler *OpenStackKeyPairHandler) ListKey() ([]*irs.KeyPairInfo, error)
- type OpenStackMyImageHandler
- func (myImageHandler *OpenStackMyImageHandler) CheckWindowsImage(myImageIID irs.IID) (bool, error)
- func (myImageHandler *OpenStackMyImageHandler) DeleteMyImage(myImageIID irs.IID) (bool, error)
- func (myImageHandler *OpenStackMyImageHandler) GetMyImage(myImageIID irs.IID) (irs.MyImageInfo, error)
- func (myImageHandler *OpenStackMyImageHandler) ListMyImage() ([]*irs.MyImageInfo, error)
- func (myImageHandler *OpenStackMyImageHandler) SnapshotVM(snapshotReqInfo irs.MyImageInfo) (irs.MyImageInfo, error)
- type OpenStackNLBHandler
- func (nlbHandler *OpenStackNLBHandler) AddVMs(nlbIID irs.IID, vmIIDs *[]irs.IID) (irs.VMGroupInfo, error)
- func (nlbHandler *OpenStackNLBHandler) AssociatePublicIP(nlbPortId string) (bool, error)
- func (nlbHandler *OpenStackNLBHandler) ChangeHealthCheckerInfo(nlbIID irs.IID, healthChecker irs.HealthCheckerInfo) (irs.HealthCheckerInfo, error)
- func (nlbHandler *OpenStackNLBHandler) ChangeListener(nlbIID irs.IID, listener irs.ListenerInfo) (irs.ListenerInfo, error)
- func (nlbHandler *OpenStackNLBHandler) ChangeVMGroupInfo(nlbIID irs.IID, vmGroup irs.VMGroupInfo) (irs.VMGroupInfo, error)
- func (nlbHandler *OpenStackNLBHandler) CleanerNLB(nlbIID irs.IID) (bool, error)
- func (nlbHandler *OpenStackNLBHandler) CreateNLB(nlbReqInfo irs.NLBInfo) (createNLB irs.NLBInfo, createError error)
- func (nlbHandler *OpenStackNLBHandler) DeleteNLB(nlbIID irs.IID) (bool, error)
- func (nlbHandler *OpenStackNLBHandler) ExistEqualName(name string) (bool, error)
- func (nlbHandler *OpenStackNLBHandler) GetNLB(nlbIID irs.IID) (irs.NLBInfo, error)
- func (nlbHandler *OpenStackNLBHandler) GetVMGroupHealthInfo(nlbIID irs.IID) (irs.HealthInfo, error)
- func (nlbHandler *OpenStackNLBHandler) ListNLB() ([]*irs.NLBInfo, error)
- func (nlbHandler *OpenStackNLBHandler) RemoveVMs(nlbIID irs.IID, vmIIDs *[]irs.IID) (bool, error)
- type OpenStackRegionZoneHandler
- func (regionZoneHandler *OpenStackRegionZoneHandler) GetRegionZone(Name string) (irs.RegionZoneInfo, error)
- func (regionZoneHandler *OpenStackRegionZoneHandler) ListOrgRegion() (string, error)
- func (regionZoneHandler *OpenStackRegionZoneHandler) ListOrgZone() (string, error)
- func (regionZoneHandler *OpenStackRegionZoneHandler) ListRegionZone() ([]*irs.RegionZoneInfo, error)
- type OpenStackSecurityHandler
- func (securityHandler *OpenStackSecurityHandler) AddRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (irs.SecurityInfo, error)
- func (securityHandler *OpenStackSecurityHandler) CreateSecurity(securityReqInfo irs.SecurityReqInfo) (createdSG irs.SecurityInfo, creteErr error)
- func (securityHandler *OpenStackSecurityHandler) DeleteSecurity(securityIID irs.IID) (bool, error)
- func (securityHandler *OpenStackSecurityHandler) GetSecurity(securityIID irs.IID) (irs.SecurityInfo, error)
- func (securityHandler *OpenStackSecurityHandler) ListSecurity() ([]*irs.SecurityInfo, error)
- func (securityHandler *OpenStackSecurityHandler) RemoveRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (bool, error)
- type OpenStackTagHandler
- func (tagHandler *OpenStackTagHandler) AddTag(resType irs.RSType, resIID irs.IID, tag irs.KeyValue) (irs.KeyValue, error)
- func (tagHandler *OpenStackTagHandler) FindTag(resType irs.RSType, keyword string) ([]*irs.TagInfo, error)
- func (tagHandler *OpenStackTagHandler) GetTag(resType irs.RSType, resIID irs.IID, key string) (irs.KeyValue, error)
- func (tagHandler *OpenStackTagHandler) ListTag(resType irs.RSType, resIID irs.IID) ([]irs.KeyValue, error)
- func (tagHandler *OpenStackTagHandler) RemoveTag(resType irs.RSType, resIID irs.IID, key string) (bool, error)
- type OpenStackVMHandler
- func (vmHandler *OpenStackVMHandler) AssociatePublicIP(serverID string) (bool, error)
- func (vmHandler *OpenStackVMHandler) GetVM(vmIID irs.IID) (irs.VMInfo, error)
- func (vmHandler *OpenStackVMHandler) GetVMStatus(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *OpenStackVMHandler) ListVM() ([]*irs.VMInfo, error)
- func (vmHandler *OpenStackVMHandler) ListVMStatus() ([]*irs.VMStatusInfo, error)
- func (vmHandler *OpenStackVMHandler) RebootVM(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *OpenStackVMHandler) ResumeVM(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *OpenStackVMHandler) StartVM(vmReqInfo irs.VMReqInfo) (startvm irs.VMInfo, createErr error)
- func (vmHandler *OpenStackVMHandler) SuspendVM(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *OpenStackVMHandler) TerminateVM(vmIID irs.IID) (irs.VMStatus, error)
- type OpenStackVMSpecHandler
- func (vmSpecHandler *OpenStackVMSpecHandler) GetOrgVMSpec(Name string) (string, error)
- func (vmSpecHandler *OpenStackVMSpecHandler) GetVMSpec(Name string) (irs.VMSpecInfo, error)
- func (vmSpecHandler *OpenStackVMSpecHandler) ListOrgVMSpec() (string, error)
- func (vmSpecHandler *OpenStackVMSpecHandler) ListVMSpec() ([]*irs.VMSpecInfo, error)
- type OpenStackVPCHandler
- func (vpcHandler *OpenStackVPCHandler) AddInterface(subnetId string, routerId string) (bool, error)
- func (vpcHandler *OpenStackVPCHandler) AddSubnet(vpcIID irs.IID, subnetInfo irs.SubnetInfo) (irs.VPCInfo, error)
- func (vpcHandler *OpenStackVPCHandler) CreateRouter(vpcName string) (*string, error)
- func (vpcHandler *OpenStackVPCHandler) CreateSubnet(vpcId string, reqSubnetInfo irs.SubnetInfo) (irs.SubnetInfo, error)
- func (vpcHandler *OpenStackVPCHandler) CreateVPC(vpcReqInfo irs.VPCReqInfo) (createdVPC irs.VPCInfo, createErr error)
- func (vpcHandler *OpenStackVPCHandler) DeleteInterface(subnetId string, routerId string) (bool, error)
- func (vpcHandler *OpenStackVPCHandler) DeleteRouter(vpcName string) (bool, error)
- func (vpcHandler *OpenStackVPCHandler) DeleteSubnet(subnetIId irs.IID) (bool, error)
- func (vpcHandler *OpenStackVPCHandler) DeleteVPC(vpcIID irs.IID) (bool, error)
- func (vpcHandler *OpenStackVPCHandler) GetRouter(vpcName string) (*string, error)
- func (vpcHandler *OpenStackVPCHandler) GetSubnet(subnetIId irs.IID) (irs.SubnetInfo, error)
- func (vpcHandler *OpenStackVPCHandler) GetVPC(vpcIID irs.IID) (irs.VPCInfo, error)
- func (vpcHandler *OpenStackVPCHandler) ListVPC() ([]*irs.VPCInfo, error)
- func (vpcHandler *OpenStackVPCHandler) RemoveSubnet(vpcIID irs.IID, subnetIID irs.IID) (bool, error)
- type OpenstackDiskHandler
- func (diskHandler *OpenstackDiskHandler) AttachDisk(diskIID irs.IID, ownerVM irs.IID) (irs.DiskInfo, error)
- func (diskHandler *OpenstackDiskHandler) ChangeDiskSize(diskIID irs.IID, size string) (bool, error)
- func (diskHandler *OpenstackDiskHandler) CheckDiskHandler() error
- func (diskHandler *OpenstackDiskHandler) CreateDisk(DiskReqInfo irs.DiskInfo) (irs.DiskInfo, error)
- func (diskHandler *OpenstackDiskHandler) DeleteDisk(diskIID irs.IID) (bool, error)
- func (diskHandler *OpenstackDiskHandler) DetachDisk(diskIID irs.IID, ownerVM irs.IID) (bool, error)
- func (diskHandler *OpenstackDiskHandler) GetDisk(diskIID irs.IID) (irs.DiskInfo, error)
- func (diskHandler *OpenstackDiskHandler) ListDisk() ([]*irs.DiskInfo, error)
Constants ¶
View Source
const ( DNSNameservers = "8.8.8.8" ResourceNotFound = "Resource not found" )
View Source
const ( VolumeV2 string = "volumev2" VolumeV3 string = "volumev3" )
View Source
const ( NLBPublicType NLBType = "PUBLIC" NLBInternalType NLBType = "INTERNAL" NLBGlobalType NLBScope = "GLOBAL" NLBRegionType NLBScope = "REGION" )
View Source
const ( Inbound = "inbound" Outbound = "outbound" ICMP = "icmp" SecurityGroup = "SECURITYGROUP" )
View Source
const ( WindowBaseUser = "Administrator" VM = "VM" SSHDefaultUser = "cb-user" )
View Source
const (
Image = "IMAGE"
)
View Source
const (
KeyPair = "KEYPAIR"
)
View Source
const (
VMSpec = "VMSPEC"
)
View Source
const (
VPC = "VPC"
)
Variables ¶
This section is empty.
Functions ¶
func AttachList ¶ added in v0.6.12
func AttachList(diskIIDList []irs.IID, ownerVMIID irs.IID, computeClient *gophercloud.ServiceClient, volumeClient *gophercloud.ServiceClient) (*servers.Server, error)
func CheckExistKey ¶ added in v0.4.15
func CheckExistKey(client *gophercloud.ServiceClient, keyIID irs.IID) (bool, error)
func CheckIIDValidation ¶ added in v0.4.12
func CheckKeyPairReqInfo ¶ added in v0.4.15
func CheckKeyPairReqInfo(keyPairReqInfo irs.KeyPairReqInfo) error
func GetCallLogScheme ¶ added in v0.2.1
func GetFlavorByName ¶ added in v0.3.14
func GetFlavorByName(client *gophercloud.ServiceClient, flavorName string) (flavors.Flavor, error)
func GetNetworkByName ¶ added in v0.1.5
func GetNetworkByName(networkClient *gophercloud.ServiceClient, networkName string) (*networks.Network, error)
func GetPortByDeviceID ¶ added in v0.1.5
func GetPortByDeviceID(networkClient *gophercloud.ServiceClient, deviceID string) (*ports.Port, error)
func GetPublicVPCInfo ¶ added in v0.1.9
func GetPublicVPCInfo(client *gophercloud.ServiceClient, typeName string) (string, error)
func GetRawKey ¶ added in v0.4.15
func GetRawKey(client *gophercloud.ServiceClient, keyIID irs.IID) (keypairs.KeyPair, error)
func GetSecurityByName ¶ added in v0.1.5
func GetSecurityByName(networkClient *gophercloud.ServiceClient, securityName string) (*secgroups.SecurityGroup, error)
func GetSubnetByID ¶ added in v0.1.5
func GetSubnetByID(networkClient *gophercloud.ServiceClient, subnetId string) (*subnets.Subnet, error)
func LoggingError ¶ added in v0.2.1
func LoggingError(hiscallInfo call.CLOUDLOGSCHEMA, err error)
func LoggingInfo ¶ added in v0.2.1
func LoggingInfo(hiscallInfo call.CLOUDLOGSCHEMA, start time.Time)
Types ¶
type BlockDeviceMapping ¶ added in v0.6.9
type DataDiskInfo ¶ added in v0.6.9
type ImageMetaData ¶ added in v0.6.9
type ImageMetaData struct { BaseImageRef string `json:"base_image_ref"` RootDeviceName string `json:"root_device_name"` ImageType string `json:"image_type"` ImageLocation string `json:"image_location"` InstanceUuid string `json:"instance_uuid"` BlockDeviceMapping []BlockDeviceMapping `json:"block_device_mapping"` DeviceType string `json:"device_type"` DestinationType string `json:"destination_type"` DeleteOnTermination bool `json:"delete_on_termination"` SourceVMID string `json:"source_vm_id"` // spider Tag SourceVMName string `json:"source_vm_name"` // spider Tag DataVolumesString string `json:"data_volumes_raw"` }
type NetworkWithExt ¶ added in v0.3.14
type NetworkWithExt struct { networks.Network external.NetworkExternalExt }
type OpenStackAnyCallHandler ¶ added in v0.6.9
type OpenStackAnyCallHandler struct { Region idrv.RegionInfo CredentialInfo idrv.CredentialInfo }
func (*OpenStackAnyCallHandler) AnyCall ¶ added in v0.6.9
func (anyCallHandler *OpenStackAnyCallHandler) AnyCall(callInfo irs.AnyCallInfo) (irs.AnyCallInfo, error)
*******************************************************
// call example curl -sX POST http://localhost:1024/spider/anycall -H 'Content-Type: application/json' -d \ '{ "ConnectionName" : "openstack-config01", "ReqInfo" : { "FID" : "getConnectionInfo" } }' | json_pp
*******************************************************
type OpenStackImageHandler ¶
type OpenStackImageHandler struct { Client *gophercloud.ServiceClient ImageClient *gophercloud.ServiceClient }
func (*OpenStackImageHandler) CheckWindowsImage ¶ added in v0.6.15
func (imageHandler *OpenStackImageHandler) CheckWindowsImage(imageIID irs.IID) (bool, error)
func (*OpenStackImageHandler) CreateImage ¶
func (imageHandler *OpenStackImageHandler) CreateImage(imageReqInfo irs.ImageReqInfo) (irs.ImageInfo, error)
func (*OpenStackImageHandler) DeleteImage ¶
func (imageHandler *OpenStackImageHandler) DeleteImage(imageIID irs.IID) (bool, error)
type OpenStackKeyPairHandler ¶
type OpenStackKeyPairHandler struct {
Client *gophercloud.ServiceClient
}
func (*OpenStackKeyPairHandler) CreateKey ¶
func (keyPairHandler *OpenStackKeyPairHandler) CreateKey(keyPairReqInfo irs.KeyPairReqInfo) (irs.KeyPairInfo, error)
func (*OpenStackKeyPairHandler) DeleteKey ¶
func (keyPairHandler *OpenStackKeyPairHandler) DeleteKey(keyIID irs.IID) (bool, error)
func (*OpenStackKeyPairHandler) GetKey ¶
func (keyPairHandler *OpenStackKeyPairHandler) GetKey(keyIID irs.IID) (irs.KeyPairInfo, error)
func (*OpenStackKeyPairHandler) ListKey ¶
func (keyPairHandler *OpenStackKeyPairHandler) ListKey() ([]*irs.KeyPairInfo, error)
type OpenStackMyImageHandler ¶ added in v0.6.9
type OpenStackMyImageHandler struct { CredentialInfo idrv.CredentialInfo Region idrv.RegionInfo Ctx context.Context ComputeClient *gophercloud.ServiceClient VolumeClient *gophercloud.ServiceClient }
func (*OpenStackMyImageHandler) CheckWindowsImage ¶ added in v0.6.15
func (myImageHandler *OpenStackMyImageHandler) CheckWindowsImage(myImageIID irs.IID) (bool, error)
func (*OpenStackMyImageHandler) DeleteMyImage ¶ added in v0.6.9
func (myImageHandler *OpenStackMyImageHandler) DeleteMyImage(myImageIID irs.IID) (bool, error)
func (*OpenStackMyImageHandler) GetMyImage ¶ added in v0.6.9
func (myImageHandler *OpenStackMyImageHandler) GetMyImage(myImageIID irs.IID) (irs.MyImageInfo, error)
func (*OpenStackMyImageHandler) ListMyImage ¶ added in v0.6.9
func (myImageHandler *OpenStackMyImageHandler) ListMyImage() ([]*irs.MyImageInfo, error)
func (*OpenStackMyImageHandler) SnapshotVM ¶ added in v0.6.9
func (myImageHandler *OpenStackMyImageHandler) SnapshotVM(snapshotReqInfo irs.MyImageInfo) (irs.MyImageInfo, error)
type OpenStackNLBHandler ¶ added in v0.5.10
type OpenStackNLBHandler struct { CredentialInfo idrv.CredentialInfo Region idrv.RegionInfo IdentityClient *gophercloud.ServiceClient ComputeClient *gophercloud.ServiceClient NetworkClient *gophercloud.ServiceClient NLBClient *gophercloud.ServiceClient }
func (*OpenStackNLBHandler) AddVMs ¶ added in v0.5.10
func (nlbHandler *OpenStackNLBHandler) AddVMs(nlbIID irs.IID, vmIIDs *[]irs.IID) (irs.VMGroupInfo, error)
func (*OpenStackNLBHandler) AssociatePublicIP ¶ added in v0.5.10
func (nlbHandler *OpenStackNLBHandler) AssociatePublicIP(nlbPortId string) (bool, error)
func (*OpenStackNLBHandler) ChangeHealthCheckerInfo ¶ added in v0.5.10
func (nlbHandler *OpenStackNLBHandler) ChangeHealthCheckerInfo(nlbIID irs.IID, healthChecker irs.HealthCheckerInfo) (irs.HealthCheckerInfo, error)
func (*OpenStackNLBHandler) ChangeListener ¶ added in v0.5.10
func (nlbHandler *OpenStackNLBHandler) ChangeListener(nlbIID irs.IID, listener irs.ListenerInfo) (irs.ListenerInfo, error)
------ Frontend Control
func (*OpenStackNLBHandler) ChangeVMGroupInfo ¶ added in v0.5.10
func (nlbHandler *OpenStackNLBHandler) ChangeVMGroupInfo(nlbIID irs.IID, vmGroup irs.VMGroupInfo) (irs.VMGroupInfo, error)
------ Backend Control
func (*OpenStackNLBHandler) CleanerNLB ¶ added in v0.5.10
func (nlbHandler *OpenStackNLBHandler) CleanerNLB(nlbIID irs.IID) (bool, error)
func (*OpenStackNLBHandler) CreateNLB ¶ added in v0.5.10
func (nlbHandler *OpenStackNLBHandler) CreateNLB(nlbReqInfo irs.NLBInfo) (createNLB irs.NLBInfo, createError error)
------ NLB Management
func (*OpenStackNLBHandler) DeleteNLB ¶ added in v0.5.10
func (nlbHandler *OpenStackNLBHandler) DeleteNLB(nlbIID irs.IID) (bool, error)
func (*OpenStackNLBHandler) ExistEqualName ¶ added in v0.5.10
func (nlbHandler *OpenStackNLBHandler) ExistEqualName(name string) (bool, error)
func (*OpenStackNLBHandler) GetVMGroupHealthInfo ¶ added in v0.5.10
func (nlbHandler *OpenStackNLBHandler) GetVMGroupHealthInfo(nlbIID irs.IID) (irs.HealthInfo, error)
type OpenStackRegionZoneHandler ¶ added in v0.7.6
type OpenStackRegionZoneHandler struct { Region idrv.RegionInfo IdentityClient *gophercloud.ServiceClient }
func (*OpenStackRegionZoneHandler) GetRegionZone ¶ added in v0.7.6
func (regionZoneHandler *OpenStackRegionZoneHandler) GetRegionZone(Name string) (irs.RegionZoneInfo, error)
func (*OpenStackRegionZoneHandler) ListOrgRegion ¶ added in v0.7.6
func (regionZoneHandler *OpenStackRegionZoneHandler) ListOrgRegion() (string, error)
func (*OpenStackRegionZoneHandler) ListOrgZone ¶ added in v0.7.6
func (regionZoneHandler *OpenStackRegionZoneHandler) ListOrgZone() (string, error)
ListOrgZone Region, Availability Zone 개념이 OpenStack은 다르게 작용함. 현재 구성은 config에 설정된 Region에서 사용가능한 zone 목록을 출력함.
func (*OpenStackRegionZoneHandler) ListRegionZone ¶ added in v0.7.6
func (regionZoneHandler *OpenStackRegionZoneHandler) ListRegionZone() ([]*irs.RegionZoneInfo, error)
type OpenStackSecurityHandler ¶
type OpenStackSecurityHandler struct { CredentialInfo idrv.CredentialInfo IdentityClient *gophercloud.ServiceClient ComputeClient *gophercloud.ServiceClient NetworkClient *gophercloud.ServiceClient NLBClient *gophercloud.ServiceClient }
func (*OpenStackSecurityHandler) AddRules ¶ added in v0.5.4
func (securityHandler *OpenStackSecurityHandler) AddRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (irs.SecurityInfo, error)
func (*OpenStackSecurityHandler) CreateSecurity ¶
func (securityHandler *OpenStackSecurityHandler) CreateSecurity(securityReqInfo irs.SecurityReqInfo) (createdSG irs.SecurityInfo, creteErr error)
func (*OpenStackSecurityHandler) DeleteSecurity ¶
func (securityHandler *OpenStackSecurityHandler) DeleteSecurity(securityIID irs.IID) (bool, error)
func (*OpenStackSecurityHandler) GetSecurity ¶
func (securityHandler *OpenStackSecurityHandler) GetSecurity(securityIID irs.IID) (irs.SecurityInfo, error)
func (*OpenStackSecurityHandler) ListSecurity ¶
func (securityHandler *OpenStackSecurityHandler) ListSecurity() ([]*irs.SecurityInfo, error)
func (*OpenStackSecurityHandler) RemoveRules ¶ added in v0.5.4
func (securityHandler *OpenStackSecurityHandler) RemoveRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (bool, error)
type OpenStackTagHandler ¶ added in v0.9.2
type OpenStackTagHandler struct { CredentialInfo idrv.CredentialInfo IdentityClient *gophercloud.ServiceClient ComputeClient *gophercloud.ServiceClient NetworkClient *gophercloud.ServiceClient NLBClient *gophercloud.ServiceClient }
type OpenStackVMHandler ¶
type OpenStackVMHandler struct { Region idrv.RegionInfo CredentialInfo idrv.CredentialInfo IdentityClient *gophercloud.ServiceClient ComputeClient *gophercloud.ServiceClient NetworkClient *gophercloud.ServiceClient NLBClient *gophercloud.ServiceClient VolumeClient *gophercloud.ServiceClient }
func (*OpenStackVMHandler) AssociatePublicIP ¶
func (vmHandler *OpenStackVMHandler) AssociatePublicIP(serverID string) (bool, error)
func (*OpenStackVMHandler) GetVMStatus ¶
func (*OpenStackVMHandler) ListVM ¶
func (vmHandler *OpenStackVMHandler) ListVM() ([]*irs.VMInfo, error)
func (*OpenStackVMHandler) ListVMStatus ¶
func (vmHandler *OpenStackVMHandler) ListVMStatus() ([]*irs.VMStatusInfo, error)
func (*OpenStackVMHandler) TerminateVM ¶
type OpenStackVMSpecHandler ¶
type OpenStackVMSpecHandler struct { Region idrv.RegionInfo Client *gophercloud.ServiceClient }
func (*OpenStackVMSpecHandler) GetOrgVMSpec ¶
func (vmSpecHandler *OpenStackVMSpecHandler) GetOrgVMSpec(Name string) (string, error)
func (*OpenStackVMSpecHandler) GetVMSpec ¶
func (vmSpecHandler *OpenStackVMSpecHandler) GetVMSpec(Name string) (irs.VMSpecInfo, error)
func (*OpenStackVMSpecHandler) ListOrgVMSpec ¶
func (vmSpecHandler *OpenStackVMSpecHandler) ListOrgVMSpec() (string, error)
func (*OpenStackVMSpecHandler) ListVMSpec ¶
func (vmSpecHandler *OpenStackVMSpecHandler) ListVMSpec() ([]*irs.VMSpecInfo, error)
type OpenStackVPCHandler ¶ added in v0.1.3
type OpenStackVPCHandler struct { CredentialInfo idrv.CredentialInfo IdentityClient *gophercloud.ServiceClient ComputeClient *gophercloud.ServiceClient NetworkClient *gophercloud.ServiceClient NLBClient *gophercloud.ServiceClient }
func (*OpenStackVPCHandler) AddInterface ¶ added in v0.1.3
func (vpcHandler *OpenStackVPCHandler) AddInterface(subnetId string, routerId string) (bool, error)
func (*OpenStackVPCHandler) AddSubnet ¶ added in v0.2.1
func (vpcHandler *OpenStackVPCHandler) AddSubnet(vpcIID irs.IID, subnetInfo irs.SubnetInfo) (irs.VPCInfo, error)
func (*OpenStackVPCHandler) CreateRouter ¶ added in v0.1.3
func (vpcHandler *OpenStackVPCHandler) CreateRouter(vpcName string) (*string, error)
func (*OpenStackVPCHandler) CreateSubnet ¶ added in v0.1.3
func (vpcHandler *OpenStackVPCHandler) CreateSubnet(vpcId string, reqSubnetInfo irs.SubnetInfo) (irs.SubnetInfo, error)
func (*OpenStackVPCHandler) CreateVPC ¶ added in v0.1.3
func (vpcHandler *OpenStackVPCHandler) CreateVPC(vpcReqInfo irs.VPCReqInfo) (createdVPC irs.VPCInfo, createErr error)
func (*OpenStackVPCHandler) DeleteInterface ¶ added in v0.1.3
func (vpcHandler *OpenStackVPCHandler) DeleteInterface(subnetId string, routerId string) (bool, error)
func (*OpenStackVPCHandler) DeleteRouter ¶ added in v0.1.3
func (vpcHandler *OpenStackVPCHandler) DeleteRouter(vpcName string) (bool, error)
func (*OpenStackVPCHandler) DeleteSubnet ¶ added in v0.1.3
func (vpcHandler *OpenStackVPCHandler) DeleteSubnet(subnetIId irs.IID) (bool, error)
func (*OpenStackVPCHandler) DeleteVPC ¶ added in v0.1.3
func (vpcHandler *OpenStackVPCHandler) DeleteVPC(vpcIID irs.IID) (bool, error)
func (*OpenStackVPCHandler) GetRouter ¶ added in v0.1.3
func (vpcHandler *OpenStackVPCHandler) GetRouter(vpcName string) (*string, error)
func (*OpenStackVPCHandler) GetSubnet ¶ added in v0.1.3
func (vpcHandler *OpenStackVPCHandler) GetSubnet(subnetIId irs.IID) (irs.SubnetInfo, error)
func (*OpenStackVPCHandler) ListVPC ¶ added in v0.1.3
func (vpcHandler *OpenStackVPCHandler) ListVPC() ([]*irs.VPCInfo, error)
func (*OpenStackVPCHandler) RemoveSubnet ¶ added in v0.2.1
type OpenstackDiskHandler ¶ added in v0.6.7
type OpenstackDiskHandler struct { CredentialInfo idrv.CredentialInfo Region idrv.RegionInfo ComputeClient *gophercloud.ServiceClient VolumeClient *gophercloud.ServiceClient }
func (*OpenstackDiskHandler) AttachDisk ¶ added in v0.6.7
func (*OpenstackDiskHandler) ChangeDiskSize ¶ added in v0.6.7
func (*OpenstackDiskHandler) CheckDiskHandler ¶ added in v0.6.9
func (diskHandler *OpenstackDiskHandler) CheckDiskHandler() error
func (*OpenstackDiskHandler) CreateDisk ¶ added in v0.6.7
func (*OpenstackDiskHandler) DeleteDisk ¶ added in v0.6.7
func (diskHandler *OpenstackDiskHandler) DeleteDisk(diskIID irs.IID) (bool, error)
func (*OpenstackDiskHandler) DetachDisk ¶ added in v0.6.7
Click to show internal directories.
Click to hide internal directories.