Documentation ¶
Index ¶
- Constants
- func CreateSubnetCIDR(subnetList []*irs.VNetworkInfo) (*string, error)
- func GetCBVNetId(client *gophercloud.ServiceClient) (string, error)
- func GetFlavor(client *gophercloud.ServiceClient, flavorName string) (*string, error)
- type InterfaceInfo
- type InterfaceReqInfo
- type OpenStackImageHandler
- func (imageHandler *OpenStackImageHandler) CreateImage(imageReqInfo irs.ImageReqInfo) (irs.ImageInfo, error)
- func (imageHandler *OpenStackImageHandler) DeleteImage(imageID string) (bool, error)
- func (imageHandler *OpenStackImageHandler) GetImage(imageNameId string) (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(keyName string) (bool, error)
- func (keyPairHandler *OpenStackKeyPairHandler) GetKey(keyName string) (irs.KeyPairInfo, error)
- func (keyPairHandler *OpenStackKeyPairHandler) ListKey() ([]*irs.KeyPairInfo, error)
- type OpenStackPublicIPHandler
- func (publicIPHandler *OpenStackPublicIPHandler) CreatePublicIP(publicIPReqInfo irs.PublicIPReqInfo) (irs.PublicIPInfo, error)
- func (publicIPHandler *OpenStackPublicIPHandler) DeletePublicIP(publicIPID string) (bool, error)
- func (publicIPHandler *OpenStackPublicIPHandler) GetPublicIP(publicIPID string) (irs.PublicIPInfo, error)
- func (publicIPHandler *OpenStackPublicIPHandler) ListPublicIP() ([]*irs.PublicIPInfo, error)
- type OpenStackRouterHandler
- func (routerHandler *OpenStackRouterHandler) AddInterface(interfaceReqInfo InterfaceReqInfo) (InterfaceInfo, error)
- func (routerHandler *OpenStackRouterHandler) CreateRouter(routerReqInfo RouterReqInfo) (RouterInfo, error)
- func (routerHandler *OpenStackRouterHandler) DeleteInterface(routerID string, subnetID string) (bool, error)
- func (routerHandler *OpenStackRouterHandler) DeleteRouter(routerID string) (bool, error)
- func (routerHandler *OpenStackRouterHandler) GetRouter(routerID string) (RouterInfo, error)
- func (routerHandler *OpenStackRouterHandler) ListRouter() ([]*RouterInfo, error)
- type OpenStackSecurityHandler
- func (securityHandler *OpenStackSecurityHandler) CreateSecurity(securityReqInfo irs.SecurityReqInfo) (irs.SecurityInfo, error)
- func (securityHandler *OpenStackSecurityHandler) DeleteSecurity(securityNameId string) (bool, error)
- func (securityHandler *OpenStackSecurityHandler) GetSecurity(securityNameId string) (irs.SecurityInfo, error)
- func (securityHandler *OpenStackSecurityHandler) ListSecurity() ([]*irs.SecurityInfo, error)
- type OpenStackVMHandler
- func (vmHandler *OpenStackVMHandler) AssociatePublicIP(serverID string) (bool, error)
- func (vmHandler *OpenStackVMHandler) GetVM(vmNameID string) (irs.VMInfo, error)
- func (vmHandler *OpenStackVMHandler) GetVMStatus(vmNameID string) (irs.VMStatus, error)
- func (vmHandler *OpenStackVMHandler) ListVM() ([]*irs.VMInfo, error)
- func (vmHandler *OpenStackVMHandler) ListVMStatus() ([]*irs.VMStatusInfo, error)
- func (vmHandler *OpenStackVMHandler) RebootVM(vmNameID string) (irs.VMStatus, error)
- func (vmHandler *OpenStackVMHandler) ResumeVM(vmNameID string) (irs.VMStatus, error)
- func (vmHandler *OpenStackVMHandler) StartVM(vmReqInfo irs.VMReqInfo) (irs.VMInfo, error)
- func (vmHandler *OpenStackVMHandler) SuspendVM(vmNameID string) (irs.VMStatus, error)
- func (vmHandler *OpenStackVMHandler) TerminateVM(vmNameID string) (irs.VMStatus, error)
- type OpenStackVMSpecHandler
- func (vmSpecHandler *OpenStackVMSpecHandler) GetOrgVMSpec(Region string, Name string) (string, error)
- func (vmSpecHandler *OpenStackVMSpecHandler) GetVMSpec(Region string, Name string) (irs.VMSpecInfo, error)
- func (vmSpecHandler *OpenStackVMSpecHandler) ListOrgVMSpec(Region string) (string, error)
- func (vmSpecHandler *OpenStackVMSpecHandler) ListVMSpec(Region string) ([]*irs.VMSpecInfo, error)
- type OpenStackVNetworkHandler
- func (vNetworkHandler *OpenStackVNetworkHandler) AddInterface(subnetId string, routerId string) (bool, error)
- func (vNetworkHandler *OpenStackVNetworkHandler) CreateRouter(subnetName string) (*string, error)
- func (vNetworkHandler *OpenStackVNetworkHandler) CreateVNetwork(vNetworkReqInfo irs.VNetworkReqInfo) (irs.VNetworkInfo, error)
- func (vNetworkHandler *OpenStackVNetworkHandler) DeleteInterface(subnetID string, routerID string) (bool, error)
- func (vNetworkHandler *OpenStackVNetworkHandler) DeleteRouter(subnetName string) (bool, error)
- func (vNetworkHandler *OpenStackVNetworkHandler) DeleteVNetwork(vNetworkNameId string) (bool, error)
- func (vNetworkHandler *OpenStackVNetworkHandler) GetRouterID() (*string, error)
- func (vNetworkHandler *OpenStackVNetworkHandler) GetVNetwork(vNetworkNameId string) (irs.VNetworkInfo, error)
- func (vNetworkHandler *OpenStackVNetworkHandler) ListVNetwork() ([]*irs.VNetworkInfo, error)
- type OpenStackVNicworkHandler
- func (vNicHandler *OpenStackVNicworkHandler) CreateVNic(vNicReqInfo irs.VNicReqInfo) (irs.VNicInfo, error)
- func (vNicHandler *OpenStackVNicworkHandler) DeleteVNic(vNicID string) (bool, error)
- func (vNicHandler *OpenStackVNicworkHandler) GetVNic(vNicID string) (irs.VNicInfo, error)
- func (vNicHandler *OpenStackVNicworkHandler) ListVNic() ([]*irs.VNicInfo, error)
- type RouteInfo
- type RouterInfo
- type RouterReqInfo
Constants ¶
View Source
const ( CBPublicIPPool = "ext" CBGateWayId = "8c1af031-aad6-4762-ac83-52e09dd82571" CBVirutalNetworkName = "CB-VNet" CBVnetDefaultCidr = "130.0.0.0/16" //CBVMUser = "cb-user" DNSNameservers = "8.8.8.8" )
Variables ¶
This section is empty.
Functions ¶
func CreateSubnetCIDR ¶
func CreateSubnetCIDR(subnetList []*irs.VNetworkInfo) (*string, error)
서브넷 CIDR 생성 (CIDR C class 기준 생성)
func GetCBVNetId ¶
func GetCBVNetId(client *gophercloud.ServiceClient) (string, error)
기본 가상 네트워크(CB-VNet) Id 정보 조회
func GetFlavor ¶
func GetFlavor(client *gophercloud.ServiceClient, flavorName string) (*string, error)
Types ¶
type InterfaceInfo ¶
@TODO: Interface 리소스 프로퍼티 정의 필요
type InterfaceReqInfo ¶
@TODO: Interface 생성 요청 파라미터 정의 필요
type OpenStackImageHandler ¶
type OpenStackImageHandler struct { Client *gophercloud.ServiceClient ImageClient *gophercloud.ServiceClient }
func (*OpenStackImageHandler) CreateImage ¶
func (imageHandler *OpenStackImageHandler) CreateImage(imageReqInfo irs.ImageReqInfo) (irs.ImageInfo, error)
func (*OpenStackImageHandler) DeleteImage ¶
func (imageHandler *OpenStackImageHandler) DeleteImage(imageID string) (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(keyName string) (bool, error)
func (*OpenStackKeyPairHandler) GetKey ¶
func (keyPairHandler *OpenStackKeyPairHandler) GetKey(keyName string) (irs.KeyPairInfo, error)
func (*OpenStackKeyPairHandler) ListKey ¶
func (keyPairHandler *OpenStackKeyPairHandler) ListKey() ([]*irs.KeyPairInfo, error)
type OpenStackPublicIPHandler ¶
type OpenStackPublicIPHandler struct {
Client *gophercloud.ServiceClient
}
func (*OpenStackPublicIPHandler) CreatePublicIP ¶
func (publicIPHandler *OpenStackPublicIPHandler) CreatePublicIP(publicIPReqInfo irs.PublicIPReqInfo) (irs.PublicIPInfo, error)
func (*OpenStackPublicIPHandler) DeletePublicIP ¶
func (publicIPHandler *OpenStackPublicIPHandler) DeletePublicIP(publicIPID string) (bool, error)
func (*OpenStackPublicIPHandler) GetPublicIP ¶
func (publicIPHandler *OpenStackPublicIPHandler) GetPublicIP(publicIPID string) (irs.PublicIPInfo, error)
func (*OpenStackPublicIPHandler) ListPublicIP ¶
func (publicIPHandler *OpenStackPublicIPHandler) ListPublicIP() ([]*irs.PublicIPInfo, error)
type OpenStackRouterHandler ¶
type OpenStackRouterHandler struct {
Client *gophercloud.ServiceClient
}
func (*OpenStackRouterHandler) AddInterface ¶
func (routerHandler *OpenStackRouterHandler) AddInterface(interfaceReqInfo InterfaceReqInfo) (InterfaceInfo, error)
func (*OpenStackRouterHandler) CreateRouter ¶
func (routerHandler *OpenStackRouterHandler) CreateRouter(routerReqInfo RouterReqInfo) (RouterInfo, error)
func (*OpenStackRouterHandler) DeleteInterface ¶
func (routerHandler *OpenStackRouterHandler) DeleteInterface(routerID string, subnetID string) (bool, error)
func (*OpenStackRouterHandler) DeleteRouter ¶
func (routerHandler *OpenStackRouterHandler) DeleteRouter(routerID string) (bool, error)
func (*OpenStackRouterHandler) GetRouter ¶
func (routerHandler *OpenStackRouterHandler) GetRouter(routerID string) (RouterInfo, error)
func (*OpenStackRouterHandler) ListRouter ¶
func (routerHandler *OpenStackRouterHandler) ListRouter() ([]*RouterInfo, error)
type OpenStackSecurityHandler ¶
type OpenStackSecurityHandler struct { Client *gophercloud.ServiceClient NetworkClient *gophercloud.ServiceClient }
func (*OpenStackSecurityHandler) CreateSecurity ¶
func (securityHandler *OpenStackSecurityHandler) CreateSecurity(securityReqInfo irs.SecurityReqInfo) (irs.SecurityInfo, error)
func (*OpenStackSecurityHandler) DeleteSecurity ¶
func (securityHandler *OpenStackSecurityHandler) DeleteSecurity(securityNameId string) (bool, error)
func (*OpenStackSecurityHandler) GetSecurity ¶
func (securityHandler *OpenStackSecurityHandler) GetSecurity(securityNameId string) (irs.SecurityInfo, error)
func (*OpenStackSecurityHandler) ListSecurity ¶
func (securityHandler *OpenStackSecurityHandler) ListSecurity() ([]*irs.SecurityInfo, error)
type OpenStackVMHandler ¶
type OpenStackVMHandler struct { Client *gophercloud.ServiceClient NetworkClient *gophercloud.ServiceClient }
func (*OpenStackVMHandler) AssociatePublicIP ¶
func (vmHandler *OpenStackVMHandler) AssociatePublicIP(serverID string) (bool, error)
func (*OpenStackVMHandler) GetVM ¶
func (vmHandler *OpenStackVMHandler) GetVM(vmNameID string) (irs.VMInfo, error)
func (*OpenStackVMHandler) GetVMStatus ¶
func (vmHandler *OpenStackVMHandler) GetVMStatus(vmNameID string) (irs.VMStatus, error)
func (*OpenStackVMHandler) ListVM ¶
func (vmHandler *OpenStackVMHandler) ListVM() ([]*irs.VMInfo, error)
func (*OpenStackVMHandler) ListVMStatus ¶
func (vmHandler *OpenStackVMHandler) ListVMStatus() ([]*irs.VMStatusInfo, error)
func (*OpenStackVMHandler) RebootVM ¶
func (vmHandler *OpenStackVMHandler) RebootVM(vmNameID string) (irs.VMStatus, error)
func (*OpenStackVMHandler) ResumeVM ¶
func (vmHandler *OpenStackVMHandler) ResumeVM(vmNameID string) (irs.VMStatus, error)
func (*OpenStackVMHandler) SuspendVM ¶
func (vmHandler *OpenStackVMHandler) SuspendVM(vmNameID string) (irs.VMStatus, error)
func (*OpenStackVMHandler) TerminateVM ¶
func (vmHandler *OpenStackVMHandler) TerminateVM(vmNameID string) (irs.VMStatus, error)
type OpenStackVMSpecHandler ¶
type OpenStackVMSpecHandler struct {
Client *gophercloud.ServiceClient
}
func (*OpenStackVMSpecHandler) GetOrgVMSpec ¶
func (vmSpecHandler *OpenStackVMSpecHandler) GetOrgVMSpec(Region string, Name string) (string, error)
func (*OpenStackVMSpecHandler) GetVMSpec ¶
func (vmSpecHandler *OpenStackVMSpecHandler) GetVMSpec(Region string, Name string) (irs.VMSpecInfo, error)
func (*OpenStackVMSpecHandler) ListOrgVMSpec ¶
func (vmSpecHandler *OpenStackVMSpecHandler) ListOrgVMSpec(Region string) (string, error)
func (*OpenStackVMSpecHandler) ListVMSpec ¶
func (vmSpecHandler *OpenStackVMSpecHandler) ListVMSpec(Region string) ([]*irs.VMSpecInfo, error)
type OpenStackVNetworkHandler ¶
type OpenStackVNetworkHandler struct {
Client *gophercloud.ServiceClient
}
func (*OpenStackVNetworkHandler) AddInterface ¶
func (vNetworkHandler *OpenStackVNetworkHandler) AddInterface(subnetId string, routerId string) (bool, error)
func (*OpenStackVNetworkHandler) CreateRouter ¶
func (vNetworkHandler *OpenStackVNetworkHandler) CreateRouter(subnetName string) (*string, error)
func (*OpenStackVNetworkHandler) CreateVNetwork ¶
func (vNetworkHandler *OpenStackVNetworkHandler) CreateVNetwork(vNetworkReqInfo irs.VNetworkReqInfo) (irs.VNetworkInfo, error)
func (*OpenStackVNetworkHandler) DeleteInterface ¶
func (vNetworkHandler *OpenStackVNetworkHandler) DeleteInterface(subnetID string, routerID string) (bool, error)
func (*OpenStackVNetworkHandler) DeleteRouter ¶
func (vNetworkHandler *OpenStackVNetworkHandler) DeleteRouter(subnetName string) (bool, error)
func (*OpenStackVNetworkHandler) DeleteVNetwork ¶
func (vNetworkHandler *OpenStackVNetworkHandler) DeleteVNetwork(vNetworkNameId string) (bool, error)
func (*OpenStackVNetworkHandler) GetRouterID ¶
func (vNetworkHandler *OpenStackVNetworkHandler) GetRouterID() (*string, error)
Router 이름 기준 ID 정보 조회
func (*OpenStackVNetworkHandler) GetVNetwork ¶
func (vNetworkHandler *OpenStackVNetworkHandler) GetVNetwork(vNetworkNameId string) (irs.VNetworkInfo, error)
func (*OpenStackVNetworkHandler) ListVNetwork ¶
func (vNetworkHandler *OpenStackVNetworkHandler) ListVNetwork() ([]*irs.VNetworkInfo, error)
type OpenStackVNicworkHandler ¶
type OpenStackVNicworkHandler struct {
Client *gophercloud.ServiceClient
}
func (*OpenStackVNicworkHandler) CreateVNic ¶
func (vNicHandler *OpenStackVNicworkHandler) CreateVNic(vNicReqInfo irs.VNicReqInfo) (irs.VNicInfo, error)
func (*OpenStackVNicworkHandler) DeleteVNic ¶
func (vNicHandler *OpenStackVNicworkHandler) DeleteVNic(vNicID string) (bool, error)
type RouterInfo ¶
type RouterReqInfo ¶
@TODO: Router 생성 요청 파라미터 정의 필요
Click to show internal directories.
Click to hide internal directories.