oracle

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLOUD_PROVIDER_ORACLE_CN = "甲骨文"
	ORACLE_DEFAULT_REGION    = "ap-singapore-1"
	DEFAULT_API_VERSION      = "20160918"

	NEXT_TOKEN = "opc-next-page"

	SERVICE_IAAS     = "iaas"
	SERVICE_IDENTITY = "identity"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Compartment

type Compartment struct {
	CompartmentId  string
	Id             string
	Name           string
	Description    string
	TimeCreated    time.Time
	LifecycleState string
}

type OracleClientConfig

type OracleClientConfig struct {
	// contains filtered or unexported fields
}

func NewOracleClientConfig

func NewOracleClientConfig(tenancy, user, compartment, privateKey string) (*OracleClientConfig, error)

func (*OracleClientConfig) CloudproviderConfig

func (self *OracleClientConfig) CloudproviderConfig(cpcfg cloudprovider.ProviderConfig) *OracleClientConfig

func (*OracleClientConfig) Debug

func (self *OracleClientConfig) Debug(debug bool) *OracleClientConfig

type Placement

type Placement struct {
	ProjectId int
	Zone      string
}

type SBootDisk

type SBootDisk struct {
	multicloud.SDisk
	SOracleTag

	AvailabilityDomain string
	DisplayName        string
	Id                 string
	IsHydrated         bool
	LifecycleState     string
	VpusPerGB          int
	SizeInGBs          int
	SizeInMBs          int
	TimeCreated        time.Time
	VolumeType         string
	ImageId            string
	// contains filtered or unexported fields
}

func (*SBootDisk) CreateISnapshot

func (self *SBootDisk) CreateISnapshot(ctx context.Context, name, desc string) (cloudprovider.ICloudSnapshot, error)

func (*SBootDisk) Delete

func (self *SBootDisk) Delete(ctx context.Context) error

func (*SBootDisk) GetAccessPath

func (disk *SBootDisk) GetAccessPath() string

func (*SBootDisk) GetBillingType

func (self *SBootDisk) GetBillingType() string

func (*SBootDisk) GetCacheMode

func (self *SBootDisk) GetCacheMode() string

func (*SBootDisk) GetCreatedAt

func (self *SBootDisk) GetCreatedAt() time.Time

func (*SBootDisk) GetDiskFormat

func (self *SBootDisk) GetDiskFormat() string

func (*SBootDisk) GetDiskSizeMB

func (self *SBootDisk) GetDiskSizeMB() int

func (*SBootDisk) GetDiskType

func (self *SBootDisk) GetDiskType() string

func (*SBootDisk) GetDriver

func (self *SBootDisk) GetDriver() string

func (*SBootDisk) GetExpiredAt

func (self *SBootDisk) GetExpiredAt() time.Time

func (*SBootDisk) GetFsFormat

func (self *SBootDisk) GetFsFormat() string

func (*SBootDisk) GetGlobalId

func (self *SBootDisk) GetGlobalId() string

func (*SBootDisk) GetISnapshot

func (self *SBootDisk) GetISnapshot(snapshotId string) (cloudprovider.ICloudSnapshot, error)

func (*SBootDisk) GetISnapshots

func (self *SBootDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)

func (*SBootDisk) GetIStorage

func (self *SBootDisk) GetIStorage() (cloudprovider.ICloudStorage, error)

func (*SBootDisk) GetId

func (self *SBootDisk) GetId() string

func (*SBootDisk) GetIsAutoDelete

func (self *SBootDisk) GetIsAutoDelete() bool

func (*SBootDisk) GetIsNonPersistent

func (self *SBootDisk) GetIsNonPersistent() bool

func (*SBootDisk) GetMountpoint

func (self *SBootDisk) GetMountpoint() string

func (*SBootDisk) GetName

func (self *SBootDisk) GetName() string

func (*SBootDisk) GetProjectId

func (self *SBootDisk) GetProjectId() string

func (*SBootDisk) GetStatus

func (self *SBootDisk) GetStatus() string

func (*SBootDisk) GetTemplateId

func (self *SBootDisk) GetTemplateId() string

func (*SBootDisk) Rebuild

func (self *SBootDisk) Rebuild(ctx context.Context) error

func (*SBootDisk) Refresh

func (self *SBootDisk) Refresh() error

func (*SBootDisk) Reset

func (self *SBootDisk) Reset(ctx context.Context, snapshotId string) (string, error)

func (*SBootDisk) Resize

func (self *SBootDisk) Resize(ctx context.Context, sizeMb int64) error

type SBootVolumeAttachment

type SBootVolumeAttachment struct {
	BootVolumeId string `json:"boot-volume-id"`
}

type SDisk

type SDisk struct {
	multicloud.SDisk
	SOracleTag

	AvailabilityDomain string
	DisplayName        string
	Id                 string
	IsHydrated         bool
	LifecycleState     string
	VpusPerGB          int
	SizeInGBs          int
	SizeInMBs          int
	TimeCreated        time.Time
	VolumeType         string
	// contains filtered or unexported fields
}

func (*SDisk) CreateISnapshot

func (self *SDisk) CreateISnapshot(ctx context.Context, name, desc string) (cloudprovider.ICloudSnapshot, error)

func (*SDisk) Delete

func (self *SDisk) Delete(ctx context.Context) error

func (*SDisk) GetAccessPath

func (disk *SDisk) GetAccessPath() string

func (*SDisk) GetBillingType

func (self *SDisk) GetBillingType() string

func (*SDisk) GetCacheMode

func (self *SDisk) GetCacheMode() string

func (*SDisk) GetCreatedAt

func (self *SDisk) GetCreatedAt() time.Time

func (*SDisk) GetDiskFormat

func (self *SDisk) GetDiskFormat() string

func (*SDisk) GetDiskSizeMB

func (self *SDisk) GetDiskSizeMB() int

func (*SDisk) GetDiskType

func (self *SDisk) GetDiskType() string

func (*SDisk) GetDriver

func (self *SDisk) GetDriver() string

func (*SDisk) GetExpiredAt

func (self *SDisk) GetExpiredAt() time.Time

func (*SDisk) GetFsFormat

func (self *SDisk) GetFsFormat() string

func (*SDisk) GetGlobalId

func (self *SDisk) GetGlobalId() string

func (*SDisk) GetISnapshot

func (self *SDisk) GetISnapshot(snapshotId string) (cloudprovider.ICloudSnapshot, error)

func (*SDisk) GetISnapshots

func (self *SDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)

func (*SDisk) GetIStorage

func (self *SDisk) GetIStorage() (cloudprovider.ICloudStorage, error)

func (*SDisk) GetId

func (self *SDisk) GetId() string

func (*SDisk) GetIsAutoDelete

func (self *SDisk) GetIsAutoDelete() bool

func (*SDisk) GetIsNonPersistent

func (self *SDisk) GetIsNonPersistent() bool

func (*SDisk) GetMountpoint

func (self *SDisk) GetMountpoint() string

func (*SDisk) GetName

func (self *SDisk) GetName() string

func (*SDisk) GetProjectId

func (self *SDisk) GetProjectId() string

func (*SDisk) GetStatus

func (self *SDisk) GetStatus() string

func (*SDisk) GetTemplateId

func (self *SDisk) GetTemplateId() string

func (*SDisk) Rebuild

func (self *SDisk) Rebuild(ctx context.Context) error

func (*SDisk) Refresh

func (self *SDisk) Refresh() error

func (*SDisk) Reset

func (self *SDisk) Reset(ctx context.Context, snapshotId string) (string, error)

func (*SDisk) Resize

func (self *SDisk) Resize(ctx context.Context, sizeMb int64) error

type SEipAddress

type SEipAddress struct {
	multicloud.SEipBase
	SOracleTag

	Id                 string
	AssignedEntityType string
	AvailabilityDomain string
	DisplayName        string
	IpAddress          string
	LifecycleState     string
	Lifetime           string
	Scope              string
	TimeCreated        time.Time
	// contains filtered or unexported fields
}

func (*SEipAddress) Associate

func (self *SEipAddress) Associate(conf *cloudprovider.AssociateConfig) error

func (*SEipAddress) ChangeBandwidth

func (self *SEipAddress) ChangeBandwidth(bw int) error

func (*SEipAddress) Delete

func (self *SEipAddress) Delete() error

func (*SEipAddress) Dissociate

func (self *SEipAddress) Dissociate() error

func (*SEipAddress) GetAssociationExternalId

func (self *SEipAddress) GetAssociationExternalId() string

func (*SEipAddress) GetAssociationType

func (self *SEipAddress) GetAssociationType() string

func (*SEipAddress) GetBandwidth

func (self *SEipAddress) GetBandwidth() int

func (*SEipAddress) GetBillingType

func (self *SEipAddress) GetBillingType() string

func (*SEipAddress) GetCreatedAt

func (self *SEipAddress) GetCreatedAt() time.Time

func (*SEipAddress) GetExpiredAt

func (self *SEipAddress) GetExpiredAt() time.Time

func (*SEipAddress) GetGlobalId

func (self *SEipAddress) GetGlobalId() string

func (*SEipAddress) GetINetworkId

func (self *SEipAddress) GetINetworkId() string

func (*SEipAddress) GetId

func (self *SEipAddress) GetId() string

func (*SEipAddress) GetInternetChargeType

func (self *SEipAddress) GetInternetChargeType() string

func (*SEipAddress) GetIpAddr

func (self *SEipAddress) GetIpAddr() string

func (*SEipAddress) GetMode

func (self *SEipAddress) GetMode() string

func (*SEipAddress) GetName

func (self *SEipAddress) GetName() string

func (*SEipAddress) GetProjectId

func (self *SEipAddress) GetProjectId() string

func (*SEipAddress) GetStatus

func (self *SEipAddress) GetStatus() string

func (*SEipAddress) IsEmulated

func (self *SEipAddress) IsEmulated() bool

func (*SEipAddress) Refresh

func (self *SEipAddress) Refresh() error

type SHost

type SHost struct {
	multicloud.SHostBase
	// contains filtered or unexported fields
}

func (*SHost) CreateVM

func (*SHost) GetAccessIp

func (self *SHost) GetAccessIp() string

func (*SHost) GetAccessMac

func (self *SHost) GetAccessMac() string

func (*SHost) GetCpuCount

func (self *SHost) GetCpuCount() int

func (*SHost) GetCpuDesc

func (self *SHost) GetCpuDesc() string

func (*SHost) GetCpuMhz

func (self *SHost) GetCpuMhz() int

func (*SHost) GetEnabled

func (self *SHost) GetEnabled() bool

func (*SHost) GetGlobalId

func (self *SHost) GetGlobalId() string

func (*SHost) GetHostStatus

func (self *SHost) GetHostStatus() string

func (*SHost) GetHostType

func (self *SHost) GetHostType() string

func (*SHost) GetIHostNics

func (host *SHost) GetIHostNics() ([]cloudprovider.ICloudHostNetInterface, error)

func (*SHost) GetIStorageById

func (self *SHost) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)

func (*SHost) GetIStorages

func (self *SHost) GetIStorages() ([]cloudprovider.ICloudStorage, error)

func (*SHost) GetIVMById

func (self *SHost) GetIVMById(id string) (cloudprovider.ICloudVM, error)

func (*SHost) GetIVMs

func (self *SHost) GetIVMs() ([]cloudprovider.ICloudVM, error)

func (*SHost) GetId

func (self *SHost) GetId() string

func (*SHost) GetIsMaintenance

func (host *SHost) GetIsMaintenance() bool

func (*SHost) GetMemSizeMB

func (self *SHost) GetMemSizeMB() int

func (*SHost) GetName

func (self *SHost) GetName() string

func (*SHost) GetNodeCount

func (self *SHost) GetNodeCount() int8

func (*SHost) GetSN

func (self *SHost) GetSN() string

func (*SHost) GetStatus

func (self *SHost) GetStatus() string

func (*SHost) GetStorageSizeMB

func (self *SHost) GetStorageSizeMB() int64

func (*SHost) GetStorageType

func (self *SHost) GetStorageType() string

func (*SHost) GetSysInfo

func (self *SHost) GetSysInfo() jsonutils.JSONObject

func (*SHost) GetVersion

func (host *SHost) GetVersion() string

func (*SHost) IsEmulated

func (self *SHost) IsEmulated() bool

type SImage

type SImage struct {
	multicloud.SImageBase
	SOracleTag

	DisplayName   string
	Id            string
	LaunchMode    string
	LaunchOptions struct {
		BootVolumeType                  string
		Firmware                        string
		NetworkType                     string
		RemoteDataVolumeType            string
		IsPvEncryptionInTransitEnabled  bool
		IsConsistentVolumeNamingEnabled string
	}
	LifecycleState         string
	OperatingSystem        string
	OperatingSystemVersion string
	SizeInMBs              int
	BillableSizeInGBs      int
	TimeCreated            time.Time
	// contains filtered or unexported fields
}

func (*SImage) Delete

func (self *SImage) Delete(ctx context.Context) error

func (*SImage) GetBios

func (img *SImage) GetBios() cloudprovider.TBiosType

func (*SImage) GetCreatedAt

func (self *SImage) GetCreatedAt() time.Time

func (*SImage) GetFullOsName

func (img *SImage) GetFullOsName() string

func (*SImage) GetGlobalId

func (self *SImage) GetGlobalId() string

func (*SImage) GetIStoragecache

func (self *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache

func (*SImage) GetId

func (self *SImage) GetId() string

func (*SImage) GetImageFormat

func (self *SImage) GetImageFormat() string

func (*SImage) GetImageStatus

func (self *SImage) GetImageStatus() string

func (*SImage) GetImageType

func (self *SImage) GetImageType() cloudprovider.TImageType

func (*SImage) GetMinOsDiskSizeGb

func (self *SImage) GetMinOsDiskSizeGb() int

func (*SImage) GetMinRamSizeMb

func (self *SImage) GetMinRamSizeMb() int

func (*SImage) GetName

func (self *SImage) GetName() string

func (*SImage) GetOsArch

func (self *SImage) GetOsArch() string

func (*SImage) GetOsDist

func (self *SImage) GetOsDist() string

func (*SImage) GetOsLang

func (img *SImage) GetOsLang() string

func (*SImage) GetOsType

func (self *SImage) GetOsType() cloudprovider.TOsType

func (*SImage) GetOsVersion

func (self *SImage) GetOsVersion() string

func (*SImage) GetSizeByte

func (self *SImage) GetSizeByte() int64

func (*SImage) GetStatus

func (self *SImage) GetStatus() string

func (*SImage) Refresh

func (self *SImage) Refresh() error

type SInstance

type SInstance struct {
	multicloud.SInstanceBase
	SOracleTag

	AvailabilityDomain string
	CompartmentId      string
	DefinedTags        struct {
		OracleTags struct {
			CreatedBy string
			CreatedOn time.Time
		}
	}
	DisplayName      string
	ExtendedMetadata struct {
	}
	FaultDomain  string
	FreeformTags struct {
	}
	Id            string
	ImageId       string
	LaunchMode    string
	LaunchOptions struct {
		BootVolumeType                  string
		Firmware                        string
		NetworkType                     string
		RemoteDataVolumeType            string
		IsPvEncryptionInTransitEnabled  bool
		IsConsistentVolumeNamingEnabled bool
	}
	InstanceOptions struct {
		AreLegacyImdsEndpointsDisabled bool
	}
	AvailabilityConfig struct {
		IsLiveMigrationPreferred bool
		RecoveryAction           string
	}
	// CREATING_IMAGE, MOVING, PROVISIONING, RUNNING, STARTING, STOPPED, STOPPING, TERMINATED, TERMINATING
	LifecycleState string
	Metadata       struct {
	}
	Region      string
	Shape       string
	ShapeConfig struct {
		Ocpus                     float64
		MemoryInGBs               float64
		ProcessorDescription      string
		NetworkingBandwidthInGbps float64
		MaxVnicAttachments        int
		Gpus                      int
		LocalDisks                int
		Vcpus                     int
	}
	IsCrossNumaNode bool
	SourceDetails   struct {
		SourceType string
		ImageId    string
	}
	SystemTags struct {
	}
	TimeCreated time.Time
	AgentConfig struct {
		IsMonitoringDisabled  bool
		IsManagementDisabled  bool
		AreAllPluginsDisabled bool
		PluginsConfig         []struct {
			Name         string
			DesiredState string
		}
	}
	// contains filtered or unexported fields
}

func (*SInstance) AttachDisk

func (self *SInstance) AttachDisk(ctx context.Context, diskId string) error

func (*SInstance) ChangeConfig

func (self *SInstance) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedVMChangeConfig) error

func (*SInstance) DeleteVM

func (self *SInstance) DeleteVM(ctx context.Context) error

func (*SInstance) DeployVM

func (*SInstance) DetachDisk

func (self *SInstance) DetachDisk(ctx context.Context, diskId string) error

func (*SInstance) GetBillingType

func (self *SInstance) GetBillingType() string

func (*SInstance) GetBios

func (ins *SInstance) GetBios() cloudprovider.TBiosType

func (*SInstance) GetBootOrder

func (self *SInstance) GetBootOrder() string

func (*SInstance) GetCreatedAt

func (self *SInstance) GetCreatedAt() time.Time

func (*SInstance) GetError

func (self *SInstance) GetError() error

func (*SInstance) GetExpiredAt

func (self *SInstance) GetExpiredAt() time.Time

func (*SInstance) GetFullOsName

func (ins *SInstance) GetFullOsName() string

func (*SInstance) GetGlobalId

func (self *SInstance) GetGlobalId() string

func (*SInstance) GetHostname

func (self *SInstance) GetHostname() string

func (*SInstance) GetHypervisor

func (self *SInstance) GetHypervisor() string

func (*SInstance) GetIDisks

func (self *SInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error)

func (*SInstance) GetIEIP

func (self *SInstance) GetIEIP() (cloudprovider.ICloudEIP, error)

func (*SInstance) GetIHost

func (self *SInstance) GetIHost() cloudprovider.ICloudHost

func (*SInstance) GetINics

func (self *SInstance) GetINics() ([]cloudprovider.ICloudNic, error)

func (*SInstance) GetId

func (self *SInstance) GetId() string

func (*SInstance) GetInstanceType

func (self *SInstance) GetInstanceType() string

func (*SInstance) GetMachine

func (self *SInstance) GetMachine() string

func (*SInstance) GetName

func (self *SInstance) GetName() string

func (*SInstance) GetOsArch

func (ins *SInstance) GetOsArch() string

func (*SInstance) GetOsDist

func (ins *SInstance) GetOsDist() string

func (*SInstance) GetOsLang

func (ins *SInstance) GetOsLang() string

func (*SInstance) GetOsType

func (ins *SInstance) GetOsType() cloudprovider.TOsType

func (*SInstance) GetOsVersion

func (ins *SInstance) GetOsVersion() string

func (*SInstance) GetProjectId

func (self *SInstance) GetProjectId() string

func (*SInstance) GetSecurityGroupIds

func (self *SInstance) GetSecurityGroupIds() ([]string, error)

func (*SInstance) GetStatus

func (self *SInstance) GetStatus() string

func (*SInstance) GetVNCInfo

func (*SInstance) GetVcpuCount

func (self *SInstance) GetVcpuCount() int

func (*SInstance) GetVdi

func (self *SInstance) GetVdi() string

func (*SInstance) GetVga

func (self *SInstance) GetVga() string

func (*SInstance) GetVmemSizeMB

func (self *SInstance) GetVmemSizeMB() int

func (*SInstance) RebuildRoot

func (*SInstance) Refresh

func (self *SInstance) Refresh() error

func (*SInstance) Renew

func (self *SInstance) Renew(bc billing.SBillingCycle) error

func (*SInstance) SaveImage

func (*SInstance) SetSecurityGroups

func (self *SInstance) SetSecurityGroups(secgroupIds []string) error

func (*SInstance) StartVM

func (self *SInstance) StartVM(ctx context.Context) error

func (*SInstance) StopVM

func (self *SInstance) StopVM(ctx context.Context, opts *cloudprovider.ServerStopOptions) error

func (*SInstance) UpdateUserData

func (self *SInstance) UpdateUserData(userData string) error

func (*SInstance) UpdateVM

type SInstanceNic

type SInstanceNic struct {
	Id         string
	SubnetId   string `json:"subnet-id"`
	MacAddress string `json:"mac-address"`
	PrivateIp  string `json:"private-ip"`
	PublicIp   string `json:"public-ip"`

	cloudprovider.DummyICloudNic
	// contains filtered or unexported fields
}

func (*SInstanceNic) GetDriver

func (self *SInstanceNic) GetDriver() string

func (*SInstanceNic) GetINetworkId

func (self *SInstanceNic) GetINetworkId() string

func (*SInstanceNic) GetIP

func (self *SInstanceNic) GetIP() string

func (*SInstanceNic) GetId

func (self *SInstanceNic) GetId() string

func (*SInstanceNic) GetMAC

func (self *SInstanceNic) GetMAC() string

func (*SInstanceNic) InClassicNetwork

func (self *SInstanceNic) InClassicNetwork() bool

type SNetwork

type SNetwork struct {
	multicloud.SResourceBase
	SOracleTag

	AvailabilityDomain string
	Id                 string
	CidrBlock          string
	DisplayName        string
	DnsLabel           string
	LifecycleState     string
	SecurityListIds    []string
	SubnetDomainName   string
	TimeCreated        time.Time
	VcnId              string
	VirtualRouterIp    string
	VirtualRouterMac   string
	// contains filtered or unexported fields
}

func (*SNetwork) Delete

func (self *SNetwork) Delete() error

func (*SNetwork) GetAllocTimeoutSeconds

func (self *SNetwork) GetAllocTimeoutSeconds() int

func (*SNetwork) GetGateway

func (self *SNetwork) GetGateway() string

func (*SNetwork) GetGlobalId

func (self *SNetwork) GetGlobalId() string

func (*SNetwork) GetIWire

func (self *SNetwork) GetIWire() cloudprovider.ICloudWire

func (*SNetwork) GetId

func (self *SNetwork) GetId() string

func (*SNetwork) GetIpEnd

func (self *SNetwork) GetIpEnd() string

func (*SNetwork) GetIpMask

func (self *SNetwork) GetIpMask() int8

func (*SNetwork) GetIpStart

func (self *SNetwork) GetIpStart() string

func (*SNetwork) GetIsPublic

func (self *SNetwork) GetIsPublic() bool

func (*SNetwork) GetName

func (self *SNetwork) GetName() string

func (*SNetwork) GetProjectId

func (self *SNetwork) GetProjectId() string

func (*SNetwork) GetPublicScope

func (self *SNetwork) GetPublicScope() rbacscope.TRbacScope

func (*SNetwork) GetServerType

func (self *SNetwork) GetServerType() string

func (*SNetwork) GetStatus

func (self *SNetwork) GetStatus() string

func (*SNetwork) Refresh

func (self *SNetwork) Refresh() error

type SOracleClient

type SOracleClient struct {
	*OracleClientConfig
	// contains filtered or unexported fields
}

func NewOracleClient

func NewOracleClient(cfg *OracleClientConfig) (*SOracleClient, error)

func (*SOracleClient) Do

func (self *SOracleClient) Do(req *http.Request) (*http.Response, error)

func (*SOracleClient) GetAccountId

func (self *SOracleClient) GetAccountId() string

func (*SOracleClient) GetCapabilities

func (self *SOracleClient) GetCapabilities() []string

func (*SOracleClient) GetCompartments

func (self *SOracleClient) GetCompartments() ([]Compartment, error)

func (*SOracleClient) GetRegion

func (self *SOracleClient) GetRegion(id string) (*SRegion, error)

func (*SOracleClient) GetRegions

func (self *SOracleClient) GetRegions() ([]SRegion, error)

func (*SOracleClient) GetSubAccounts

func (self *SOracleClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)

func (*SOracleClient) KeyFingerprint

func (self *SOracleClient) KeyFingerprint() (string, error)

func (*SOracleClient) KeyID

func (self *SOracleClient) KeyID() (string, error)

func (*SOracleClient) PrivateRSAKey

func (self *SOracleClient) PrivateRSAKey() (*rsa.PrivateKey, error)

func (*SOracleClient) Region

func (self *SOracleClient) Region() (string, error)

func (*SOracleClient) TenancyOCID

func (self *SOracleClient) TenancyOCID() (string, error)

func (*SOracleClient) UserOCID

func (self *SOracleClient) UserOCID() (string, error)

type SOracleTag

type SOracleTag struct {
}

func (SOracleTag) GetSysTags

func (self SOracleTag) GetSysTags() map[string]string

func (SOracleTag) GetTags

func (self SOracleTag) GetTags() (map[string]string, error)

func (SOracleTag) SetTags

func (self SOracleTag) SetTags(tags map[string]string, replace bool) error

type SRegion

type SRegion struct {
	multicloud.SRegion
	multicloud.SNoObjectStorageRegion
	multicloud.SNoLbRegion

	IsHomeRegion bool   `json:"is-home-region"`
	RegionKey    string `json:"region-key"`
	RegionName   string `json:"region-name"`
	Status       string `json:"status"`
	// contains filtered or unexported fields
}

func (*SRegion) CreateEIP

func (self *SRegion) CreateEIP(opts *cloudprovider.SEip) (cloudprovider.ICloudEIP, error)

func (*SRegion) CreateISecurityGroup

func (*SRegion) CreateIVpc

func (*SRegion) DeleteDisk

func (self *SRegion) DeleteDisk(diskId string) error

func (*SRegion) DeleteNetwork

func (self *SRegion) DeleteNetwork(networkId string) error

func (*SRegion) GetAttachedDisks

func (self *SRegion) GetAttachedDisks(instanceId string) ([]SVolumeAttachment, error)

func (*SRegion) GetBootDisk

func (self *SRegion) GetBootDisk(id string) (*SBootDisk, error)

func (*SRegion) GetBootDisks

func (self *SRegion) GetBootDisks(zoneId string) ([]SBootDisk, error)

func (*SRegion) GetBootVolumeAttachments

func (self *SRegion) GetBootVolumeAttachments(zoneId, instanceId string) ([]SBootVolumeAttachment, error)

func (*SRegion) GetCapabilities

func (region *SRegion) GetCapabilities() []string

func (*SRegion) GetClient

func (self *SRegion) GetClient() *SOracleClient

func (*SRegion) GetCloudEnv

func (self *SRegion) GetCloudEnv() string

func (*SRegion) GetDisk

func (self *SRegion) GetDisk(id string) (*SDisk, error)

func (*SRegion) GetDisks

func (self *SRegion) GetDisks(zoneId string) ([]SDisk, error)

func (*SRegion) GetEip

func (self *SRegion) GetEip(id string) (*SEipAddress, error)

func (*SRegion) GetEips

func (self *SRegion) GetEips(lifetime string) ([]SEipAddress, error)

func (*SRegion) GetGeographicInfo

func (self *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo

func (*SRegion) GetGlobalId

func (self *SRegion) GetGlobalId() string

func (*SRegion) GetI18n

func (self *SRegion) GetI18n() cloudprovider.SModelI18nTable

func (*SRegion) GetIEipById

func (self *SRegion) GetIEipById(id string) (cloudprovider.ICloudEIP, error)

func (*SRegion) GetIEips

func (self *SRegion) GetIEips() ([]cloudprovider.ICloudEIP, error)

func (*SRegion) GetIHostById

func (self *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, error)

func (*SRegion) GetIHosts

func (self *SRegion) GetIHosts() ([]cloudprovider.ICloudHost, error)

func (*SRegion) GetISecurityGroupById

func (region *SRegion) GetISecurityGroupById(secgroupId string) (cloudprovider.ICloudSecurityGroup, error)

func (*SRegion) GetIStorageById

func (self *SRegion) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)

func (*SRegion) GetIStoragecacheById

func (self *SRegion) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error)

func (*SRegion) GetIStoragecaches

func (self *SRegion) GetIStoragecaches() ([]cloudprovider.ICloudStoragecache, error)

func (*SRegion) GetIStorages

func (self *SRegion) GetIStorages() ([]cloudprovider.ICloudStorage, error)

func (*SRegion) GetIVpcById

func (self *SRegion) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)

func (*SRegion) GetIVpcs

func (self *SRegion) GetIVpcs() ([]cloudprovider.ICloudVpc, error)

func (*SRegion) GetIZoneById

func (self *SRegion) GetIZoneById(id string) (cloudprovider.ICloudZone, error)

func (*SRegion) GetIZones

func (self *SRegion) GetIZones() ([]cloudprovider.ICloudZone, error)

func (*SRegion) GetId

func (self *SRegion) GetId() string

func (*SRegion) GetImage

func (self *SRegion) GetImage(id string) (*SImage, error)

func (*SRegion) GetImages

func (self *SRegion) GetImages() ([]SImage, error)

func (*SRegion) GetInstance

func (self *SRegion) GetInstance(id string) (*SInstance, error)

func (*SRegion) GetInstanceNic

func (self *SRegion) GetInstanceNic(id string) (*SInstanceNic, error)

func (*SRegion) GetInstances

func (self *SRegion) GetInstances(zoneId string) ([]SInstance, error)

func (*SRegion) GetName

func (self *SRegion) GetName() string

func (*SRegion) GetNetwork

func (self *SRegion) GetNetwork(id string) (*SNetwork, error)

func (*SRegion) GetNetworks

func (self *SRegion) GetNetworks(vpcId string) ([]SNetwork, error)

func (*SRegion) GetProvider

func (self *SRegion) GetProvider() string

func (*SRegion) GetSecurityGroup

func (self *SRegion) GetSecurityGroup(id string) (*SSecurityGroup, error)

func (*SRegion) GetSecurityGroups

func (self *SRegion) GetSecurityGroups(vpcId string) ([]SSecurityGroup, error)

func (*SRegion) GetStatus

func (self *SRegion) GetStatus() string

func (*SRegion) GetStoragecache

func (self *SRegion) GetStoragecache() *SStoragecache

func (*SRegion) GetVnicAttachments

func (self *SRegion) GetVnicAttachments(instanceId string) ([]SVnicAttachment, error)

func (*SRegion) GetVpc

func (self *SRegion) GetVpc(id string) (*SVpc, error)

func (*SRegion) GetVpcs

func (self *SRegion) GetVpcs() ([]SVpc, error)

func (*SRegion) GetZones

func (self *SRegion) GetZones() ([]SZone, error)

func (*SRegion) ResizeDisk

func (self *SRegion) ResizeDisk(ctx context.Context, diskId string, sizeGb int64) error

type SSecurityGroup

type SSecurityGroup struct {
	multicloud.SSecurityGroup
	SOracleTag

	Id                   string
	IngressSecurityRules []SSecurityGroupRule `json:"ingress-security-rules"`
	EgressSecurityRules  []SSecurityGroupRule `json:"egress-security-rules"`
	LifecycleState       string               `json:"lifecycle-state"`
	VcnId                string               `json:"vcn-id"`
	DisplayName          string               `json:"display-name"`
	// contains filtered or unexported fields
}

func (*SSecurityGroup) Delete

func (self *SSecurityGroup) Delete() error

func (*SSecurityGroup) GetDescription

func (self *SSecurityGroup) GetDescription() string

func (*SSecurityGroup) GetGlobalId

func (self *SSecurityGroup) GetGlobalId() string

func (*SSecurityGroup) GetId

func (self *SSecurityGroup) GetId() string

func (*SSecurityGroup) GetName

func (self *SSecurityGroup) GetName() string

func (*SSecurityGroup) GetProjectId

func (self *SSecurityGroup) GetProjectId() string

func (*SSecurityGroup) GetReferences

func (self *SSecurityGroup) GetReferences() ([]cloudprovider.SecurityGroupReference, error)

func (*SSecurityGroup) GetRules

func (self *SSecurityGroup) GetRules() ([]cloudprovider.ISecurityGroupRule, error)

func (*SSecurityGroup) GetStatus

func (self *SSecurityGroup) GetStatus() string

func (*SSecurityGroup) GetVpcId

func (self *SSecurityGroup) GetVpcId() string

func (*SSecurityGroup) Refresh

func (self *SSecurityGroup) Refresh() error

type SSecurityGroupRule

type SSecurityGroupRule struct {
	Description     string
	Destination     string
	DestinationType string `json:"destination-type"`
	Protocol        string
	TcpOptions      string `json:"tcp-options"`
	UdpOptions      string `json:"udp-options"`
}

type SStorage

type SStorage struct {
	multicloud.SStorageBase
	// contains filtered or unexported fields
}

func (*SStorage) CreateIDisk

func (*SStorage) GetCapacityMB

func (self *SStorage) GetCapacityMB() int64

func (*SStorage) GetCapacityUsedMB

func (self *SStorage) GetCapacityUsedMB() int64

func (*SStorage) GetEnabled

func (self *SStorage) GetEnabled() bool

func (*SStorage) GetGlobalId

func (self *SStorage) GetGlobalId() string

func (*SStorage) GetIDiskById

func (self *SStorage) GetIDiskById(id string) (cloudprovider.ICloudDisk, error)

func (*SStorage) GetIDisks

func (self *SStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error)

func (*SStorage) GetIStoragecache

func (self *SStorage) GetIStoragecache() cloudprovider.ICloudStoragecache

func (*SStorage) GetIZone

func (self *SStorage) GetIZone() cloudprovider.ICloudZone

func (*SStorage) GetId

func (self *SStorage) GetId() string

func (*SStorage) GetMediumType

func (self *SStorage) GetMediumType() string

func (*SStorage) GetMountPoint

func (self *SStorage) GetMountPoint() string

func (*SStorage) GetName

func (self *SStorage) GetName() string

func (*SStorage) GetStatus

func (self *SStorage) GetStatus() string

func (*SStorage) GetStorageConf

func (self *SStorage) GetStorageConf() jsonutils.JSONObject

func (*SStorage) GetStorageType

func (self *SStorage) GetStorageType() string

func (*SStorage) IsSysDiskStore

func (self *SStorage) IsSysDiskStore() bool

type SStoragecache

type SStoragecache struct {
	multicloud.SResourceBase
	multicloud.STagBase
	// contains filtered or unexported fields
}

func (*SStoragecache) GetGlobalId

func (self *SStoragecache) GetGlobalId() string

func (*SStoragecache) GetICloudImages

func (self *SStoragecache) GetICloudImages() ([]cloudprovider.ICloudImage, error)

func (*SStoragecache) GetICustomizedCloudImages

func (self *SStoragecache) GetICustomizedCloudImages() ([]cloudprovider.ICloudImage, error)

func (*SStoragecache) GetIImageById

func (self *SStoragecache) GetIImageById(extId string) (cloudprovider.ICloudImage, error)

func (*SStoragecache) GetId

func (self *SStoragecache) GetId() string

func (*SStoragecache) GetName

func (self *SStoragecache) GetName() string

func (*SStoragecache) GetPath

func (self *SStoragecache) GetPath() string

func (*SStoragecache) GetStatus

func (self *SStoragecache) GetStatus() string

func (*SStoragecache) IsEmulated

func (self *SStoragecache) IsEmulated() bool

func (*SStoragecache) UploadImage

func (self *SStoragecache) UploadImage(ctx context.Context, image *cloudprovider.SImageCreateOption, callback func(progress float32)) (string, error)

type SVnicAttachment

type SVnicAttachment struct {
	VnicId string `json:"vnic-id"`
}

type SVolumeAttachment

type SVolumeAttachment struct {
	VolumeId string `json:"volume-id"`
}

type SVpc

type SVpc struct {
	multicloud.SVpc
	SOracleTag

	Id             string
	CidrBlock      string    `json:"cidr-block"`
	TimeCreated    time.Time `json:"time-created"`
	DisplayName    string    `json:"display-name"`
	DnsLabel       string    `json:"dns-label"`
	LifecycleState string    `json:"lifecycle-state"`
	// contains filtered or unexported fields
}

func (*SVpc) Delete

func (self *SVpc) Delete() error

func (*SVpc) GetCidrBlock

func (self *SVpc) GetCidrBlock() string

func (*SVpc) GetGlobalId

func (self *SVpc) GetGlobalId() string

func (*SVpc) GetINatGateways

func (self *SVpc) GetINatGateways() ([]cloudprovider.ICloudNatGateway, error)

func (*SVpc) GetIRouteTableById

func (self *SVpc) GetIRouteTableById(routeTableId string) (cloudprovider.ICloudRouteTable, error)

func (*SVpc) GetIRouteTables

func (self *SVpc) GetIRouteTables() ([]cloudprovider.ICloudRouteTable, error)

func (*SVpc) GetISecurityGroups

func (self *SVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)

func (*SVpc) GetIWireById

func (self *SVpc) GetIWireById(id string) (cloudprovider.ICloudWire, error)

func (*SVpc) GetIWires

func (self *SVpc) GetIWires() ([]cloudprovider.ICloudWire, error)

func (*SVpc) GetId

func (self *SVpc) GetId() string

func (*SVpc) GetIsDefault

func (self *SVpc) GetIsDefault() bool

func (*SVpc) GetName

func (self *SVpc) GetName() string

func (*SVpc) GetRegion

func (self *SVpc) GetRegion() cloudprovider.ICloudRegion

func (*SVpc) GetStatus

func (self *SVpc) GetStatus() string

func (*SVpc) Refresh

func (self *SVpc) Refresh() error

type SWire

type SWire struct {
	multicloud.SResourceBase
	SOracleTag
	// contains filtered or unexported fields
}

func (*SWire) CreateINetwork

func (*SWire) GetBandwidth

func (self *SWire) GetBandwidth() int

func (*SWire) GetGlobalId

func (self *SWire) GetGlobalId() string

func (*SWire) GetINetworkById

func (self *SWire) GetINetworkById(id string) (cloudprovider.ICloudNetwork, error)

func (*SWire) GetINetworks

func (self *SWire) GetINetworks() ([]cloudprovider.ICloudNetwork, error)

func (*SWire) GetIVpc

func (self *SWire) GetIVpc() cloudprovider.ICloudVpc

func (*SWire) GetIZone

func (self *SWire) GetIZone() cloudprovider.ICloudZone

func (*SWire) GetId

func (self *SWire) GetId() string

func (*SWire) GetName

func (self *SWire) GetName() string

func (*SWire) GetStatus

func (self *SWire) GetStatus() string

func (*SWire) IsEmulated

func (self *SWire) IsEmulated() bool

func (*SWire) Refresh

func (self *SWire) Refresh() error

type SZone

type SZone struct {
	multicloud.SResourceBase
	multicloud.STagBase

	Id   string
	Name string
	// contains filtered or unexported fields
}

func (*SZone) GetGlobalId

func (self *SZone) GetGlobalId() string

func (*SZone) GetI18n

func (self *SZone) GetI18n() cloudprovider.SModelI18nTable

func (*SZone) GetIHostById

func (self *SZone) GetIHostById(id string) (cloudprovider.ICloudHost, error)

func (*SZone) GetIHosts

func (self *SZone) GetIHosts() ([]cloudprovider.ICloudHost, error)

func (*SZone) GetIRegion

func (self *SZone) GetIRegion() cloudprovider.ICloudRegion

func (*SZone) GetIStorageById

func (self *SZone) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)

func (*SZone) GetIStorages

func (self *SZone) GetIStorages() ([]cloudprovider.ICloudStorage, error)

func (*SZone) GetId

func (self *SZone) GetId() string

func (*SZone) GetName

func (self *SZone) GetName() string

func (*SZone) GetStatus

func (self *SZone) GetStatus() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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