resources

package
v0.8.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HDD string = "General HDD"
	SSD string = "General SSD"
)
View Source
const (
	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
)
View Source
const (
	DefaultVMUserName       string = "cb-user"
	DefaultWindowsUserName  string = "cb-user"
	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"
	DefaultWinRootDiskSize  string = "50"
)

Variables

This section is empty.

Functions

func ConvertImageStatus

func ConvertImageStatus(myImageStatus images.ImageStatus) irs.MyImageStatus

func InitLog

func InitLog()

func LoggingError

func LoggingError(hiscallInfo call.CLOUDLOGSCHEMA, err error)

func LoggingInfo

func LoggingInfo(hiscallInfo call.CLOUDLOGSCHEMA, start time.Time)

Types

type NetworkWithExt

type NetworkWithExt struct {
	vpcs.VPC
	external.NetworkExternalExt
}

type NhnCloudClusterHandler

type NhnCloudClusterHandler struct {
	RegionInfo    idrv.RegionInfo
	VMClient      *nhnsdk.ServiceClient
	ImageClient   *nhnsdk.ServiceClient
	NetworkClient *nhnsdk.ServiceClient
	ClusterClient *nhnsdk.ServiceClient
}

func (*NhnCloudClusterHandler) AddNodeGroup

func (nch *NhnCloudClusterHandler) AddNodeGroup(clusterIID irs.IID, nodeGroupReqInfo irs.NodeGroupInfo) (irs.NodeGroupInfo, error)

func (*NhnCloudClusterHandler) ChangeNodeGroupScaling

func (nch *NhnCloudClusterHandler) ChangeNodeGroupScaling(clusterIID irs.IID, nodeGroupIID irs.IID, desiredNodeSize int, minNodeSize int, maxNodeSize int) (irs.NodeGroupInfo, error)

func (*NhnCloudClusterHandler) CreateCluster

func (nch *NhnCloudClusterHandler) CreateCluster(clusterReqInfo irs.ClusterInfo) (irs.ClusterInfo, error)

func (*NhnCloudClusterHandler) DeleteCluster

func (nch *NhnCloudClusterHandler) DeleteCluster(clusterIID irs.IID) (bool, error)

func (*NhnCloudClusterHandler) GetCluster

func (nch *NhnCloudClusterHandler) GetCluster(clusterIID irs.IID) (irs.ClusterInfo, error)

func (*NhnCloudClusterHandler) ListCluster

func (nch *NhnCloudClusterHandler) ListCluster() ([]*irs.ClusterInfo, error)

func (*NhnCloudClusterHandler) RemoveNodeGroup

func (nch *NhnCloudClusterHandler) RemoveNodeGroup(clusterIID irs.IID, nodeGroupIID irs.IID) (bool, error)

func (*NhnCloudClusterHandler) SetNodeGroupAutoScaling

func (nch *NhnCloudClusterHandler) SetNodeGroupAutoScaling(clusterIID irs.IID, nodeGroupIID irs.IID, on bool) (bool, error)

func (*NhnCloudClusterHandler) UpgradeCluster

func (nch *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 (diskHandler *NhnCloudDiskHandler) AttachDisk(diskIID irs.IID, vmIID irs.IID) (irs.DiskInfo, error)

func (*NhnCloudDiskHandler) ChangeDiskSize

func (diskHandler *NhnCloudDiskHandler) ChangeDiskSize(diskIID irs.IID, newDiskSize string) (bool, error)

func (*NhnCloudDiskHandler) CreateDisk

func (diskHandler *NhnCloudDiskHandler) CreateDisk(diskReqInfo irs.DiskInfo) (irs.DiskInfo, error)

func (*NhnCloudDiskHandler) DeleteDisk

func (diskHandler *NhnCloudDiskHandler) DeleteDisk(diskIID irs.IID) (bool, error)

func (*NhnCloudDiskHandler) DetachDisk

func (diskHandler *NhnCloudDiskHandler) DetachDisk(diskIID irs.IID, vmIID irs.IID) (bool, error)

func (*NhnCloudDiskHandler) GetDisk

func (diskHandler *NhnCloudDiskHandler) GetDisk(diskIID irs.IID) (irs.DiskInfo, error)

func (*NhnCloudDiskHandler) ListDisk

func (diskHandler *NhnCloudDiskHandler) ListDisk() ([]*irs.DiskInfo, error)

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) GetImage

func (imageHandler *NhnCloudImageHandler) GetImage(imageIID irs.IID) (irs.ImageInfo, error)

func (*NhnCloudImageHandler) ListImage

func (imageHandler *NhnCloudImageHandler) ListImage() ([]*irs.ImageInfo, error)

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) GetMyImage

func (myImageHandler *NhnCloudMyImageHandler) GetMyImage(myImageIID irs.IID) (irs.MyImageInfo, error)

func (*NhnCloudMyImageHandler) ListMyImage

