Documentation ¶
Index ¶
- Constants
- func GetCBVNetId(client *gophercloud.ServiceClient) (string, error)
- func GetFlavor(client *gophercloud.ServiceClient, flavorName string) (*string, 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 GetSecurityByName(networkClient *gophercloud.ServiceClient, securityName string) (*secgroups.SecurityGroup, error)
- func GetSubnetByID(networkClient *gophercloud.ServiceClient, subnetId string) (*subnets.Subnet, error)
- type InterfaceInfo
- type InterfaceReqInfo
- type OpenStackImageHandler
- 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 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(securityIID irs.IID) (bool, error)
- func (securityHandler *OpenStackSecurityHandler) GetSecurity(securityIID irs.IID) (irs.SecurityInfo, error)
- func (securityHandler *OpenStackSecurityHandler) ListSecurity() ([]*irs.SecurityInfo, 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) (irs.VMInfo, 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(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 OpenStackVPCHandler
- func (vpcHandler *OpenStackVPCHandler) AddInterface(subnetId string, routerId string) (bool, 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) (irs.VPCInfo, 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)
- type RouteInfo
- type RouterInfo
- type RouterReqInfo
Constants ¶
View Source
const ( CBVirutalNetworkName = "CB-VNet" DNSNameservers = "8.8.8.8" )
View Source
const ( Inbound = "inbound" Outbound = "outbound" ICMP = "icmp" )
Variables ¶
This section is empty.
Functions ¶
func GetCBVNetId ¶
func GetCBVNetId(client *gophercloud.ServiceClient) (string, error)
기본 가상 네트워크(CB-VNet) Id 정보 조회
func GetFlavor ¶
func GetFlavor(client *gophercloud.ServiceClient, flavorName string) (*string, 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 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)
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(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 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(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)
type OpenStackVMHandler ¶
type OpenStackVMHandler struct { Region idrv.RegionInfo Client *gophercloud.ServiceClient NetworkClient *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 {
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 OpenStackVPCHandler ¶ added in v0.1.3
type OpenStackVPCHandler struct {
Client *gophercloud.ServiceClient
}
func (*OpenStackVPCHandler) AddInterface ¶ added in v0.1.3
func (vpcHandler *OpenStackVPCHandler) AddInterface(subnetId string, routerId string) (bool, 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) (irs.VPCInfo, 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)
type RouterInfo ¶
type RouterReqInfo ¶
@TODO: Router 생성 요청 파라미터 정의 필요
Click to show internal directories.
Click to hide internal directories.