Documentation
¶
Index ¶
- Constants
- func ChangeNodeGroupAutoScaler(host string, token string, cluster_id_or_name string, ...) (string, error)
- func CheckExistKey(client *nhnsdk.ServiceClient, keyIID irs.IID) (bool, error)
- func CheckFolderAndCreate(folderPath string) error
- func CheckIIDValidation(IId irs.IID) bool
- func ConvertDiskStatus(diskStatus string) irs.DiskStatus
- func ConvertImageStatus(myImageStatus images.ImageStatus) irs.MyImageStatus
- func ConvertJsonString(v interface{}) (string, error)
- func ConvertTimeToKTC(givenTime time.Time) (time.Time, error)
- func CreateCluster(host string, token string, payload string) (string, error)
- func CreateNodeGroup(host string, token string, cluster_id_or_name string, payload string) (string, error)
- func DeleteCluster(host string, token string, cluster_id_or_name string) (string, error)
- func DeleteNodeGroup(host string, token string, cluster_id_or_name string, ...) (string, error)
- func GetCallLogScheme(zone string, resourceType call.RES_TYPE, resourceName string, apiName string) call.CLOUDLOGSCHEMA
- func GetCluster(host string, token string, cluster_id_or_name string) (string, error)
- func GetClusters(host string, token string) (string, error)
- func GetListenerProtocol(protocol string) (listeners.Protocol, error)
- func GetNetworkWithName(networkClient *nhnsdk.ServiceClient, networkName string) (*networks.Network, error)
- func GetNodeGroup(host string, token string, cluster_id_or_name string, ...) (string, error)
- func GetNodeGroups(host string, token string, cluster_id_or_name string) (string, error)
- func GetOriginalNameId(IID2NameId string) string
- func GetPoolProtocol(protocol string) (pools.Protocol, error)
- func GetPortWithDeviceId(networkClient *nhnsdk.ServiceClient, deviceID string) (*ports.Port, error)
- func GetPublicVPCInfo(client *nhnsdk.ServiceClient, typeName string) (string, error)
- func GetRawKey(client *nhnsdk.ServiceClient, keyIID irs.IID) (keypairs.KeyPair, error)
- func GetSGWithName(networkClient *nhnsdk.ServiceClient, securityGroupName string) (*secgroups.SecurityGroup, error)
- func GetSubnetWithId(networkClient *nhnsdk.ServiceClient, subnetId string) (*subnets.Subnet, error)
- func GetToken(host string, tenant_id string, username string, password string) (string, error)
- func GetVMSpecIdWithName(client *nhnsdk.ServiceClient, flavorName string) (string, error)
- func InitLog()
- func LoggingError(hiscallInfo call.CLOUDLOGSCHEMA, err error)
- func LoggingInfo(hiscallInfo call.CLOUDLOGSCHEMA, start time.Time)
- func MappingKeypairInfo(keypair keypairs.KeyPair) *irs.KeyPairInfo
- func ResizeCluster(host string, token string, cluster_id_or_name string, payload string) (string, error)
- func Reverse(s string) (result string)
- func RunCommand(cmdName string, cmdArgs []string) (string, error)
- func UpgradeCluster(host string, token string, cluster_id_or_name string, ...) (string, error)
- type NetworkWithExt
- type NhnCloudClusterHandler
- func (clusterHandler *NhnCloudClusterHandler) AddNodeGroup(clusterIID irs.IID, nodeGroupReqInfo irs.NodeGroupInfo) (irs.NodeGroupInfo, error)
- func (clusterHandler *NhnCloudClusterHandler) ChangeNodeGroupScaling(clusterIID irs.IID, nodeGroupIID irs.IID, desiredNodeSize int, minNodeSize int, ...) (irs.NodeGroupInfo, error)
- func (clusterHandler *NhnCloudClusterHandler) CreateCluster(clusterReqInfo irs.ClusterInfo) (irs.ClusterInfo, error)
- func (clusterHandler *NhnCloudClusterHandler) DeleteCluster(clusterIID irs.IID) (bool, error)
- func (clusterHandler *NhnCloudClusterHandler) GetCluster(clusterIID irs.IID) (irs.ClusterInfo, error)
- func (clusterHandler *NhnCloudClusterHandler) GetNodeGroup(clusterIID irs.IID, nodeGroupIID irs.IID) (irs.NodeGroupInfo, error)
- func (clusterHandler *NhnCloudClusterHandler) ListCluster() ([]*irs.ClusterInfo, error)
- func (clusterHandler *NhnCloudClusterHandler) ListNodeGroup(clusterIID irs.IID) ([]*irs.NodeGroupInfo, error)
- func (clusterHandler *NhnCloudClusterHandler) RemoveNodeGroup(clusterIID irs.IID, nodeGroupIID irs.IID) (bool, error)
- func (clusterHandler *NhnCloudClusterHandler) SetNodeGroupAutoScaling(clusterIID irs.IID, nodeGroupIID irs.IID, on bool) (bool, error)
- func (clusterHandler *NhnCloudClusterHandler) UpgradeCluster(clusterIID irs.IID, newVersion string) (irs.ClusterInfo, error)
- type NhnCloudDiskHandler
- func (diskHandler *NhnCloudDiskHandler) AttachDisk(diskIID irs.IID, vmIID irs.IID) (irs.DiskInfo, error)
- func (diskHandler *NhnCloudDiskHandler) ChangeDiskSize(diskIID irs.IID, newDiskSize string) (bool, error)
- func (diskHandler *NhnCloudDiskHandler) CreateDisk(diskReqInfo irs.DiskInfo) (irs.DiskInfo, error)
- func (diskHandler *NhnCloudDiskHandler) DeleteDisk(diskIID irs.IID) (bool, error)
- func (diskHandler *NhnCloudDiskHandler) DetachDisk(diskIID irs.IID, vmIID irs.IID) (bool, error)
- func (diskHandler *NhnCloudDiskHandler) GetDisk(diskIID irs.IID) (irs.DiskInfo, error)
- func (diskHandler *NhnCloudDiskHandler) GetDiskStatus(diskIID irs.IID) (irs.DiskStatus, error)
- func (diskHandler *NhnCloudDiskHandler) IsBootableDisk(diskIID irs.IID) (bool, error)
- func (diskHandler *NhnCloudDiskHandler) ListDisk() ([]*irs.DiskInfo, error)
- func (diskHandler *NhnCloudDiskHandler) MappingDiskInfo(volume volumes.Volume) (irs.DiskInfo, error)
- func (diskHandler *NhnCloudDiskHandler) WaitForDiskAttachment(diskIID irs.IID) (irs.DiskStatus, error)
- func (diskHandler *NhnCloudDiskHandler) WaitForDiskCreation(diskIID irs.IID) (irs.DiskStatus, error)
- type NhnCloudImageHandler
- func (imageHandler *NhnCloudImageHandler) CheckWindowsImage(imageIID irs.IID) (bool, error)
- func (imageHandler *NhnCloudImageHandler) CreateImage(imageReqInfo irs.ImageReqInfo) (irs.ImageInfo, error)
- func (imageHandler *NhnCloudImageHandler) DeleteImage(imageIID irs.IID) (bool, error)
- func (imageHandler *NhnCloudImageHandler) GetImage(imageIID irs.IID) (irs.ImageInfo, error)
- func (imageHandler *NhnCloudImageHandler) ListImage() ([]*irs.ImageInfo, error)
- func (imageHandler *NhnCloudImageHandler) MappingImageInfo(image images.Image) *irs.ImageInfo
- type NhnCloudKeyPairHandler
- func (keyPairHandler *NhnCloudKeyPairHandler) CreateKey(keyPairReqInfo irs.KeyPairReqInfo) (irs.KeyPairInfo, error)
- func (keyPairHandler *NhnCloudKeyPairHandler) DeleteKey(keyIID irs.IID) (bool, error)
- func (keyPairHandler *NhnCloudKeyPairHandler) GetKey(keyIID irs.IID) (irs.KeyPairInfo, error)
- func (keyPairHandler *NhnCloudKeyPairHandler) ListKey() ([]*irs.KeyPairInfo, error)
- type NhnCloudMyImageHandler
- func (myImageHandler *NhnCloudMyImageHandler) CheckWindowsImage(myImageIID irs.IID) (bool, error)
- func (myImageHandler *NhnCloudMyImageHandler) DeleteMyImage(myImageIID irs.IID) (bool, error)
- func (myImageHandler *NhnCloudMyImageHandler) GetBootableVolumeID(vmIID irs.IID) (string, error)
- func (myImageHandler *NhnCloudMyImageHandler) GetImageStatus(myImageIID irs.IID) (irs.MyImageStatus, error)
- func (myImageHandler *NhnCloudMyImageHandler) GetMyImage(myImageIID irs.IID) (irs.MyImageInfo, error)
- func (myImageHandler *NhnCloudMyImageHandler) GetVMSpecType(vmIID irs.IID) (string, error)
- func (myImageHandler *NhnCloudMyImageHandler) ListMyImage() ([]*irs.MyImageInfo, error)
- func (myImageHandler *NhnCloudMyImageHandler) MappingMyImageInfo(myImage images.Image) *irs.MyImageInfo
- func (myImageHandler *NhnCloudMyImageHandler) SnapshotVM(snapshotReqInfo irs.MyImageInfo) (irs.MyImageInfo, error)
- func (myImageHandler *NhnCloudMyImageHandler) WaitForImageSnapshot(myImageIID irs.IID) (irs.MyImageStatus, error)
- type NhnCloudNLBHandler
- func (nlbHandler *NhnCloudNLBHandler) AddVMs(nlbIID irs.IID, vmIIDs *[]irs.IID) (irs.VMGroupInfo, error)
- func (nlbHandler *NhnCloudNLBHandler) ChangeHealthCheckerInfo(nlbIID irs.IID, healthChecker irs.HealthCheckerInfo) (irs.HealthCheckerInfo, error)
- func (nlbHandler *NhnCloudNLBHandler) ChangeListener(nlbIID irs.IID, listener irs.ListenerInfo) (irs.ListenerInfo, error)
- func (nlbHandler *NhnCloudNLBHandler) ChangeVMGroupInfo(nlbIID irs.IID, vmGroup irs.VMGroupInfo) (irs.VMGroupInfo, error)
- func (nlbHandler *NhnCloudNLBHandler) CleanUpNLB(nlbIID irs.IID) (bool, error)
- func (nlbHandler *NhnCloudNLBHandler) CreateHealthMonitor(poolId string, nlbReqInfo irs.NLBInfo) (monitors.Monitor, error)
- func (nlbHandler *NhnCloudNLBHandler) CreateListener(nlbId string, nlbReqInfo irs.NLBInfo) (listeners.Listener, error)
- func (nlbHandler *NhnCloudNLBHandler) CreateNLB(nlbReqInfo irs.NLBInfo) (irs.NLBInfo, error)
- func (nlbHandler *NhnCloudNLBHandler) CreatePool(listenerId string, nlbReqInfo irs.NLBInfo) (*pools.Pool, error)
- func (nlbHandler *NhnCloudNLBHandler) CreatePublicIP(nlbVipPortId string) (string, error)
- func (nlbHandler *NhnCloudNLBHandler) CreateVMMembers(poolId string, vmGroupInfo irs.VMGroupInfo) ([]pools.Member, error)
- func (nlbHandler *NhnCloudNLBHandler) DeleteNLB(nlbIID irs.IID) (bool, error)
- func (nlbHandler *NhnCloudNLBHandler) DeletePublicIP(nlbIID irs.IID) (bool, error)
- func (nlbHandler *NhnCloudNLBHandler) DeleteVMMember(poolId string, vmIID irs.IID) (bool, error)
- func (nlbHandler *NhnCloudNLBHandler) GetFirstSubnetIdWithVPCName(vpcName string) (subnetId string, err error)
- func (nlbHandler *NhnCloudNLBHandler) GetHealthMonitorInfo(healthMonitorId string) (irs.HealthCheckerInfo, error)
- func (nlbHandler *NhnCloudNLBHandler) GetHealthMonitorInfoWithListenerId(listenerId string) (irs.HealthCheckerInfo, error)
- func (nlbHandler *NhnCloudNLBHandler) GetHealthMonitorListWithPoolId(poolId string) ([]irs.HealthCheckerInfo, error)
- func (nlbHandler *NhnCloudNLBHandler) GetListenerInfo(listenerId string) (irs.ListenerInfo, error)
- func (nlbHandler *NhnCloudNLBHandler) GetNLB(nlbIID irs.IID) (irs.NLBInfo, error)
- func (nlbHandler *NhnCloudNLBHandler) GetNetInfoWithVMName(vmName string) (string, string, error)
- func (nlbHandler *NhnCloudNLBHandler) GetNhnPoolListWithListenerId(listenerId string) ([]pools.Pool, error)
- func (nlbHandler *NhnCloudNLBHandler) GetNhnVMMember(poolId string, memberId string) (*pools.Member, error)
- func (nlbHandler *NhnCloudNLBHandler) GetNhnVMMembersWithPoolId(poolId string) (*[]pools.Member, error)
- func (nlbHandler *NhnCloudNLBHandler) GetNhnVMWithPrivateIp(privateIp string) (*servers.Server, error)
- func (nlbHandler *NhnCloudNLBHandler) GetNlbPrivateIp(nlbIID irs.IID) (string, error)
- func (nlbHandler *NhnCloudNLBHandler) GetNlbProvisioningStatus(nlbIID irs.IID) (string, error)
- func (nlbHandler *NhnCloudNLBHandler) GetNlbPublicIP(nlbIID irs.IID) (string, error)
- func (nlbHandler *NhnCloudNLBHandler) GetNlbVipPortId(nlbIID irs.IID) (string, error)
- func (nlbHandler *NhnCloudNLBHandler) GetVMGroupHealthInfo(nlbIID irs.IID) (irs.HealthInfo, error)
- func (nlbHandler *NhnCloudNLBHandler) GetVMGroupInfo(nlb loadbalancers.LoadBalancer) (irs.VMGroupInfo, error)
- func (nlbHandler *NhnCloudNLBHandler) GetVMMemberOperatingStatus(poolId string, vmMemberId string) (string, error)
- func (nlbHandler *NhnCloudNLBHandler) GetVPCIdWithSubnetId(subnetId string) (string, error)
- func (nlbHandler *NhnCloudNLBHandler) ListNLB() ([]*irs.NLBInfo, error)
- func (nlbHandler *NhnCloudNLBHandler) MappingListenerInfo(nhnListener listeners.Listener) (irs.ListenerInfo, error)
- func (nlbHandler *NhnCloudNLBHandler) MappingMonitorInfo(nhnMonitor monitors.Monitor) irs.HealthCheckerInfo
- func (nlbHandler *NhnCloudNLBHandler) MappingNlbInfo(nhnNLB loadbalancers.LoadBalancer) (irs.NLBInfo, error)
- func (nlbHandler *NhnCloudNLBHandler) RemoveVMs(nlbIID irs.IID, vmIIDs *[]irs.IID) (bool, error)
- func (nlbHandler *NhnCloudNLBHandler) WaitToGetNLBInfo(nlbIID irs.IID) (bool, error)
- type NhnCloudRegionZoneHandler
- func (regionZoneHandler NhnCloudRegionZoneHandler) GetRegionZone(regionCode string) (irs.RegionZoneInfo, error)
- func (regionZoneHandler *NhnCloudRegionZoneHandler) ListOrgRegion() (string, error)
- func (regionZoneHandler *NhnCloudRegionZoneHandler) ListOrgZone() (string, error)
- func (regionZoneHandler *NhnCloudRegionZoneHandler) ListRegionZone() ([]*irs.RegionZoneInfo, error)
- type NhnCloudSecurityHandler
- func (securityHandler *NhnCloudSecurityHandler) AddRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (irs.SecurityInfo, error)
- func (securityHandler *NhnCloudSecurityHandler) CreateSecurity(securityReqInfo irs.SecurityReqInfo) (irs.SecurityInfo, error)
- func (securityHandler *NhnCloudSecurityHandler) DeleteSecurity(securityIID irs.IID) (bool, error)
- func (securityHandler *NhnCloudSecurityHandler) GetDefaultVPCSystemID() (string, error)
- func (securityHandler *NhnCloudSecurityHandler) GetRuleIdFromRuleInfo(sgIID irs.IID, givenRule irs.SecurityRuleInfo) (string, error)
- func (securityHandler *NhnCloudSecurityHandler) GetSecurity(securityIID irs.IID) (irs.SecurityInfo, error)
- func (securityHandler *NhnCloudSecurityHandler) ListSecurity() ([]*irs.SecurityInfo, error)
- func (securityHandler *NhnCloudSecurityHandler) MappingSecurityInfo(nhnSG secgroups.SecurityGroup, defaultVPCSystemId string) (*irs.SecurityInfo, error)
- func (securityHandler *NhnCloudSecurityHandler) OpenOutboundAllProtocol(sgIID irs.IID) error
- func (securityHandler *NhnCloudSecurityHandler) RemoveRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (bool, error)
- type NhnCloudVMHandler
- func (vmHandler *NhnCloudVMHandler) AssociatePublicIP(serverID string) (bool, error)
- func (vmHandler *NhnCloudVMHandler) GetOSPlatformWithImageID(imageId string) (irs.Platform, error)
- func (vmHandler *NhnCloudVMHandler) GetVM(vmIID irs.IID) (irs.VMInfo, error)
- func (vmHandler *NhnCloudVMHandler) GetVMStatus(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *NhnCloudVMHandler) ListVM() ([]*irs.VMInfo, error)
- func (vmHandler *NhnCloudVMHandler) ListVMStatus() ([]*irs.VMStatusInfo, error)
- func (vmHandler *NhnCloudVMHandler) MappingVMInfo(server servers.Server) (irs.VMInfo, error)
- func (vmHandler *NhnCloudVMHandler) RebootVM(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *NhnCloudVMHandler) ResumeVM(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *NhnCloudVMHandler) StartVM(vmReqInfo irs.VMReqInfo) (irs.VMInfo, error)
- func (vmHandler *NhnCloudVMHandler) SuspendVM(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *NhnCloudVMHandler) TerminateVM(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *NhnCloudVMHandler) WaitToGetVMInfo(vmIID irs.IID) (irs.VMStatus, error)
- type NhnCloudVMSpecHandler
- func (vmSpecHandler *NhnCloudVMSpecHandler) GetOrgVMSpec(specName string) (string, error)
- func (vmSpecHandler *NhnCloudVMSpecHandler) GetVMSpec(specName string) (irs.VMSpecInfo, error)
- func (vmSpecHandler *NhnCloudVMSpecHandler) ListOrgVMSpec() (string, error)
- func (vmSpecHandler *NhnCloudVMSpecHandler) ListVMSpec() ([]*irs.VMSpecInfo, error)
- func (vmSpecHandler *NhnCloudVMSpecHandler) MappingVMSpecInfo(vmSpec flavors.Flavor) *irs.VMSpecInfo
- type NhnCloudVPCHandler
- func (vpcHandler *NhnCloudVPCHandler) AddSubnet(vpcIID irs.IID, subnetInfo irs.SubnetInfo) (irs.VPCInfo, error)
- func (vpcHandler *NhnCloudVPCHandler) CreateSubnet(subnetReqInfo irs.SubnetInfo) (irs.SubnetInfo, error)
- func (vpcHandler *NhnCloudVPCHandler) CreateVPC(vpcReqInfo irs.VPCReqInfo) (irs.VPCInfo, error)
- func (vpcHandler *NhnCloudVPCHandler) DeleteSubnet(subnetIId irs.IID) (bool, error)
- func (vpcHandler *NhnCloudVPCHandler) DeleteVPC(vpcIID irs.IID) (bool, error)
- func (vpcHandler *NhnCloudVPCHandler) GetSubnet(subnetIId irs.IID) (irs.SubnetInfo, error)
- func (vpcHandler *NhnCloudVPCHandler) GetVPC(vpcIID irs.IID) (irs.VPCInfo, error)
- func (vpcHandler *NhnCloudVPCHandler) ListVPC() ([]*irs.VPCInfo, error)
- func (vpcHandler *NhnCloudVPCHandler) MappingSubnetInfo(subnet subnets.Subnet) *irs.SubnetInfo
- func (vpcHandler *NhnCloudVPCHandler) MappingVpcInfo(nvpc NetworkWithExt) *irs.VPCInfo
- func (vpcHandler *NhnCloudVPCHandler) RemoveSubnet(vpcIID irs.IID, subnetIID irs.IID) (bool, error)
- type NhnRegionInfo
Constants ¶
const ( HDD string = "General HDD" SSD string = "General SSD" )
const ( DefaultVpcName string = "Default Network" PublicType string = "shared" InternalType string = "dedicated" DefaultWeight int = 1 DefaultAdminStateUp bool = true // NHN Cloud default value for Listener and Health Monitor DefaultConnectionLimit int = 2000 // NHN Cloud Listener ConnectionLimit range : 1 ~ 60000 (Dedicated LB : 1 ~ 480000) DefaultKeepAliveTimeout int = 300 // NHN Cloud Listener KeepAliveTimeout range : 0 ~ 3600 DefaultHealthCheckerInterval int = 30 DefaultHealthCheckerTimeout int = 5 DefaultHealthCheckerThreshold int = 2 )
const ( DefaultVMUserName string = "cb-user" DefaultWindowsUserName string = "Administrator" UbuntuCloudInitFilePath string = "/cloud-driver-libs/.cloud-init-nhncloud/cloud-init-ubuntu" WinCloudInitFilePath string = "/cloud-driver-libs/.cloud-init-nhncloud/cloud-init-windows" DefaultDiskSize string = "20" DefaultWindowsDiskSize string = "50" )
Variables ¶
This section is empty.
Functions ¶
func CheckExistKey ¶
func CheckFolderAndCreate ¶
func CheckIIDValidation ¶
func ConvertDiskStatus ¶
func ConvertDiskStatus(diskStatus string) irs.DiskStatus
func ConvertImageStatus ¶
func ConvertImageStatus(myImageStatus images.ImageStatus) irs.MyImageStatus
func ConvertJsonString ¶
Convert Cloud Object to JSON String type
func ConvertTimeToKTC ¶ added in v0.8.3
Convert time to KTC
func CreateNodeGroup ¶
func DeleteCluster ¶
func DeleteNodeGroup ¶
func GetCallLogScheme ¶
func GetCluster ¶
func GetListenerProtocol ¶
Note : NHN Cloud Listener Protocols : TCP, HTTP, HTTPS or TERMINATED_HTTPS
func GetNetworkWithName ¶
func GetNodeGroup ¶
func GetNodeGroups ¶
func GetOriginalNameId ¶
func GetPortWithDeviceId ¶
func GetPublicVPCInfo ¶
func GetPublicVPCInfo(client *nhnsdk.ServiceClient, typeName string) (string, error)
func GetSGWithName ¶
func GetSGWithName(networkClient *nhnsdk.ServiceClient, securityGroupName string) (*secgroups.SecurityGroup, error)
func GetSubnetWithId ¶
func GetVMSpecIdWithName ¶
func GetVMSpecIdWithName(client *nhnsdk.ServiceClient, flavorName string) (string, error)
func LoggingError ¶
func LoggingError(hiscallInfo call.CLOUDLOGSCHEMA, err error)
func LoggingInfo ¶
func LoggingInfo(hiscallInfo call.CLOUDLOGSCHEMA, start time.Time)
func MappingKeypairInfo ¶
func MappingKeypairInfo(keypair keypairs.KeyPair) *irs.KeyPairInfo
func ResizeCluster ¶
Types ¶
type NetworkWithExt ¶
type NetworkWithExt struct { networks.Network external.NetworkExternalExt }
type NhnCloudClusterHandler ¶
type NhnCloudClusterHandler struct { RegionInfo idrv.RegionInfo VMClient *nhnsdk.ServiceClient ClusterClient *nhnsdk.ServiceClient }
func (*NhnCloudClusterHandler) AddNodeGroup ¶
func (clusterHandler *NhnCloudClusterHandler) AddNodeGroup(clusterIID irs.IID, nodeGroupReqInfo irs.NodeGroupInfo) (irs.NodeGroupInfo, error)
func (*NhnCloudClusterHandler) ChangeNodeGroupScaling ¶
func (*NhnCloudClusterHandler) CreateCluster ¶
func (clusterHandler *NhnCloudClusterHandler) CreateCluster(clusterReqInfo irs.ClusterInfo) (irs.ClusterInfo, error)
func (*NhnCloudClusterHandler) DeleteCluster ¶
func (clusterHandler *NhnCloudClusterHandler) DeleteCluster(clusterIID irs.IID) (bool, error)
func (*NhnCloudClusterHandler) GetCluster ¶
func (clusterHandler *NhnCloudClusterHandler) GetCluster(clusterIID irs.IID) (irs.ClusterInfo, error)
func (*NhnCloudClusterHandler) GetNodeGroup ¶
func (clusterHandler *NhnCloudClusterHandler) GetNodeGroup(clusterIID irs.IID, nodeGroupIID irs.IID) (irs.NodeGroupInfo, error)
func (*NhnCloudClusterHandler) ListCluster ¶
func (clusterHandler *NhnCloudClusterHandler) ListCluster() ([]*irs.ClusterInfo, error)
func (*NhnCloudClusterHandler) ListNodeGroup ¶
func (clusterHandler *NhnCloudClusterHandler) ListNodeGroup(clusterIID irs.IID) ([]*irs.NodeGroupInfo, error)
func (*NhnCloudClusterHandler) RemoveNodeGroup ¶
func (*NhnCloudClusterHandler) SetNodeGroupAutoScaling ¶
func (*NhnCloudClusterHandler) UpgradeCluster ¶
func (clusterHandler *NhnCloudClusterHandler) UpgradeCluster(clusterIID irs.IID, newVersion string) (irs.ClusterInfo, error)
업그레이드 순서 default-master 노드 그룹을 업그레이드한다. default-master 업그레이드가 완료되면, worker 노드들을 업그레이드 한다. default-master 업그레이드가 완료되기 전에는 worker 노드를 업그레이드 할 수 없다. default-master 업그레이드가 완료된 후에 (10분? 정도 소요됨) worker 노드를 업그레이드해야 한다.
type NhnCloudDiskHandler ¶
type NhnCloudDiskHandler struct { RegionInfo idrv.RegionInfo VMClient *nhnsdk.ServiceClient VolumeClient *nhnsdk.ServiceClient }
func (*NhnCloudDiskHandler) AttachDisk ¶
func (*NhnCloudDiskHandler) ChangeDiskSize ¶
func (*NhnCloudDiskHandler) CreateDisk ¶
func (*NhnCloudDiskHandler) DeleteDisk ¶
func (diskHandler *NhnCloudDiskHandler) DeleteDisk(diskIID irs.IID) (bool, error)
func (*NhnCloudDiskHandler) DetachDisk ¶
func (*NhnCloudDiskHandler) GetDiskStatus ¶
func (diskHandler *NhnCloudDiskHandler) GetDiskStatus(diskIID irs.IID) (irs.DiskStatus, error)
func (*NhnCloudDiskHandler) IsBootableDisk ¶
func (diskHandler *NhnCloudDiskHandler) IsBootableDisk(diskIID irs.IID) (bool, error)
func (*NhnCloudDiskHandler) ListDisk ¶
func (diskHandler *NhnCloudDiskHandler) ListDisk() ([]*irs.DiskInfo, error)
func (*NhnCloudDiskHandler) MappingDiskInfo ¶
func (*NhnCloudDiskHandler) WaitForDiskAttachment ¶
func (diskHandler *NhnCloudDiskHandler) WaitForDiskAttachment(diskIID irs.IID) (irs.DiskStatus, error)
Waiting for up to 500 seconds during Disk Attachment
func (*NhnCloudDiskHandler) WaitForDiskCreation ¶
func (diskHandler *NhnCloudDiskHandler) WaitForDiskCreation(diskIID irs.IID) (irs.DiskStatus, error)
Waiting for up to 500 seconds during Disk creation until Disk info. can be get
type NhnCloudImageHandler ¶
type NhnCloudImageHandler struct { RegionInfo idrv.RegionInfo VMClient *nhnsdk.ServiceClient ImageClient *nhnsdk.ServiceClient }
func (*NhnCloudImageHandler) CheckWindowsImage ¶
func (imageHandler *NhnCloudImageHandler) CheckWindowsImage(imageIID irs.IID) (bool, error)
func (*NhnCloudImageHandler) CreateImage ¶
func (imageHandler *NhnCloudImageHandler) CreateImage(imageReqInfo irs.ImageReqInfo) (irs.ImageInfo, error)
func (*NhnCloudImageHandler) DeleteImage ¶
func (imageHandler *NhnCloudImageHandler) DeleteImage(imageIID irs.IID) (bool, error)
func (*NhnCloudImageHandler) ListImage ¶
func (imageHandler *NhnCloudImageHandler) ListImage() ([]*irs.ImageInfo, error)
func (*NhnCloudImageHandler) MappingImageInfo ¶
func (imageHandler *NhnCloudImageHandler) MappingImageInfo(image images.Image) *irs.ImageInfo
type NhnCloudKeyPairHandler ¶
type NhnCloudKeyPairHandler struct { RegionInfo idrv.RegionInfo VMClient *nhnsdk.ServiceClient }
func (*NhnCloudKeyPairHandler) CreateKey ¶
func (keyPairHandler *NhnCloudKeyPairHandler) CreateKey(keyPairReqInfo irs.KeyPairReqInfo) (irs.KeyPairInfo, error)
func (*NhnCloudKeyPairHandler) DeleteKey ¶
func (keyPairHandler *NhnCloudKeyPairHandler) DeleteKey(keyIID irs.IID) (bool, error)
func (*NhnCloudKeyPairHandler) GetKey ¶
func (keyPairHandler *NhnCloudKeyPairHandler) GetKey(keyIID irs.IID) (irs.KeyPairInfo, error)
func (*NhnCloudKeyPairHandler) ListKey ¶
func (keyPairHandler *NhnCloudKeyPairHandler) ListKey() ([]*irs.KeyPairInfo, error)
type NhnCloudMyImageHandler ¶
type NhnCloudMyImageHandler struct { RegionInfo idrv.RegionInfo VMClient *nhnsdk.ServiceClient ImageClient *nhnsdk.ServiceClient NetworkClient *nhnsdk.ServiceClient VolumeClient *nhnsdk.ServiceClient }
func (*NhnCloudMyImageHandler) CheckWindowsImage ¶
func (myImageHandler *NhnCloudMyImageHandler) CheckWindowsImage(myImageIID irs.IID) (bool, error)
func (*NhnCloudMyImageHandler) DeleteMyImage ¶
func (myImageHandler *NhnCloudMyImageHandler) DeleteMyImage(myImageIID irs.IID) (bool, error)
func (*NhnCloudMyImageHandler) GetBootableVolumeID ¶
func (myImageHandler *NhnCloudMyImageHandler) GetBootableVolumeID(vmIID irs.IID) (string, error)
func (*NhnCloudMyImageHandler) GetImageStatus ¶
func (myImageHandler *NhnCloudMyImageHandler) GetImageStatus(myImageIID irs.IID) (irs.MyImageStatus, error)
func (*NhnCloudMyImageHandler) GetMyImage ¶
func (myImageHandler *NhnCloudMyImageHandler) GetMyImage(myImageIID irs.IID) (irs.MyImageInfo, error)
func (*NhnCloudMyImageHandler) GetVMSpecType ¶
func (myImageHandler *NhnCloudMyImageHandler) GetVMSpecType(vmIID irs.IID) (string, error)
func (*NhnCloudMyImageHandler) ListMyImage ¶
func (myImageHandler *NhnCloudMyImageHandler) ListMyImage() ([]*irs.MyImageInfo, error)
To Manage My Images
func (*NhnCloudMyImageHandler) MappingMyImageInfo ¶
func (myImageHandler *NhnCloudMyImageHandler) MappingMyImageInfo(myImage images.Image) *irs.MyImageInfo
func (*NhnCloudMyImageHandler) SnapshotVM ¶
func (myImageHandler *NhnCloudMyImageHandler) SnapshotVM(snapshotReqInfo irs.MyImageInfo) (irs.MyImageInfo, error)
To Take a Snapshot with VM ID (To Create My Image)
func (*NhnCloudMyImageHandler) WaitForImageSnapshot ¶
func (myImageHandler *NhnCloudMyImageHandler) WaitForImageSnapshot(myImageIID irs.IID) (irs.MyImageStatus, error)
Waiting for up to 500 seconds during Taking a Snapshot from a VM
type NhnCloudNLBHandler ¶
type NhnCloudNLBHandler struct { RegionInfo idrv.RegionInfo VMClient *nhnsdk.ServiceClient NetworkClient *nhnsdk.ServiceClient }
func (*NhnCloudNLBHandler) AddVMs ¶
func (nlbHandler *NhnCloudNLBHandler) AddVMs(nlbIID irs.IID, vmIIDs *[]irs.IID) (irs.VMGroupInfo, error)
func (*NhnCloudNLBHandler) ChangeHealthCheckerInfo ¶
func (nlbHandler *NhnCloudNLBHandler) ChangeHealthCheckerInfo(nlbIID irs.IID, healthChecker irs.HealthCheckerInfo) (irs.HealthCheckerInfo, error)
func (*NhnCloudNLBHandler) ChangeListener ¶
func (nlbHandler *NhnCloudNLBHandler) ChangeListener(nlbIID irs.IID, listener irs.ListenerInfo) (irs.ListenerInfo, error)
func (*NhnCloudNLBHandler) ChangeVMGroupInfo ¶
func (nlbHandler *NhnCloudNLBHandler) ChangeVMGroupInfo(nlbIID irs.IID, vmGroup irs.VMGroupInfo) (irs.VMGroupInfo, error)
func (*NhnCloudNLBHandler) CleanUpNLB ¶
func (nlbHandler *NhnCloudNLBHandler) CleanUpNLB(nlbIID irs.IID) (bool, error)
Clean up the Created New NLB in case of failure
func (*NhnCloudNLBHandler) CreateHealthMonitor ¶
func (*NhnCloudNLBHandler) CreateListener ¶
func (*NhnCloudNLBHandler) CreateNLB ¶
The Order to Create NHN NLB : NLB (w/ Subnet ID) -> Listener (w/ NLB ID) -> Pool (w/ Listener ID) -> HealthMonitor (w/ Pool ID) -> VM Members (w/ Pool ID), NLB Public IP (w/ NLB VIP_Port ID)
func (*NhnCloudNLBHandler) CreatePool ¶
func (*NhnCloudNLBHandler) CreatePublicIP ¶
func (nlbHandler *NhnCloudNLBHandler) CreatePublicIP(nlbVipPortId string) (string, error)
func (*NhnCloudNLBHandler) CreateVMMembers ¶
func (nlbHandler *NhnCloudNLBHandler) CreateVMMembers(poolId string, vmGroupInfo irs.VMGroupInfo) ([]pools.Member, error)
func (*NhnCloudNLBHandler) DeleteNLB ¶
func (nlbHandler *NhnCloudNLBHandler) DeleteNLB(nlbIID irs.IID) (bool, error)
func (*NhnCloudNLBHandler) DeletePublicIP ¶
func (nlbHandler *NhnCloudNLBHandler) DeletePublicIP(nlbIID irs.IID) (bool, error)
func (*NhnCloudNLBHandler) DeleteVMMember ¶
func (*NhnCloudNLBHandler) GetFirstSubnetIdWithVPCName ¶
func (nlbHandler *NhnCloudNLBHandler) GetFirstSubnetIdWithVPCName(vpcName string) (subnetId string, err error)
func (*NhnCloudNLBHandler) GetHealthMonitorInfo ¶
func (nlbHandler *NhnCloudNLBHandler) GetHealthMonitorInfo(healthMonitorId string) (irs.HealthCheckerInfo, error)
func (*NhnCloudNLBHandler) GetHealthMonitorInfoWithListenerId ¶
func (nlbHandler *NhnCloudNLBHandler) GetHealthMonitorInfoWithListenerId(listenerId string) (irs.HealthCheckerInfo, error)
func (*NhnCloudNLBHandler) GetHealthMonitorListWithPoolId ¶
func (nlbHandler *NhnCloudNLBHandler) GetHealthMonitorListWithPoolId(poolId string) ([]irs.HealthCheckerInfo, error)
func (*NhnCloudNLBHandler) GetListenerInfo ¶
func (nlbHandler *NhnCloudNLBHandler) GetListenerInfo(listenerId string) (irs.ListenerInfo, error)
func (*NhnCloudNLBHandler) GetNetInfoWithVMName ¶
func (nlbHandler *NhnCloudNLBHandler) GetNetInfoWithVMName(vmName string) (string, string, error)
func (*NhnCloudNLBHandler) GetNhnPoolListWithListenerId ¶
func (nlbHandler *NhnCloudNLBHandler) GetNhnPoolListWithListenerId(listenerId string) ([]pools.Pool, error)
func (*NhnCloudNLBHandler) GetNhnVMMember ¶
func (*NhnCloudNLBHandler) GetNhnVMMembersWithPoolId ¶
func (nlbHandler *NhnCloudNLBHandler) GetNhnVMMembersWithPoolId(poolId string) (*[]pools.Member, error)
func (*NhnCloudNLBHandler) GetNhnVMWithPrivateIp ¶
func (nlbHandler *NhnCloudNLBHandler) GetNhnVMWithPrivateIp(privateIp string) (*servers.Server, error)
func (*NhnCloudNLBHandler) GetNlbPrivateIp ¶
func (nlbHandler *NhnCloudNLBHandler) GetNlbPrivateIp(nlbIID irs.IID) (string, error)
func (*NhnCloudNLBHandler) GetNlbProvisioningStatus ¶
func (nlbHandler *NhnCloudNLBHandler) GetNlbProvisioningStatus(nlbIID irs.IID) (string, error)
func (*NhnCloudNLBHandler) GetNlbPublicIP ¶
func (nlbHandler *NhnCloudNLBHandler) GetNlbPublicIP(nlbIID irs.IID) (string, error)
func (*NhnCloudNLBHandler) GetNlbVipPortId ¶
func (nlbHandler *NhnCloudNLBHandler) GetNlbVipPortId(nlbIID irs.IID) (string, error)
func (*NhnCloudNLBHandler) GetVMGroupHealthInfo ¶
func (nlbHandler *NhnCloudNLBHandler) GetVMGroupHealthInfo(nlbIID irs.IID) (irs.HealthInfo, error)
func (*NhnCloudNLBHandler) GetVMGroupInfo ¶
func (nlbHandler *NhnCloudNLBHandler) GetVMGroupInfo(nlb loadbalancers.LoadBalancer) (irs.VMGroupInfo, error)
func (*NhnCloudNLBHandler) GetVMMemberOperatingStatus ¶
func (nlbHandler *NhnCloudNLBHandler) GetVMMemberOperatingStatus(poolId string, vmMemberId string) (string, error)
Caution : 'vmMemberId' is not VM ID.
func (*NhnCloudNLBHandler) GetVPCIdWithSubnetId ¶
func (nlbHandler *NhnCloudNLBHandler) GetVPCIdWithSubnetId(subnetId string) (string, error)
func (*NhnCloudNLBHandler) ListNLB ¶
func (nlbHandler *NhnCloudNLBHandler) ListNLB() ([]*irs.NLBInfo, error)
func (*NhnCloudNLBHandler) MappingListenerInfo ¶
func (nlbHandler *NhnCloudNLBHandler) MappingListenerInfo(nhnListener listeners.Listener) (irs.ListenerInfo, error)
func (*NhnCloudNLBHandler) MappingMonitorInfo ¶
func (nlbHandler *NhnCloudNLBHandler) MappingMonitorInfo(nhnMonitor monitors.Monitor) irs.HealthCheckerInfo
func (*NhnCloudNLBHandler) MappingNlbInfo ¶
func (nlbHandler *NhnCloudNLBHandler) MappingNlbInfo(nhnNLB loadbalancers.LoadBalancer) (irs.NLBInfo, error)
func (*NhnCloudNLBHandler) WaitToGetNLBInfo ¶
func (nlbHandler *NhnCloudNLBHandler) WaitToGetNLBInfo(nlbIID irs.IID) (bool, error)
Waiting for Provisioning to Complete.
type NhnCloudRegionZoneHandler ¶
type NhnCloudRegionZoneHandler struct { CredentialInfo idrv.CredentialInfo RegionInfo idrv.RegionInfo VMClient *nhnsdk.ServiceClient }
func (NhnCloudRegionZoneHandler) GetRegionZone ¶
func (regionZoneHandler NhnCloudRegionZoneHandler) GetRegionZone(regionCode string) (irs.RegionZoneInfo, error)
func (*NhnCloudRegionZoneHandler) ListOrgRegion ¶
func (regionZoneHandler *NhnCloudRegionZoneHandler) ListOrgRegion() (string, error)
func (*NhnCloudRegionZoneHandler) ListOrgZone ¶
func (regionZoneHandler *NhnCloudRegionZoneHandler) ListOrgZone() (string, error)
func (*NhnCloudRegionZoneHandler) ListRegionZone ¶
func (regionZoneHandler *NhnCloudRegionZoneHandler) ListRegionZone() ([]*irs.RegionZoneInfo, error)
type NhnCloudSecurityHandler ¶
type NhnCloudSecurityHandler struct { RegionInfo idrv.RegionInfo VMClient *nhnsdk.ServiceClient NetworkClient *nhnsdk.ServiceClient }
func (*NhnCloudSecurityHandler) AddRules ¶
func (securityHandler *NhnCloudSecurityHandler) AddRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (irs.SecurityInfo, error)
func (*NhnCloudSecurityHandler) CreateSecurity ¶
func (securityHandler *NhnCloudSecurityHandler) CreateSecurity(securityReqInfo irs.SecurityReqInfo) (irs.SecurityInfo, error)
func (*NhnCloudSecurityHandler) DeleteSecurity ¶
func (securityHandler *NhnCloudSecurityHandler) DeleteSecurity(securityIID irs.IID) (bool, error)
func (*NhnCloudSecurityHandler) GetDefaultVPCSystemID ¶
func (securityHandler *NhnCloudSecurityHandler) GetDefaultVPCSystemID() (string, error)
func (*NhnCloudSecurityHandler) GetRuleIdFromRuleInfo ¶
func (securityHandler *NhnCloudSecurityHandler) GetRuleIdFromRuleInfo(sgIID irs.IID, givenRule irs.SecurityRuleInfo) (string, error)
func (*NhnCloudSecurityHandler) GetSecurity ¶
func (securityHandler *NhnCloudSecurityHandler) GetSecurity(securityIID irs.IID) (irs.SecurityInfo, error)
func (*NhnCloudSecurityHandler) ListSecurity ¶
func (securityHandler *NhnCloudSecurityHandler) ListSecurity() ([]*irs.SecurityInfo, error)
func (*NhnCloudSecurityHandler) MappingSecurityInfo ¶
func (securityHandler *NhnCloudSecurityHandler) MappingSecurityInfo(nhnSG secgroups.SecurityGroup, defaultVPCSystemId string) (*irs.SecurityInfo, error)
func (*NhnCloudSecurityHandler) OpenOutboundAllProtocol ¶
func (securityHandler *NhnCloudSecurityHandler) OpenOutboundAllProtocol(sgIID irs.IID) error
func (*NhnCloudSecurityHandler) RemoveRules ¶
func (securityHandler *NhnCloudSecurityHandler) RemoveRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (bool, error)
type NhnCloudVMHandler ¶
type NhnCloudVMHandler struct { RegionInfo idrv.RegionInfo VMClient *nhnsdk.ServiceClient ImageClient *nhnsdk.ServiceClient NetworkClient *nhnsdk.ServiceClient VolumeClient *nhnsdk.ServiceClient }
func (*NhnCloudVMHandler) AssociatePublicIP ¶
func (vmHandler *NhnCloudVMHandler) AssociatePublicIP(serverID string) (bool, error)
func (*NhnCloudVMHandler) GetOSPlatformWithImageID ¶ added in v0.8.2
func (vmHandler *NhnCloudVMHandler) GetOSPlatformWithImageID(imageId string) (irs.Platform, error)
func (*NhnCloudVMHandler) GetVMStatus ¶
func (*NhnCloudVMHandler) ListVM ¶
func (vmHandler *NhnCloudVMHandler) ListVM() ([]*irs.VMInfo, error)
func (*NhnCloudVMHandler) ListVMStatus ¶
func (vmHandler *NhnCloudVMHandler) ListVMStatus() ([]*irs.VMStatusInfo, error)
func (*NhnCloudVMHandler) MappingVMInfo ¶
func (*NhnCloudVMHandler) TerminateVM ¶
func (*NhnCloudVMHandler) WaitToGetVMInfo ¶
Waiting for up to 500 seconds during VM creation until VM info. can be get
type NhnCloudVMSpecHandler ¶
type NhnCloudVMSpecHandler struct { RegionInfo idrv.RegionInfo VMClient *nhnsdk.ServiceClient }
func (*NhnCloudVMSpecHandler) GetOrgVMSpec ¶
func (vmSpecHandler *NhnCloudVMSpecHandler) GetOrgVMSpec(specName string) (string, error)
func (*NhnCloudVMSpecHandler) GetVMSpec ¶
func (vmSpecHandler *NhnCloudVMSpecHandler) GetVMSpec(specName string) (irs.VMSpecInfo, error)
func (*NhnCloudVMSpecHandler) ListOrgVMSpec ¶
func (vmSpecHandler *NhnCloudVMSpecHandler) ListOrgVMSpec() (string, error)
func (*NhnCloudVMSpecHandler) ListVMSpec ¶
func (vmSpecHandler *NhnCloudVMSpecHandler) ListVMSpec() ([]*irs.VMSpecInfo, error)
func (*NhnCloudVMSpecHandler) MappingVMSpecInfo ¶
func (vmSpecHandler *NhnCloudVMSpecHandler) MappingVMSpecInfo(vmSpec flavors.Flavor) *irs.VMSpecInfo
type NhnCloudVPCHandler ¶
type NhnCloudVPCHandler struct { RegionInfo idrv.RegionInfo NetworkClient *nhnsdk.ServiceClient }
func (*NhnCloudVPCHandler) AddSubnet ¶
func (vpcHandler *NhnCloudVPCHandler) AddSubnet(vpcIID irs.IID, subnetInfo irs.SubnetInfo) (irs.VPCInfo, error)
func (*NhnCloudVPCHandler) CreateSubnet ¶
func (vpcHandler *NhnCloudVPCHandler) CreateSubnet(subnetReqInfo irs.SubnetInfo) (irs.SubnetInfo, error)
func (*NhnCloudVPCHandler) CreateVPC ¶
func (vpcHandler *NhnCloudVPCHandler) CreateVPC(vpcReqInfo irs.VPCReqInfo) (irs.VPCInfo, error)
func (*NhnCloudVPCHandler) DeleteSubnet ¶
func (vpcHandler *NhnCloudVPCHandler) DeleteSubnet(subnetIId irs.IID) (bool, error)
func (*NhnCloudVPCHandler) DeleteVPC ¶
func (vpcHandler *NhnCloudVPCHandler) DeleteVPC(vpcIID irs.IID) (bool, error)
func (*NhnCloudVPCHandler) GetSubnet ¶
func (vpcHandler *NhnCloudVPCHandler) GetSubnet(subnetIId irs.IID) (irs.SubnetInfo, error)
func (*NhnCloudVPCHandler) ListVPC ¶
func (vpcHandler *NhnCloudVPCHandler) ListVPC() ([]*irs.VPCInfo, error)
func (*NhnCloudVPCHandler) MappingSubnetInfo ¶
func (vpcHandler *NhnCloudVPCHandler) MappingSubnetInfo(subnet subnets.Subnet) *irs.SubnetInfo
func (*NhnCloudVPCHandler) MappingVpcInfo ¶
func (vpcHandler *NhnCloudVPCHandler) MappingVpcInfo(nvpc NetworkWithExt) *irs.VPCInfo