func (myImageHandler *NhnCloudMyImageHandler) ListMyImage() ([]*irs.MyImageInfo, error)

To Manage My Images

func (*NhnCloudMyImageHandler) SnapshotVM

func (myImageHandler *NhnCloudMyImageHandler) SnapshotVM(snapshotReqInfo irs.MyImageInfo) (irs.MyImageInfo, error)

To Take a Snapshot with VM ID (To Create My Image)

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) CreateNLB

func (nlbHandler *NhnCloudNLBHandler) CreateNLB(nlbReqInfo irs.NLBInfo) (irs.NLBInfo, error)

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) DeleteNLB

func (nlbHandler *NhnCloudNLBHandler) DeleteNLB(nlbIID irs.IID) (bool, error)

func (*NhnCloudNLBHandler) GetNLB

func (nlbHandler *NhnCloudNLBHandler) GetNLB(nlbIID irs.IID) (irs.NLBInfo, error)

func (*NhnCloudNLBHandler) GetVMGroupHealthInfo

func (nlbHandler *NhnCloudNLBHandler) GetVMGroupHealthInfo(nlbIID irs.IID) (irs.HealthInfo, error)

func (*NhnCloudNLBHandler) ListNLB

func (nlbHandler *NhnCloudNLBHandler) ListNLB() ([]*irs.NLBInfo, error)

func (*NhnCloudNLBHandler) RemoveVMs

func (nlbHandler *NhnCloudNLBHandler) RemoveVMs(nlbIID irs.IID, vmIIDs *[]irs.IID) (bool, error)

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) GetSecurity

func (securityHandler *NhnCloudSecurityHandler) GetSecurity(securityIID irs.IID) (irs.SecurityInfo, error)

func (*NhnCloudSecurityHandler) ListSecurity

func (securityHandler *NhnCloudSecurityHandler) ListSecurity() ([]*irs.SecurityInfo, 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) GetVM

func (vmHandler *NhnCloudVMHandler) GetVM(vmIID irs.IID) (irs.VMInfo, error)

func (*NhnCloudVMHandler) GetVMStatus

func (vmHandler *NhnCloudVMHandler) GetVMStatus(vmIID irs.IID) (irs.VMStatus, error)

func (*NhnCloudVMHandler) ListVM

func (vmHandler *NhnCloudVMHandler) ListVM() ([]*irs.VMInfo, error)

func (*NhnCloudVMHandler) ListVMStatus

func (vmHandler *NhnCloudVMHandler) ListVMStatus() ([]*irs.VMStatusInfo, error)

func (*NhnCloudVMHandler) RebootVM

func (vmHandler *NhnCloudVMHandler) RebootVM(vmIID irs.IID) (irs.VMStatus, error)

func (*NhnCloudVMHandler) ResumeVM

func (vmHandler *NhnCloudVMHandler) ResumeVM(vmIID irs.IID) (irs.VMStatus, error)

func (*NhnCloudVMHandler) StartVM

func (vmHandler *NhnCloudVMHandler) StartVM(vmReqInfo irs.VMReqInfo) (irs.VMInfo, error)

func (*NhnCloudVMHandler) SuspendVM

func (vmHandler *NhnCloudVMHandler) SuspendVM(vmIID irs.IID) (irs.VMStatus, error)

func (*NhnCloudVMHandler) TerminateVM

func (vmHandler *NhnCloudVMHandler) TerminateVM(vmIID irs.IID) (irs.VMStatus, error)

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)

type NhnCloudVPCHandler

type NhnCloudVPCHandler struct {
	CredentialInfo idrv.CredentialInfo
	RegionInfo     idrv.RegionInfo
	NetworkClient  *nhnsdk.ServiceClient
}

func (*NhnCloudVPCHandler) AddSubnet

func (vpcHandler *NhnCloudVPCHandler) AddSubnet(vpcIID irs.IID, subnetInfo irs.SubnetInfo) (irs.VPCInfo, error)

func (*NhnCloudVPCHandler) CreateVPC

func (vpcHandler *NhnCloudVPCHandler) CreateVPC(vpcReqInfo irs.VPCReqInfo) (irs.VPCInfo, error)

func (*NhnCloudVPCHandler) DeleteVPC

func (vpcHandler *NhnCloudVPCHandler) DeleteVPC(vpcIID irs.IID) (bool, error)

func (*NhnCloudVPCHandler) GetVPC

func (vpcHandler *NhnCloudVPCHandler) GetVPC(vpcIID irs.IID) (irs.VPCInfo, error)

func (*NhnCloudVPCHandler) ListVPC

func (vpcHandler *NhnCloudVPCHandler) ListVPC() ([]*irs.VPCInfo, error)

func (*NhnCloudVPCHandler) RemoveSubnet

func (vpcHandler *NhnCloudVPCHandler) RemoveSubnet(vpcIID irs.IID, subnetIID irs.IID) (bool, error)

type NhnRegionInfo

type NhnRegionInfo struct {
	RegionCode string
	RegionName string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL