Documentation ¶
Index ¶
- Constants
- Variables
- type Abort
- type AccessConfig
- type Backend
- type BindingCondition
- type ConnectionDraining
- type ConsistentHash
- type CorsPolicy
- type Delay
- type FaultInjectionPolicy
- type GCSAcl
- type GoogleClientConfig
- type GoogleSQLType
- type GoogleSQLVersion
- type GoogleTags
- type GuestOsFeature
- type HTTPCookie
- type HTTPHealthCheck
- type Header
- type HeaderAction
- type HeaderMatch
- type HeadersToAdd
- type HealthChecks
- type HostRule
- type InstanceDisk
- type LogConfig
- type MatchRule
- type MaxStreamDuration
- type MetadataFilter
- type MetricData
- type MetricDataValue
- type NamedPort
- type OperationError
- type PathMatcher
- type PathRule
- type QueryParameterMatch
- type RangeMatch
- type RequestMirrorPolicy
- type RetryPolicy
- type RouteAction
- type RouteRule
- type SAddress
- func (addr *SAddress) Associate(conf *cloudprovider.AssociateConfig) error
- func (addr *SAddress) ChangeBandwidth(bw int) error
- func (addr *SAddress) Delete() error
- func (addr *SAddress) Dissociate() error
- func (addr *SAddress) GetAssociationExternalId() string
- func (addr *SAddress) GetAssociationType() string
- func (addr *SAddress) GetBandwidth() int
- func (addr *SAddress) GetBillingType() string
- func (addr *SAddress) GetCreatedAt() time.Time
- func (addr *SAddress) GetExpiredAt() time.Time
- func (addr *SAddress) GetINetworkId() string
- func (addr *SAddress) GetInternetChargeType() string
- func (addr *SAddress) GetIpAddr() string
- func (addr *SAddress) GetMode() string
- func (addr *SAddress) GetProjectId() string
- func (addr *SAddress) GetStatus() string
- func (addr *SAddress) IsEmulated() bool
- func (self *SAddress) Refresh() error
- type SAuthorizedNetwork
- type SBackendServices
- type SBigQueryField
- type SBigQueryJobReference
- type SBigQueryResult
- type SBigQuerySchema
- type SBinding
- type SBucket
- func (b *SBucket) AbortMultipartUpload(ctx context.Context, key string, uploadId string) error
- func (b *SBucket) CompleteMultipartUpload(ctx context.Context, key string, uploadId string, partEtags []string) error
- func (b *SBucket) CopyObject(ctx context.Context, destKey string, srcBucket, srcKey string, ...) error
- func (b *SBucket) CopyPart(ctx context.Context, key string, uploadId string, partNumber int, ...) (string, error)
- func (b *SBucket) DeleteObject(ctx context.Context, key string) error
- func (b *SBucket) GetAccessUrls() []cloudprovider.SBucketAccessUrl
- func (b *SBucket) GetAcl() cloudprovider.TBucketACLType
- func (b *SBucket) GetCreatedAt() time.Time
- func (b *SBucket) GetGlobalId() string
- func (b *SBucket) GetIRegion() cloudprovider.ICloudRegion
- func (b *SBucket) GetLocation() string
- func (b *SBucket) GetName() string
- func (b *SBucket) GetObject(ctx context.Context, key string, rangeOpt *cloudprovider.SGetObjectRange) (io.ReadCloser, error)
- func (b *SBucket) GetProjectId() string
- func (b *SBucket) GetStats() cloudprovider.SBucketStats
- func (b *SBucket) GetStorageClass() string
- func (b *SBucket) GetTempUrl(method string, key string, expire time.Duration) (string, error)
- func (b *SBucket) ListObjects(prefix string, marker string, delimiter string, maxCount int) (cloudprovider.SListObjectResult, error)
- func (b *SBucket) NewMultipartUpload(ctx context.Context, key string, cannedAcl cloudprovider.TBucketACLType, ...) (string, error)
- func (b *SBucket) PutObject(ctx context.Context, key string, body io.Reader, sizeBytes int64, ...) error
- func (b *SBucket) SetAcl(acl cloudprovider.TBucketACLType) error
- func (b *SBucket) UploadPart(ctx context.Context, key string, uploadId string, partIndex int, ...) (string, error)
- type SBucketBinding
- type SBucketIam
- type SBucketObjects
- type SBucketPolicyOnly
- type SCloudbuildBuild
- type SCloudbuildMetadata
- type SCloudbuildOperation
- type SClouduser
- func (user *SClouduser) AttachCustomPolicy(role string) error
- func (user *SClouduser) AttachSystemPolicy(role string) error
- func (user *SClouduser) Delete() error
- func (user *SClouduser) DetachCustomPolicy(role string) error
- func (user *SClouduser) DetachSystemPolicy(role string) error
- func (self *SClouduser) GetEmailAddr() string
- func (user *SClouduser) GetGlobalId() string
- func (user *SClouduser) GetICloudgroups() ([]cloudprovider.ICloudgroup, error)
- func (user *SClouduser) GetICustomCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
- func (user *SClouduser) GetISystemCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
- func (self *SClouduser) GetInviteUrl() string
- func (user *SClouduser) GetName() string
- func (user *SClouduser) IsConsoleLogin() bool
- func (user *SClouduser) ResetPassword(password string) error
- type SDBInstance
- func (rds *SDBInstance) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedDBInstanceChangeConfig) error
- func (rds *SDBInstance) ClosePublicConnection() error
- func (rds *SDBInstance) CreateAccount(conf *cloudprovider.SDBInstanceAccountCreateConfig) error
- func (rds *SDBInstance) CreateDatabase(conf *cloudprovider.SDBInstanceDatabaseCreateConfig) error
- func (rds *SDBInstance) CreateIBackup(conf *cloudprovider.SDBInstanceBackupCreateConfig) (string, error)
- func (rds *SDBInstance) Delete() error
- func (rds *SDBInstance) GetBillingType() string
- func (rds *SDBInstance) GetCategory() string
- func (rds *SDBInstance) GetConnectionStr() string
- func (rds *SDBInstance) GetCreatedAt() time.Time
- func (rds *SDBInstance) GetDBNetwork() (*cloudprovider.SDBInstanceNetwork, error)
- func (rds *SDBInstance) GetDiskSizeGB() int
- func (rds *SDBInstance) GetEngine() string
- func (rds *SDBInstance) GetEngineVersion() string
- func (rds *SDBInstance) GetExpiredAt() time.Time
- func (rds *SDBInstance) GetGlobalId() string
- func (rds *SDBInstance) GetIDBInstanceAccounts() ([]cloudprovider.ICloudDBInstanceAccount, error)
- func (rds *SDBInstance) GetIDBInstanceBackups() ([]cloudprovider.ICloudDBInstanceBackup, error)
- func (rds *SDBInstance) GetIDBInstanceDatabases() ([]cloudprovider.ICloudDBInstanceDatabase, error)
- func (rds *SDBInstance) GetIDBInstanceParameters() ([]cloudprovider.ICloudDBInstanceParameter, error)
- func (rds *SDBInstance) GetIVpcId() string
- func (rds *SDBInstance) GetId() string
- func (rds *SDBInstance) GetInstanceType() string
- func (rds *SDBInstance) GetInternalConnectionStr() string
- func (rds *SDBInstance) GetMaintainTime() string
- func (rds *SDBInstance) GetMasterInstanceId() string
- func (rds *SDBInstance) GetName() string
- func (rds *SDBInstance) GetPort() int
- func (rds *SDBInstance) GetProjectId() string
- func (rds *SDBInstance) GetSecurityGroupId() string
- func (rds *SDBInstance) GetStatus() string
- func (rds *SDBInstance) GetStorageType() string
- func (self *SDBInstance) GetSysTags() map[string]string
- func (self *SDBInstance) GetTags() (map[string]string, error)
- func (rds *SDBInstance) GetVcpuCount() int
- func (rds *SDBInstance) GetVmemSizeMB() int
- func (rds *SDBInstance) GetZone1Id() string
- func (rds *SDBInstance) GetZone2Id() string
- func (rds *SDBInstance) GetZone3Id() string
- func (rds *SDBInstance) IsEmulated() bool
- func (rds *SDBInstance) OpenPublicConnection() error
- func (rds *SDBInstance) Reboot() error
- func (rds *SDBInstance) RecoveryFromBackup(conf *cloudprovider.SDBInstanceRecoveryConfig) error
- func (rds *SDBInstance) Refresh() error
- func (rds *SDBInstance) Renew(bc billing.SBillingCycle) error
- func (self *SDBInstance) SetTags(tags map[string]string, replace bool) error
- type SDBInstanceAccount
- func (account *SDBInstanceAccount) Delete() error
- func (account *SDBInstanceAccount) GetHost() string
- func (account *SDBInstanceAccount) GetIDBInstanceAccountPrivileges() ([]cloudprovider.ICloudDBInstanceAccountPrivilege, error)
- func (account *SDBInstanceAccount) GetName() string
- func (account *SDBInstanceAccount) GrantPrivilege(database, privilege string) error
- func (account *SDBInstanceAccount) Refresh() error
- func (account *SDBInstanceAccount) ResetPassword(password string) error
- func (account *SDBInstanceAccount) RevokePrivilege(database string) error
- type SDBInstanceBackup
- func (backup *SDBInstanceBackup) Delete() error
- func (backup *SDBInstanceBackup) GetBackupMode() string
- func (backup *SDBInstanceBackup) GetBackupSizeMb() int
- func (backup *SDBInstanceBackup) GetDBInstanceId() string
- func (backup *SDBInstanceBackup) GetDBNames() string
- func (backup *SDBInstanceBackup) GetEndTime() time.Time
- func (backup *SDBInstanceBackup) GetEngine() string
- func (backup *SDBInstanceBackup) GetEngineVersion() string
- func (backup *SDBInstanceBackup) GetGlobalId() string
- func (backup *SDBInstanceBackup) GetId() string
- func (backup *SDBInstanceBackup) GetName() string
- func (backup *SDBInstanceBackup) GetProjectId() string
- func (backup *SDBInstanceBackup) GetStartTime() time.Time
- func (backup *SDBInstanceBackup) GetStatus() string
- func (backup *SDBInstanceBackup) IsEmulated() bool
- func (backup *SDBInstanceBackup) Refresh() error
- type SDBInstanceBackupConfiguration
- type SDBInstanceCaCert
- type SDBInstanceDatabase
- func (database *SDBInstanceDatabase) Delete() error
- func (database *SDBInstanceDatabase) GetCharacterSet() string
- func (database *SDBInstanceDatabase) GetGlobalId() string
- func (database *SDBInstanceDatabase) GetId() string
- func (database *SDBInstanceDatabase) GetName() string
- func (database *SDBInstanceDatabase) GetStatus() string
- func (database *SDBInstanceDatabase) IsEmulated() bool
- func (database *SDBInstanceDatabase) Refresh() error
- type SDBInstanceIpAddress
- type SDBInstanceLocationPreference
- type SDBInstanceMaintenanceWindow
- type SDBInstanceParameter
- type SDBInstanceSetting
- type SDBInstanceSettingIpConfiguration
- type SDailySchedule
- type SDayOfWeek
- type SDeprecated
- type SDisk
- func (disk *SDisk) CreateISnapshot(ctx context.Context, name string, desc string) (cloudprovider.ICloudSnapshot, error)
- func (disk *SDisk) Delete(ctx context.Context) error
- func (disk *SDisk) GetAccessPath() string
- func (disk *SDisk) GetBillingType() string
- func (disk *SDisk) GetCacheMode() string
- func (disk *SDisk) GetCreatedAt() time.Time
- func (disk *SDisk) GetDiskFormat() string
- func (disk *SDisk) GetDiskSizeMB() int
- func (disk *SDisk) GetDiskType() string
- func (disk *SDisk) GetDriver() string
- func (disk *SDisk) GetExpiredAt() time.Time
- func (disk *SDisk) GetExtSnapshotPolicyIds() ([]string, error)
- func (disk *SDisk) GetFsFormat() string
- func (disk *SDisk) GetISnapshot(id string) (cloudprovider.ICloudSnapshot, error)
- func (disk *SDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
- func (disk *SDisk) GetIStorage() (cloudprovider.ICloudStorage, error)
- func (disk *SDisk) GetIStorageId() string
- func (disk *SDisk) GetIops() int
- func (disk *SDisk) GetIsAutoDelete() bool
- func (disk *SDisk) GetIsNonPersistent() bool
- func (disk *SDisk) GetMountpoint() string
- func (disk *SDisk) GetProjectId() string
- func (disk *SDisk) GetStatus() string
- func (disk *SDisk) GetTemplateId() string
- func (disk *SDisk) IsEmulated() bool
- func (disk *SDisk) Rebuild(ctx context.Context) error
- func (disk *SDisk) Refresh() error
- func (disk *SDisk) Reset(ctx context.Context, snapshotId string) (string, error)
- func (disk *SDisk) Resize(ctx context.Context, newSizeMB int64) error
- type SFirewall
- type SFirewallAction
- type SForwardingRule
- type SGlobalNetwork
- type SGoogleClient
- func (self *SGoogleClient) CreateGlobalNetwork(name string, desc string) (*SGlobalNetwork, error)
- func (self *SGoogleClient) CreateICloudGlobalVpc(opts *cloudprovider.GlobalVpcCreateOptions) (cloudprovider.ICloudGlobalVpc, error)
- func (self *SGoogleClient) CreateICloudpolicy(opts *cloudprovider.SCloudpolicyCreateOptions) (cloudprovider.ICloudpolicy, error)
- func (client *SGoogleClient) CreateIClouduser(conf *cloudprovider.SClouduserCreateConfig) (cloudprovider.IClouduser, error)
- func (self *SGoogleClient) CreateRole(permissions []string, name, desc string) (*SRole, error)
- func (self *SGoogleClient) CreateSecurityGroupRule(rule cloudprovider.SecurityRule, vpcId string, tag string, ...) error
- func (self *SGoogleClient) DeleteRole(id string) error
- func (self *SGoogleClient) DeleteSecgroupRule(rule cloudprovider.SecurityRule) error
- func (self *SGoogleClient) GetAccountId() string
- func (self *SGoogleClient) GetBySelfId(id string, retval interface{}) error
- func (self *SGoogleClient) GetCapabilities() []string
- func (self *SGoogleClient) GetEcsMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
- func (self *SGoogleClient) GetFirewall(id string) (*SFirewall, error)
- func (self *SGoogleClient) GetFirewalls(network string, maxResults int, pageToken string) ([]SFirewall, error)
- func (cli *SGoogleClient) GetGlobalNetwork(id string) (*SGlobalNetwork, error)
- func (cli *SGoogleClient) GetGlobalNetworks(maxResults int, pageToken string) ([]SGlobalNetwork, error)
- func (self *SGoogleClient) GetICloudGlobalVpcById(id string) (cloudprovider.ICloudGlobalVpc, error)
- func (self *SGoogleClient) GetICloudGlobalVpcs() ([]cloudprovider.ICloudGlobalVpc, error)
- func (client *SGoogleClient) GetIClouduserByName(name string) (cloudprovider.IClouduser, error)
- func (client *SGoogleClient) GetICloudusers() ([]cloudprovider.IClouduser, error)
- func (self *SGoogleClient) GetICustomCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
- func (self *SGoogleClient) GetIProjects() ([]cloudprovider.ICloudProject, error)
- func (self *SGoogleClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)
- func (self *SGoogleClient) GetIRegions() []cloudprovider.ICloudRegion
- func (self *SGoogleClient) GetISystemCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
- func (self *SGoogleClient) GetIamPolicy() (*SIamPolicy, error)
- func (self *SGoogleClient) GetMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
- func (self *SGoogleClient) GetMonitorData(metricName string, since time.Time, until time.Time) (*jsonutils.JSONArray, error)
- func (self *SGoogleClient) GetOperation(id string) (*SOperation, error)
- func (cli *SGoogleClient) GetProject(id string) (*SProject, error)
- func (cli *SGoogleClient) GetProjects() ([]SProject, error)
- func (self *SGoogleClient) GetRegion(regionId string) *SRegion
- func (self *SGoogleClient) GetRegions() []SRegion
- func (self *SGoogleClient) GetRole(roleId string) (*SRole, error)
- func (self *SGoogleClient) GetRoles(projectId string) ([]SRole, error)
- func (self *SGoogleClient) GetSamlSpInitiatedLoginUrl(idpName string) string
- func (client *SGoogleClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
- func (self *SGoogleClient) Insert(resource string, body jsonutils.JSONObject, retval interface{}) error
- func (self *SGoogleClient) IsSupportCloudId() bool
- func (self *SGoogleClient) ListOrganizations() ([]SOrganization, error)
- func (self *SGoogleClient) SetIamPlicy(policy *SIamPolicy) error
- func (self *SGoogleClient) TestIam(permissions []string) ([]string, error)
- func (self *SGoogleClient) UpdateRole(id string, permissions []string) error
- func (self *SGoogleClient) WaitOperation(id string, resource, action string) (string, error)
- type SHost
- func (host *SHost) CreateVM(desc *cloudprovider.SManagedVMCreateConfig) (cloudprovider.ICloudVM, error)
- func (host *SHost) GetAccessIp() string
- func (host *SHost) GetAccessMac() string
- func (host *SHost) GetCpuCount() int
- func (host *SHost) GetCpuDesc() string
- func (host *SHost) GetCpuMhz() int
- func (host *SHost) GetEnabled() bool
- func (host *SHost) GetGlobalId() string
- func (host *SHost) GetHostStatus() string
- func (host *SHost) GetHostType() string
- func (host *SHost) GetIHostNics() ([]cloudprovider.ICloudHostNetInterface, error)
- func (host *SHost) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
- func (host *SHost) GetIStorages() ([]cloudprovider.ICloudStorage, error)
- func (host *SHost) GetIVMById(id string) (cloudprovider.ICloudVM, error)
- func (host *SHost) GetIVMs() ([]cloudprovider.ICloudVM, error)
- func (host *SHost) GetIWires() ([]cloudprovider.ICloudWire, error)
- func (host *SHost) GetId() string
- func (host *SHost) GetIsMaintenance() bool
- func (host *SHost) GetMemSizeMB() int
- func (host *SHost) GetName() string
- func (host *SHost) GetNodeCount() int8
- func (host *SHost) GetSN() string
- func (host *SHost) GetStatus() string
- func (host *SHost) GetStorageSizeMB() int
- func (host *SHost) GetStorageType() string
- func (host *SHost) GetSysInfo() jsonutils.JSONObject
- func (host *SHost) GetVersion() string
- func (host *SHost) GetWire() *SWire
- func (host *SHost) IsEmulated() bool
- func (host *SHost) Refresh() error
- type SHourlySchedule
- type SIamConfiguration
- type SIamPolicy
- type SImage
- func (image *SImage) Delete(ctx context.Context) error
- func (image *SImage) GetBios() cloudprovider.TBiosType
- func (image *SImage) GetCreatedAt() time.Time
- func (image *SImage) GetFullOsName() string
- func (self *SImage) GetGlobalId() string
- func (image *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache
- func (self *SImage) GetId() string
- func (image *SImage) GetImageFormat() string
- func (image *SImage) GetImageStatus() string
- func (image *SImage) GetImageType() cloudprovider.TImageType
- func (image *SImage) GetMinOsDiskSizeGb() int
- func (image *SImage) GetMinRamSizeMb() int
- func (self *SImage) GetName() string
- func (image *SImage) GetOsArch() string
- func (image *SImage) GetOsDist() string
- func (image *SImage) GetOsLang() string
- func (image *SImage) GetOsType() cloudprovider.TOsType
- func (image *SImage) GetOsVersion() string
- func (image *SImage) GetSizeByte() int64
- func (image *SImage) GetStatus() string
- func (image *SImage) IsEmulated() bool
- func (image *SImage) Refresh() error
- type SInstance
- func (instance *SInstance) AssignSecurityGroup(id string) error
- func (instance *SInstance) AttachDisk(ctx context.Context, diskId string) error
- func (instance *SInstance) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedVMChangeConfig) error
- func (instance *SInstance) DeleteVM(ctx context.Context) error
- func (instance *SInstance) DeployVM(ctx context.Context, name string, username string, password string, ...) error
- func (instance *SInstance) DetachDisk(ctx context.Context, diskId string) error
- func (instance *SInstance) GetBillingType() string
- func (instance *SInstance) GetBios() cloudprovider.TBiosType
- func (instance *SInstance) GetBootOrder() string
- func (instance *SInstance) GetCreatedAt() time.Time
- func (instance *SInstance) GetError() error
- func (instance *SInstance) GetExpiredAt() time.Time
- func (instance *SInstance) GetFullOsName() string
- func (instance *SInstance) GetHostname() string
- func (instance *SInstance) GetHypervisor() string
- func (instance *SInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error)
- func (instance *SInstance) GetIEIP() (cloudprovider.ICloudEIP, error)
- func (instance *SInstance) GetIHost() cloudprovider.ICloudHost
- func (instance *SInstance) GetIHostId() string
- func (instance *SInstance) GetINics() ([]cloudprovider.ICloudNic, error)
- func (instance *SInstance) GetInstanceType() string
- func (instance *SInstance) GetMachine() string
- func (instance *SInstance) GetOsArch() string
- func (instance *SInstance) GetOsDist() string
- func (instance *SInstance) GetOsLang() string
- func (instance *SInstance) GetOsType() cloudprovider.TOsType
- func (instance *SInstance) GetOsVersion() string
- func (instance *SInstance) GetProjectId() string
- func (instance *SInstance) GetSecurityGroupIds() ([]string, error)
- func (instance *SInstance) GetSerialOutput(port int) (string, error)
- func (instance *SInstance) GetStatus() string
- func (instance *SInstance) GetVNCInfo(input *cloudprovider.ServerVncInput) (*cloudprovider.ServerVncOutput, error)
- func (instance *SInstance) GetVcpuCount() int
- func (instance *SInstance) GetVdi() string
- func (instance *SInstance) GetVga() string
- func (instance *SInstance) GetVmemSizeMB() int
- func (instance *SInstance) RebuildRoot(ctx context.Context, desc *cloudprovider.SManagedVMRebuildRootConfig) (string, error)
- func (self *SInstance) Refresh() error
- func (instance *SInstance) Renew(bc billing.SBillingCycle) error
- func (self *SInstance) SaveImage(opts *cloudprovider.SaveImageOptions) (cloudprovider.ICloudImage, error)
- func (instance *SInstance) SetSecurityGroups(ids []string) error
- func (self *SInstance) SetTags(tags map[string]string, replace bool) error
- func (instance *SInstance) StartVM(ctx context.Context) error
- func (instance *SInstance) StopVM(ctx context.Context, opts *cloudprovider.ServerStopOptions) error
- func (instance *SInstance) UpdateUserData(userData string) error
- func (instance *SInstance) UpdateVM(ctx context.Context, name string) error
- type SInstanceGroup
- type SInstanceGroupInstance
- type SInstanceTag
- type SLifecycle
- type SLifecycleRule
- type SLifecycleRuleAction
- type SLifecycleRuleCondition
- type SLoadBalancerBackendGroup
- func (self *SLoadBalancerBackendGroup) AddBackendServer(serverId string, weight int, port int) (cloudprovider.ICloudLoadbalancerBackend, error)
- func (self *SLoadBalancerBackendGroup) Delete(ctx context.Context) error
- func (self *SLoadBalancerBackendGroup) GetCreatedAt() time.Time
- func (self *SLoadBalancerBackendGroup) GetGlobalId() string
- func (self *SLoadBalancerBackendGroup) GetHealthCheck() (*cloudprovider.SLoadbalancerHealthCheck, error)
- func (self *SLoadBalancerBackendGroup) GetILoadbalancerBackendById(backendId string) (cloudprovider.ICloudLoadbalancerBackend, error)
- func (self *SLoadBalancerBackendGroup) GetILoadbalancerBackends() ([]cloudprovider.ICloudLoadbalancerBackend, error)
- func (self *SLoadBalancerBackendGroup) GetId() string
- func (self *SLoadBalancerBackendGroup) GetLoadbalancerBackends() ([]SLoadbalancerBackend, error)
- func (self *SLoadBalancerBackendGroup) GetLoadbalancerId() string
- func (self *SLoadBalancerBackendGroup) GetName() string
- func (self *SLoadBalancerBackendGroup) GetProjectId() string
- func (self *SLoadBalancerBackendGroup) GetProtocolType() string
- func (self *SLoadBalancerBackendGroup) GetScheduler() string
- func (self *SLoadBalancerBackendGroup) GetStatus() string
- func (self *SLoadBalancerBackendGroup) GetStickySession() (*cloudprovider.SLoadbalancerStickySession, error)
- func (self *SLoadBalancerBackendGroup) GetSysTags() map[string]string
- func (self *SLoadBalancerBackendGroup) GetTags() (map[string]string, error)
- func (self *SLoadBalancerBackendGroup) GetType() string
- func (self *SLoadBalancerBackendGroup) IsDefault() bool
- func (self *SLoadBalancerBackendGroup) IsEmulated() bool
- func (self *SLoadBalancerBackendGroup) Refresh() error
- func (self *SLoadBalancerBackendGroup) RemoveBackendServer(serverId string, weight int, port int) error
- func (self *SLoadBalancerBackendGroup) SetTags(tags map[string]string, replace bool) error
- func (self *SLoadBalancerBackendGroup) Sync(ctx context.Context, group *cloudprovider.SLoadbalancerBackendGroup) error
- type SLoadbalancer
- func (self *SLoadbalancer) CreateILoadBalancerBackendGroup(group *cloudprovider.SLoadbalancerBackendGroup) (cloudprovider.ICloudLoadbalancerBackendGroup, error)
- func (self *SLoadbalancer) CreateILoadBalancerListener(ctx context.Context, listener *cloudprovider.SLoadbalancerListener) (cloudprovider.ICloudLoadbalancerListener, error)
- func (self *SLoadbalancer) Delete(ctx context.Context) error
- func (self *SLoadbalancer) GetAddress() string
- func (self *SLoadbalancer) GetAddressType() string
- func (self *SLoadbalancer) GetBackendServices() ([]SBackendServices, error)
- func (self *SLoadbalancer) GetChargeType() string
- func (self *SLoadbalancer) GetCreatedAt() time.Time
- func (self *SLoadbalancer) GetEgressMbps() int
- func (self *SLoadbalancer) GetForwardingRules() ([]SForwardingRule, error)
- func (self *SLoadbalancer) GetHTTPLoadbalancerListeners() ([]SLoadbalancerListener, error)
- func (self *SLoadbalancer) GetHealthCheckMaps() (map[string]HealthChecks, error)
- func (self *SLoadbalancer) GetHealthChecks() ([]HealthChecks, error)
- func (self *SLoadbalancer) GetIEIP() (cloudprovider.ICloudEIP, error)
- func (self *SLoadbalancer) GetILoadBalancerBackendGroupById(groupId string) (cloudprovider.ICloudLoadbalancerBackendGroup, error)
- func (self *SLoadbalancer) GetILoadBalancerBackendGroups() ([]cloudprovider.ICloudLoadbalancerBackendGroup, error)
- func (self *SLoadbalancer) GetILoadBalancerListenerById(listenerId string) (cloudprovider.ICloudLoadbalancerListener, error)
- func (self *SLoadbalancer) GetILoadBalancerListeners() ([]cloudprovider.ICloudLoadbalancerListener, error)
- func (self *SLoadbalancer) GetInstanceGroups() ([]SInstanceGroup, error)
- func (self *SLoadbalancer) GetInstanceGroupsMap() (map[string]SInstanceGroup, error)
- func (self *SLoadbalancer) GetLoadbalancerBackendGroups() ([]SLoadBalancerBackendGroup, error)
- func (self *SLoadbalancer) GetLoadbalancerListeners() ([]SLoadbalancerListener, error)
- func (self *SLoadbalancer) GetLoadbalancerSpec() string
- func (self *SLoadbalancer) GetNetworkIds() []string
- func (self *SLoadbalancer) GetNetworkLoadbalancerListeners() ([]SLoadbalancerListener, error)
- func (self *SLoadbalancer) GetNetworkType() string
- func (self *SLoadbalancer) GetProjectId() string
- func (self *SLoadbalancer) GetStatus() string
- func (self *SLoadbalancer) GetSysTags() map[string]string
- func (self *SLoadbalancer) GetTags() (map[string]string, error)
- func (self *SLoadbalancer) GetTargetHttpProxies() ([]STargetHttpProxy, error)
- func (self *SLoadbalancer) GetTargetHttpsProxies() ([]STargetHttpsProxy, error)
- func (self *SLoadbalancer) GetVpcId() string
- func (self *SLoadbalancer) GetZone1Id() string
- func (self *SLoadbalancer) GetZoneId() string
- func (self *SLoadbalancer) IsEmulated() bool
- func (self *SLoadbalancer) Refresh() error
- func (self *SLoadbalancer) SetTags(tags map[string]string, replace bool) error
- func (self *SLoadbalancer) Start() error
- func (self *SLoadbalancer) Stop() error
- type SLoadbalancerBackend
- func (self *SLoadbalancerBackend) GetBackendId() string
- func (self *SLoadbalancerBackend) GetBackendRole() string
- func (self *SLoadbalancerBackend) GetBackendType() string
- func (self *SLoadbalancerBackend) GetCreatedAt() time.Time
- func (self *SLoadbalancerBackend) GetGlobalId() string
- func (self *SLoadbalancerBackend) GetId() string
- func (self *SLoadbalancerBackend) GetIpAddress() string
- func (self *SLoadbalancerBackend) GetName() string
- func (self *SLoadbalancerBackend) GetPort() int
- func (self *SLoadbalancerBackend) GetProjectId() string
- func (self *SLoadbalancerBackend) GetStatus() string
- func (self *SLoadbalancerBackend) GetSysTags() map[string]string
- func (self *SLoadbalancerBackend) GetTags() (map[string]string, error)
- func (self *SLoadbalancerBackend) GetWeight() int
- func (self *SLoadbalancerBackend) IsEmulated() bool
- func (self *SLoadbalancerBackend) Refresh() error
- func (self *SLoadbalancerBackend) SetTags(tags map[string]string, replace bool) error
- func (self *SLoadbalancerBackend) SyncConf(ctx context.Context, port, weight int) error
- type SLoadbalancerCertificate
- func (self *SLoadbalancerCertificate) Delete() error
- func (self *SLoadbalancerCertificate) GetCommonName() string
- func (self *SLoadbalancerCertificate) GetCreatedAt() time.Time
- func (self *SLoadbalancerCertificate) GetExpireTime() time.Time
- func (self *SLoadbalancerCertificate) GetFingerprint() string
- func (self *SLoadbalancerCertificate) GetPrivateKey() string
- func (self *SLoadbalancerCertificate) GetProjectId() string
- func (self *SLoadbalancerCertificate) GetPublickKey() string
- func (self *SLoadbalancerCertificate) GetStatus() string
- func (self *SLoadbalancerCertificate) GetSubjectAlternativeNames() string
- func (self *SLoadbalancerCertificate) GetSysTags() map[string]string
- func (self *SLoadbalancerCertificate) GetTags() (map[string]string, error)
- func (self *SLoadbalancerCertificate) IsEmulated() bool
- func (self *SLoadbalancerCertificate) Refresh() error
- func (self *SLoadbalancerCertificate) SetTags(tags map[string]string, replace bool) error
- func (self *SLoadbalancerCertificate) Sync(name, privateKey, publickKey string) error
- type SLoadbalancerListener
- func (self *SLoadbalancerListener) CreateILoadBalancerListenerRule(rule *cloudprovider.SLoadbalancerListenerRule) (cloudprovider.ICloudLoadbalancerListenerRule, error)
- func (self *SLoadbalancerListener) Delete(ctx context.Context) error
- func (self *SLoadbalancerListener) GetAclId() string
- func (self *SLoadbalancerListener) GetAclStatus() string
- func (self *SLoadbalancerListener) GetAclType() string
- func (self *SLoadbalancerListener) GetBackendConnectTimeout() int
- func (self *SLoadbalancerListener) GetBackendGroupId() string
- func (self *SLoadbalancerListener) GetBackendServerPort() int
- func (self *SLoadbalancerListener) GetCertificateId() string
- func (self *SLoadbalancerListener) GetClientIdleTimeout() int
- func (self *SLoadbalancerListener) GetCreatedAt() time.Time
- func (self *SLoadbalancerListener) GetEgressMbps() int
- func (self *SLoadbalancerListener) GetGlobalId() string
- func (self *SLoadbalancerListener) GetHealthCheck() string
- func (self *SLoadbalancerListener) GetHealthCheckCode() string
- func (self *SLoadbalancerListener) GetHealthCheckDomain() string
- func (self *SLoadbalancerListener) GetHealthCheckExp() string
- func (self *SLoadbalancerListener) GetHealthCheckFail() int
- func (self *SLoadbalancerListener) GetHealthCheckInterval() int
- func (self *SLoadbalancerListener) GetHealthCheckReq() string
- func (self *SLoadbalancerListener) GetHealthCheckRise() int
- func (self *SLoadbalancerListener) GetHealthCheckTimeout() int
- func (self *SLoadbalancerListener) GetHealthCheckType() string
- func (self *SLoadbalancerListener) GetHealthCheckURI() string
- func (self *SLoadbalancerListener) GetHealthChecks() []HealthChecks
- func (self *SLoadbalancerListener) GetILoadBalancerListenerRuleById(ruleId string) (cloudprovider.ICloudLoadbalancerListenerRule, error)
- func (self *SLoadbalancerListener) GetILoadbalancerListenerRules() ([]cloudprovider.ICloudLoadbalancerListenerRule, error)
- func (self *SLoadbalancerListener) GetId() string
- func (self *SLoadbalancerListener) GetInstanceGroups() ([]SInstanceGroup, error)
- func (self *SLoadbalancerListener) GetListenerPort() int
- func (self *SLoadbalancerListener) GetListenerType() string
- func (self *SLoadbalancerListener) GetLoadbalancerListenerRules() ([]SLoadbalancerListenerRule, error)
- func (self *SLoadbalancerListener) GetName() string
- func (self *SLoadbalancerListener) GetProjectId() string
- func (self *SLoadbalancerListener) GetRedirect() string
- func (self *SLoadbalancerListener) GetRedirectCode() int64
- func (self *SLoadbalancerListener) GetRedirectHost() string
- func (self *SLoadbalancerListener) GetRedirectPath() string
- func (self *SLoadbalancerListener) GetRedirectScheme() string
- func (self *SLoadbalancerListener) GetScheduler() string
- func (self *SLoadbalancerListener) GetStatus() string
- func (self *SLoadbalancerListener) GetStickySession() string
- func (self *SLoadbalancerListener) GetStickySessionCookie() string
- func (self *SLoadbalancerListener) GetStickySessionCookieTimeout() int
- func (self *SLoadbalancerListener) GetStickySessionType() string
- func (self *SLoadbalancerListener) GetSysTags() map[string]string
- func (self *SLoadbalancerListener) GetTLSCipherPolicy() string
- func (self *SLoadbalancerListener) GetTags() (map[string]string, error)
- func (self *SLoadbalancerListener) GzipEnabled() bool
- func (self *SLoadbalancerListener) HTTP2Enabled() bool
- func (self *SLoadbalancerListener) IsEmulated() bool
- func (self *SLoadbalancerListener) Refresh() error
- func (self *SLoadbalancerListener) SetTags(tags map[string]string, replace bool) error
- func (self *SLoadbalancerListener) Start() error
- func (self *SLoadbalancerListener) Stop() error
- func (self *SLoadbalancerListener) Sync(ctx context.Context, listener *cloudprovider.SLoadbalancerListener) error
- func (self *SLoadbalancerListener) XForwardedForEnabled() bool
- type SLoadbalancerListenerRule
- func (self *SLoadbalancerListenerRule) Delete(ctx context.Context) error
- func (self *SLoadbalancerListenerRule) GetBackendGroupId() string
- func (self *SLoadbalancerListenerRule) GetCondition() string
- func (self *SLoadbalancerListenerRule) GetCreatedAt() time.Time
- func (self *SLoadbalancerListenerRule) GetDomain() string
- func (self *SLoadbalancerListenerRule) GetGlobalId() string
- func (self *SLoadbalancerListenerRule) GetId() string
- func (self *SLoadbalancerListenerRule) GetName() string
- func (self *SLoadbalancerListenerRule) GetPath() string
- func (self *SLoadbalancerListenerRule) GetProjectId() string
- func (self *SLoadbalancerListenerRule) GetRedirect() string
- func (self *SLoadbalancerListenerRule) GetRedirectCode() int64
- func (self *SLoadbalancerListenerRule) GetRedirectHost() string
- func (self *SLoadbalancerListenerRule) GetRedirectPath() string
- func (self *SLoadbalancerListenerRule) GetRedirectScheme() string
- func (self *SLoadbalancerListenerRule) GetStatus() string
- func (self *SLoadbalancerListenerRule) GetSysTags() map[string]string
- func (self *SLoadbalancerListenerRule) GetTags() (map[string]string, error)
- func (self *SLoadbalancerListenerRule) IsDefault() bool
- func (self *SLoadbalancerListenerRule) IsEmulated() bool
- func (self *SLoadbalancerListenerRule) Refresh() error
- func (self *SLoadbalancerListenerRule) SetTags(tags map[string]string, replace bool) error
- type SMachineType
- type SMetadata
- type SMetadataItem
- type SNetwork
- func (network *SNetwork) Delete() error
- func (network *SNetwork) GetAllocTimeoutSeconds() int
- func (network *SNetwork) GetCreatedAt() time.Time
- func (self *SNetwork) GetGateway() string
- func (self *SNetwork) GetGlobalId() string
- func (network *SNetwork) GetIWire() cloudprovider.ICloudWire
- func (self *SNetwork) GetId() string
- func (self *SNetwork) GetIpEnd() string
- func (self *SNetwork) GetIpMask() int8
- func (self *SNetwork) GetIpStart() string
- func (network *SNetwork) GetIsPublic() bool
- func (self *SNetwork) GetName() string
- func (network *SNetwork) GetProjectId() string
- func (network *SNetwork) GetPublicScope() rbacutils.TRbacScope
- func (network *SNetwork) GetServerType() string
- func (network *SNetwork) GetStatus() string
- func (network *SNetwork) IsEmulated() bool
- func (self *SNetwork) Refresh() error
- type SNetworkInterface
- type SObject
- func (o *SObject) GetAcl() cloudprovider.TBucketACLType
- func (o *SObject) GetETag() string
- func (o *SObject) GetIBucket() cloudprovider.ICloudBucket
- func (o *SObject) GetKey() string
- func (o *SObject) GetLastModified() time.Time
- func (o *SObject) GetMeta() http.Header
- func (o *SObject) GetSizeBytes() int64
- func (o *SObject) GetStorageClass() string
- func (o *SObject) SetAcl(acl cloudprovider.TBucketACLType) error
- func (o *SObject) SetMeta(ctx context.Context, meta http.Header) error
- type SOperation
- type SOrganization
- type SOrganizationOwner
- type SPricingExpression
- type SProject
- type SQuota
- type SRateInfo
- func (rate *SRateInfo) GetComputePrice(regionId string) (map[string]map[string]map[string]float64, error)
- func (rate *SRateInfo) GetCpuPrice(regionId, cpuType string) (float64, error)
- func (rate *SRateInfo) GetDiscount(sku string) []float64
- func (rate *SRateInfo) GetExtendMemoryGb(sku string, cpu int, memoryMb int) float64
- func (rate *SRateInfo) GetMemoryPrice(regionId string, memoryType string) (float64, error)
- func (rate *SRateInfo) GetSharedSkuPrice(regionId string, sku string) (float64, error)
- func (rate *SRateInfo) GetSkuPrice(regionId string, sku string, cpu, memoryMb int) (struct{ ... }, error)
- func (rate *SRateInfo) GetSkuType(sku string) (string, error)
- type SRegion
- func (region *SRegion) AssociateInstanceEip(instanceId string, eip string) error
- func (self *SRegion) AttachDisk(instanceId, diskId string, boot bool) error
- func (region *SRegion) BigQuery(sql string) ([]jsonutils.JSONObject, error)
- func (region *SRegion) BillingList(resource string, params map[string]string, pageSize int, pageToken string, ...) error
- func (region *SRegion) BillingListAll(resource string, params map[string]string, retval interface{}) error
- func (region *SRegion) ChangeDBInstanceConfig(instanceId string, diskSizeGb int, instanceType string) error
- func (region *SRegion) ChangeInstanceConfig(id string, zone string, instanceType string, cpu int, memoryMb int) error
- func (region *SRegion) CheckUploadRange(bucket string, uploadId string) error
- func (region *SRegion) CloudbuildInsert(body jsonutils.JSONObject) error
- func (region *SRegion) ConvertAcl(acls []GCSAcl) cloudprovider.TBucketACLType
- func (region *SRegion) CreateBucket(name string, storageClass string, acl cloudprovider.TBucketACLType) (*SBucket, error)
- func (region *SRegion) CreateDBInstance(desc *cloudprovider.SManagedDBInstanceCreateConfig) (*SDBInstance, error)
- func (region *SRegion) CreateDBInstanceAccount(instanceId string, name, password, host string) error
- func (region *SRegion) CreateDBInstanceBackup(instanceId string, name, desc string) error
- func (region *SRegion) CreateDatabase(instanceId string, name, charset string) error
- func (region *SRegion) CreateDisk(name string, sizeGb int, zone string, storageType string, image string, ...) (*SDisk, error)
- func (region *SRegion) CreateEIP(args *cloudprovider.SEip) (cloudprovider.ICloudEIP, error)
- func (region *SRegion) CreateEip(name string, desc string) (*SAddress, error)
- func (region *SRegion) CreateIBucket(name string, storageClassStr string, acl string) error
- func (region *SRegion) CreateIDBInstance(desc *cloudprovider.SManagedDBInstanceCreateConfig) (cloudprovider.ICloudDBInstance, error)
- func (region *SRegion) CreateISecurityGroup(conf *cloudprovider.SecurityGroupCreateInput) (cloudprovider.ICloudSecurityGroup, error)
- func (self *SRegion) CreateIVpc(opts *cloudprovider.VpcCreateOptions) (cloudprovider.ICloudVpc, error)
- func (region *SRegion) CreateImage(name string, desc string, bucketName string, sourceFile string) (*SImage, error)
- func (region *SRegion) CreateInstance(zone, name, desc, instanceType string, cpu, memoryMb int, networkId string, ...) (*SInstance, error)
- func (region *SRegion) CreateRds(name, engine, databaseVersion, category, instanceType, storageType string, ...) (*SDBInstance, error)
- func (self *SRegion) CreateSnapshot(diskId string, name string, desc string) (*SSnapshot, error)
- func (self *SRegion) CreateVpc(name string, gvpcId string, cidr string, desc string) (*SVpc, error)
- func (region *SRegion) DBInstancePublicConnectionOperation(instanceId string, open bool) error
- func (region *SRegion) Delete(id string) error
- func (region *SRegion) DeleteBucket(name string) error
- func (region *SRegion) DeleteDBInstance(id string) error
- func (region *SRegion) DeleteDBInstanceAccount(instanceName, user, host string) error
- func (region *SRegion) DeleteDBInstanceDatabase(id string) error
- func (region *SRegion) DeleteIBucket(name string) error
- func (region *SRegion) DeleteObject(bucket, key string) error
- func (region *SRegion) DetachDisk(instanceId, deviceName string) error
- func (self *SRegion) DissociateInstanceEip(instanceId string, eip string) error
- func (region *SRegion) Do(id string, action string, params map[string]string, body jsonutils.JSONObject) error
- func (region *SRegion) DownloadObjectRange(bucket, object string, start, end int64) (io.ReadCloser, error)
- func (region *SRegion) Get(resourceType, id string, retval interface{}) error
- func (region *SRegion) GetAllAvailableImages() ([]SImage, error)
- func (region *SRegion) GetBucket(name string) (*SBucket, error)
- func (region *SRegion) GetBucketAcl(bucket string) ([]GCSAcl, error)
- func (region *SRegion) GetBucketIam(bucket string) (*SBucketIam, error)
- func (region *SRegion) GetBuckets(maxResults int, pageToken string) ([]SBucket, error)
- func (self *SRegion) GetBySelfId(id string, retval interface{}) error
- func (region *SRegion) GetCapabilities() []string
- func (region *SRegion) GetClient() *SGoogleClient
- func (region *SRegion) GetCloudbuildOperation(name string) (*SCloudbuildOperation, error)
- func (self *SRegion) GetCreatedAt() time.Time
- func (region *SRegion) GetDBInstance(instanceId string) (*SDBInstance, error)
- func (region *SRegion) GetDBInstanceAccount(id string) (*SDBInstanceAccount, error)
- func (region *SRegion) GetDBInstanceAccounts(instance string) ([]SDBInstanceAccount, error)
- func (region *SRegion) GetDBInstanceBackup(backupId string) (*SDBInstanceBackup, error)
- func (region *SRegion) GetDBInstanceBackups(instanceId string) ([]SDBInstanceBackup, error)
- func (region *SRegion) GetDBInstanceDatabases(instance string) ([]SDBInstanceDatabase, error)
- func (region *SRegion) GetDBInstances(maxResults int, pageToken string) ([]SDBInstance, error)
- func (region *SRegion) GetDisk(id string) (*SDisk, error)
- func (region *SRegion) GetDisks(zone string, storageType string, maxResults int, pageToken string) ([]SDisk, error)
- func (region *SRegion) GetEip(id string) (*SAddress, error)
- func (region *SRegion) GetEips(address string, maxResults int, pageToken string) ([]SAddress, error)
- func (region *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo
- func (self *SRegion) GetGlobalHealthChecks(filter string) ([]HealthChecks, error)
- func (region *SRegion) GetGlobalId() string
- func (self *SRegion) GetI18n() cloudprovider.SModelI18nTable
- func (region *SRegion) GetIBucketById(id string) (cloudprovider.ICloudBucket, error)
- func (region *SRegion) GetIBucketByName(name string) (cloudprovider.ICloudBucket, error)
- func (region *SRegion) GetIBuckets() ([]cloudprovider.ICloudBucket, error)
- func (region *SRegion) GetICloudQuotas() ([]cloudprovider.ICloudQuota, error)
- func (region *SRegion) GetIDBInstanceBackupById(backupId string) (cloudprovider.ICloudDBInstanceBackup, error)
- func (region *SRegion) GetIDBInstanceBackups() ([]cloudprovider.ICloudDBInstanceBackup, error)
- func (region *SRegion) GetIDBInstanceById(instanceId string) (cloudprovider.ICloudDBInstance, error)
- func (region *SRegion) GetIDBInstances() ([]cloudprovider.ICloudDBInstance, error)
- func (region *SRegion) GetIDiskById(id string) (cloudprovider.ICloudDisk, error)
- func (region *SRegion) GetIEipById(id string) (cloudprovider.ICloudEIP, error)
- func (region *SRegion) GetIEips() ([]cloudprovider.ICloudEIP, error)
- func (region *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, error)
- func (self *SRegion) GetILoadBalancerById(loadbalancerId string) (cloudprovider.ICloudLoadbalancer, error)
- func (self *SRegion) GetILoadBalancerCertificateById(certId string) (cloudprovider.ICloudLoadbalancerCertificate, error)
- func (self *SRegion) GetILoadBalancerCertificates() ([]cloudprovider.ICloudLoadbalancerCertificate, error)
- func (self *SRegion) GetILoadBalancers() ([]cloudprovider.ICloudLoadbalancer, error)
- func (region *SRegion) GetISecurityGroupById(id string) (cloudprovider.ICloudSecurityGroup, error)
- func (region *SRegion) GetISecurityGroupByName(opts *cloudprovider.SecurityGroupFilterOptions) (cloudprovider.ICloudSecurityGroup, error)
- func (region *SRegion) GetISnapshotById(id string) (cloudprovider.ICloudSnapshot, error)
- func (region *SRegion) GetISnapshotPolicies() ([]cloudprovider.ICloudSnapshotPolicy, error)
- func (region *SRegion) GetISnapshotPolicyById(id string) (cloudprovider.ICloudSnapshotPolicy, error)
- func (region *SRegion) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
- func (region *SRegion) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
- func (region *SRegion) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error)
- func (region *SRegion) GetIStoragecaches() ([]cloudprovider.ICloudStoragecache, error)
- func (region *SRegion) GetIVMById(id string) (cloudprovider.ICloudVM, error)
- func (self *SRegion) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)
- func (self *SRegion) GetIVpcs() ([]cloudprovider.ICloudVpc, error)
- func (region *SRegion) GetIZoneById(id string) (cloudprovider.ICloudZone, error)
- func (region *SRegion) GetIZones() ([]cloudprovider.ICloudZone, error)
- func (region *SRegion) GetId() string
- func (region *SRegion) GetImage(id string) (*SImage, error)
- func (region *SRegion) GetImages(project string, maxResults int, pageToken string) ([]SImage, error)
- func (region *SRegion) GetInstance(id string) (*SInstance, error)
- func (region *SRegion) GetInstances(zone string, maxResults int, pageToken string) ([]SInstance, error)
- func (self *SRegion) GetLoadbalancer(resourceId string) (SLoadbalancer, error)
- func (region *SRegion) GetMachineType(id string) (*SMachineType, error)
- func (region *SRegion) GetMachineTypes(zone string, maxResults int, pageToken string) ([]SMachineType, error)
- func (region *SRegion) GetName() string
- func (region *SRegion) GetObjectAcl(bucket string, object string) ([]GCSAcl, error)
- func (region *SRegion) GetObjects(bucket string, prefix string, nextPageToken string, delimiter string, ...) (*SBucketObjects, error)
- func (region *SRegion) GetProjectId() string
- func (region *SRegion) GetProvider() string
- func (region *SRegion) GetRdsOperation(id string) (*SOperation, error)
- func (region *SRegion) GetRegionDisk(id string) (*SRegionDisk, error)
- func (region *SRegion) GetRegionDisks(storageType string, maxResults int, pageToken string) ([]SRegionDisk, error)
- func (region *SRegion) GetRegionStorage(id string) (*SRegionStorage, error)
- func (region *SRegion) GetRegionStorages(maxResults int, pageToken string) ([]SRegionStorage, error)
- func (self *SRegion) GetRegionalBackendServices(filter string) ([]SBackendServices, error)
- func (self *SRegion) GetRegionalForwardingRule(filter string) ([]SForwardingRule, error)
- func (self *SRegion) GetRegionalHTTPLoadbalancers() ([]SLoadbalancer, error)
- func (self *SRegion) GetRegionalHealthChecks(filter string) ([]HealthChecks, error)
- func (self *SRegion) GetRegionalInstanceGroups(filter string) ([]SInstanceGroup, error)
- func (self *SRegion) GetRegionalLoadbalancers() ([]SLoadbalancer, error)
- func (self *SRegion) GetRegionalSslCertificates(filter string) ([]SLoadbalancerCertificate, error)
- func (self *SRegion) GetRegionalTargetHttpProxies(filter string) ([]STargetHttpProxy, error)
- func (self *SRegion) GetRegionalTargetHttpsProxies(filter string) ([]STargetHttpsProxy, error)
- func (self *SRegion) GetRegionalTcpLoadbalancers() ([]SLoadbalancer, error)
- func (self *SRegion) GetRegionalUdpLoadbalancers() ([]SLoadbalancer, error)
- func (self *SRegion) GetRegionalUrlMaps(filter string) ([]SUrlMap, error)
- func (region *SRegion) GetResourcePolicies(maxResults int, pageToken string) ([]SResourcePolicy, error)
- func (region *SRegion) GetResourcePolicy(id string) (*SResourcePolicy, error)
- func (region *SRegion) GetSerialPortOutput(id string, port int) (string, error)
- func (region *SRegion) GetSkuRateInfo(skus []SSkuBilling) SRateInfo
- func (region *SRegion) GetSnapshot(id string) (*SSnapshot, error)
- func (region *SRegion) GetSnapshots(disk string, maxResults int, pageToken string) ([]SSnapshot, error)
- func (region *SRegion) GetStatus() string
- func (region *SRegion) GetStorage(id string) (*SStorage, error)
- func (region *SRegion) GetStorages(zone string, maxResults int, pageToken string) ([]SStorage, error)
- func (self *SRegion) GetVpc(id string) (*SVpc, error)
- func (self *SRegion) GetVpcs() ([]SVpc, error)
- func (region *SRegion) GetZone(id string) (*SZone, error)
- func (region *SRegion) GetZones(regionId string, maxResults int, pageToken string) ([]SZone, error)
- func (region *SRegion) IBucketExist(name string) (bool, error)
- func (self *SRegion) Insert(resource string, body jsonutils.JSONObject, retval interface{}) error
- func (region *SRegion) IsEmulated() bool
- func (region *SRegion) List(resource string, params map[string]string, maxResults int, pageToken string, ...) error
- func (region *SRegion) ListAll(resource string, params map[string]string, retval interface{}) error
- func (region *SRegion) ListSkuBilling(pageSize int, pageToken string) ([]SSkuBilling, error)
- func (region *SRegion) NewMultipartUpload(bucket, key string, cannedAcl cloudprovider.TBucketACLType, ...) (string, error)
- func (region *SRegion) Patch(id string, action string, params map[string]string, body jsonutils.JSONObject) error
- func (region *SRegion) PutObject(bucket string, name string, input io.Reader, sizeBytes int64, ...) error
- func (region *SRegion) RdsList(resource string, params map[string]string, maxResults int, pageToken string, ...) error
- func (region *SRegion) RdsListAll(resource string, params map[string]string, retval interface{}) error
- func (region *SRegion) RebuildRoot(instanceId string, imageId string, sysDiskSizeGb int) (string, error)
- func (region *SRegion) RecoverFromBackup(instanceName, dest string, backupId string) error
- func (region *SRegion) ResetInstance(id string) error
- func (region *SRegion) ResizeDisk(id string, sizeGb int) error
- func (self *SRegion) SaveImage(diskId string, opts *cloudprovider.SaveImageOptions) (*SImage, error)
- func (region *SRegion) SetBucketAcl(bucket string, acl cloudprovider.TBucketACLType) error
- func (region *SRegion) SetBucketIam(bucket string, iam *SBucketIam) (*SBucketIam, error)
- func (region *SRegion) SetLabels(id string, _labels map[string]string, labelFingerprint string) error
- func (region *SRegion) SetMetadata(id string, metadata SMetadata) error
- func (region *SRegion) SetObjectAcl(bucket, object string, cannedAcl cloudprovider.TBucketACLType) error
- func (region *SRegion) SetObjectMeta(bucket, object string, meta http.Header) error
- func (region *SRegion) SetProjectId(id string)
- func (region *SRegion) SetResourceTags(id string, tags SInstanceTag) error
- func (region *SRegion) SetServiceAccount(id string, email string) error
- func (region *SRegion) SingedUrl(bucket, key string, method string, expire time.Duration) (string, error)
- func (region *SRegion) StartInstance(id string) error
- func (region *SRegion) StopInstance(id string) error
- func (region *SRegion) StorageDelete(id string) error
- func (region *SRegion) StorageDo(id string, action string, params map[string]string, body jsonutils.JSONObject) error
- func (region *SRegion) StorageGet(id string, retval interface{}) error
- func (region *SRegion) StorageInsert(resource string, body jsonutils.JSONObject, retval interface{}) error
- func (region *SRegion) StorageList(resource string, params map[string]string, maxResults int, pageToken string, ...) error
- func (region *SRegion) StorageListAll(resource string, params map[string]string, retval interface{}) error
- func (region *SRegion) StoragePut(id string, body jsonutils.JSONObject, retval interface{}) error
- func (region *SRegion) UploadObject(bucket string, params url.Values, header http.Header, input io.Reader) error
- func (region *SRegion) UploadPart(bucket, uploadId string, partIndex int, offset int64, part io.Reader, ...) error
- func (region *SRegion) WaitRdsOperation(id string, resource, action string) (string, error)
- type SRegionDisk
- type SRegionStorage
- type SResourceBase
- type SResourcePolicy
- func (policy *SResourcePolicy) GetCreatedAt() time.Time
- func (policy *SResourcePolicy) GetProjectId() string
- func (policy *SResourcePolicy) GetRepeatWeekdays() ([]int, error)
- func (policy *SResourcePolicy) GetRetentionDays() int
- func (policy *SResourcePolicy) GetStatus() string
- func (policy *SResourcePolicy) GetTimePoints() ([]int, error)
- func (policy *SResourcePolicy) IsActivated() bool
- func (policy *SResourcePolicy) IsEmulated() bool
- func (policy *SResourcePolicy) Refresh() error
- type SRetentionPolicy
- type SRole
- type SSLHealthCheck
- type SSchedule
- type SSecurityGroup
- func (secgroup *SSecurityGroup) Delete() error
- func (secgroup *SSecurityGroup) GetDescription() string
- func (secgroup *SSecurityGroup) GetGlobalId() string
- func (secgroup *SSecurityGroup) GetId() string
- func (secgroup *SSecurityGroup) GetName() string
- func (secgroup *SSecurityGroup) GetProjectId() string
- func (self *SSecurityGroup) GetRules() ([]cloudprovider.SecurityRule, error)
- func (secgroup *SSecurityGroup) GetStatus() string
- func (secgroup *SSecurityGroup) GetVpcId() string
- func (secgroup *SSecurityGroup) IsEmulated() bool
- func (secgroup *SSecurityGroup) Refresh() error
- func (secgroup *SSecurityGroup) SyncRules(common, inAdds, outAdds, inDels, outDels []cloudprovider.SecurityRule) error
- type SSkuBilling
- type SSnapshot
- func (snapshot *SSnapshot) Delete() error
- func (self *SSnapshot) GetCreatedAt() time.Time
- func (snapshot *SSnapshot) GetDiskId() string
- func (snapshot *SSnapshot) GetDiskType() string
- func (snapshot *SSnapshot) GetProjectId() string
- func (snapshot *SSnapshot) GetSizeMb() int32
- func (snapshot *SSnapshot) GetStatus() string
- func (snapshot *SSnapshot) IsEmulated() bool
- func (snapshot *SSnapshot) Refresh() error
- type SSnapshotProperties
- type SSnapshotSchedulePolicy
- type SSqlserverDatabaseDetails
- type SSqlserverUserDetails
- type SStorage
- func (storage *SStorage) CreateIDisk(conf *cloudprovider.DiskCreateConfig) (cloudprovider.ICloudDisk, error)
- func (storage *SStorage) DisableSync() bool
- func (storage *SStorage) GetCapacityMB() int64
- func (self *SStorage) GetCapacityUsedMB() int64
- func (self *SStorage) GetCreatedAt() time.Time
- func (storage *SStorage) GetEnabled() bool
- func (storage *SStorage) GetIDiskById(id string) (cloudprovider.ICloudDisk, error)
- func (storage *SStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error)
- func (storage *SStorage) GetIStoragecache() cloudprovider.ICloudStoragecache
- func (storage *SStorage) GetIZone() cloudprovider.ICloudZone
- func (storage *SStorage) GetMediumType() string
- func (storage *SStorage) GetMountPoint() string
- func (storage *SStorage) GetName() string
- func (storage *SStorage) GetStatus() string
- func (storage *SStorage) GetStorageConf() jsonutils.JSONObject
- func (storage *SStorage) GetStorageType() string
- func (storage *SStorage) IsEmulated() bool
- func (storage *SStorage) IsSysDiskStore() bool
- func (storage *SStorage) Refresh() error
- type SStoragecache
- func (cache *SStoragecache) CreateIImage(snapshoutId, imageName, osType, imageDesc string) (cloudprovider.ICloudImage, error)
- func (cache *SStoragecache) DownloadImage(userCred mcclient.TokenCredential, imageId string, extId string, path string) (jsonutils.JSONObject, error)
- func (cache *SStoragecache) GetGlobalId() string
- func (cache *SStoragecache) GetICloudImages() ([]cloudprovider.ICloudImage, error)
- func (cache *SStoragecache) GetICustomizedCloudImages() ([]cloudprovider.ICloudImage, error)
- func (cache *SStoragecache) GetIImageById(extId string) (cloudprovider.ICloudImage, error)
- func (cache *SStoragecache) GetId() string
- func (cache *SStoragecache) GetName() string
- func (cache *SStoragecache) GetPath() string
- func (cache *SStoragecache) GetStatus() string
- func (cache *SStoragecache) IsEmulated() bool
- func (cache *SStoragecache) Refresh() error
- func (cache *SStoragecache) UploadImage(ctx context.Context, userCred mcclient.TokenCredential, ...) (string, error)
- type STargetHttpProxy
- type STargetHttpsProxy
- type STieredRate
- type SUniformBucketLevelAccess
- type SUnitPrice
- type SUrlMap
- type SVpc
- func (vpc *SVpc) Delete() error
- func (vpc *SVpc) GetCidrBlock() string
- func (self *SVpc) GetGlobalVpcId() string
- func (self *SVpc) GetIRouteTableById(routeTableId string) (cloudprovider.ICloudRouteTable, error)
- func (vpc *SVpc) GetIRouteTables() ([]cloudprovider.ICloudRouteTable, error)
- func (vpc *SVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)
- func (vpc *SVpc) GetIWireById(id string) (cloudprovider.ICloudWire, error)
- func (vpc *SVpc) GetIWires() ([]cloudprovider.ICloudWire, error)
- func (vpc *SVpc) GetIsDefault() bool
- func (vpc *SVpc) GetRegion() cloudprovider.ICloudRegion
- func (vpc *SVpc) GetStatus() string
- func (vpc *SVpc) IsEmulated() bool
- func (self *SVpc) Refresh() error
- type SWeeklySchedule
- type SWire
- func (wire *SWire) CreateINetwork(opts *cloudprovider.SNetworkCreateOptions) (cloudprovider.ICloudNetwork, error)
- func (wire *SWire) GetBandwidth() int
- func (wire *SWire) GetCreatedAt() time.Time
- func (wire *SWire) GetGlobalId() string
- func (self *SWire) GetINetworkById(id string) (cloudprovider.ICloudNetwork, error)
- func (self *SWire) GetINetworks() ([]cloudprovider.ICloudNetwork, error)
- func (wire *SWire) GetIVpc() cloudprovider.ICloudVpc
- func (wire *SWire) GetIZone() cloudprovider.ICloudZone
- func (wire *SWire) GetId() string
- func (wire *SWire) GetName() string
- func (wire *SWire) GetStatus() string
- func (wire *SWire) IsEmulated() bool
- func (wire *SWire) Refresh() error
- type SZone
- func (zone *SZone) GetGlobalId() string
- func (zone *SZone) GetI18n() cloudprovider.SModelI18nTable
- func (zone *SZone) GetIHostById(hostId string) (cloudprovider.ICloudHost, error)
- func (zone *SZone) GetIHosts() ([]cloudprovider.ICloudHost, error)
- func (zone *SZone) GetIRegion() cloudprovider.ICloudRegion
- func (zone *SZone) GetIStorageById(storageId string) (cloudprovider.ICloudStorage, error)
- func (zone *SZone) GetIStorages() ([]cloudprovider.ICloudStorage, error)
- func (zone *SZone) GetId() string
- func (zone *SZone) GetName() string
- func (zone *SZone) GetStatus() string
- func (zone *SZone) IsEmulated() bool
- func (zone *SZone) Refresh() error
- type SelfManaged
- type ServiceAccount
- type SkuBillingCatetory
- type SkuPricingInfo
- type TCPHealthCheck
- type TTL
- type Test
- type URLRedirect
- type URLRewrite
- type WeightedBackendService
Constants ¶
const ( CLOUD_PROVIDER_GOOGLE = api.CLOUD_PROVIDER_GOOGLE CLOUD_PROVIDER_GOOGLE_CN = "谷歌云" GOOGLE_DEFAULT_REGION = "asia-east1" GOOGLE_API_VERSION = "v1" GOOGLE_MANAGER_API_VERSION = "v1" GOOGLE_STORAGE_API_VERSION = "v1" GOOGLE_CLOUDBUILD_API_VERSION = "v1" GOOGLE_BILLING_API_VERSION = "v1" GOOGLE_MONITOR_API_VERSION = "v3" GOOGLE_DBINSTANCE_API_VERSION = "v1beta4" GOOGLE_IAM_API_VERSION = "v1" GOOGLE_BIGQUERY_API_VERSION = "v2" GOOGLE_MANAGER_DOMAIN = "https://cloudresourcemanager.googleapis.com" GOOGLE_COMPUTE_DOMAIN = "https://www.googleapis.com/compute" GOOGLE_STORAGE_DOMAIN = "https://storage.googleapis.com/storage" GOOGLE_CLOUDBUILD_DOMAIN = "https://cloudbuild.googleapis.com" GOOGLE_STORAGE_UPLOAD_DOMAIN = "https://www.googleapis.com/upload/storage" GOOGLE_BILLING_DOMAIN = "https://cloudbilling.googleapis.com" GOOGLE_MONITOR_DOMAIN = "https://monitoring.googleapis.com" GOOGLE_DBINSTANCE_DOMAIN = "https://www.googleapis.com/sql" GOOGLE_IAM_DOMAIN = "https://iam.googleapis.com" GOOGLE_BIGQUERY_DOMAIN = "https://bigquery.googleapis.com/bigquery" MAX_RETRY = 3 )
const ( METADATA_SSH_KEYS = "ssh-keys" METADATA_STARTUP_SCRIPT = "startup-script" METADATA_POWER_SHELL = "sysprep-specialize-script-ps1" METADATA_STARTUP_SCRIPT_POWER_SHELL = "windows-startup-script-ps1" )
const ( OPERATION_STATUS_RUNNING = "RUNNING" OPERATION_STATUS_DONE = "DONE" )
const ( SECGROUP_TYPE_SERVICE_ACCOUNT = "serviceAccount" SECGROUP_TYPE_TAG = "tag" )
Variables ¶
var ( EngineVersions = map[string]GoogleSQLVersion{ "MYSQL_5_5": GoogleSQLVersion{Engine: api.DBINSTANCE_TYPE_MYSQL, Version: "5.5"}, "MYSQL_5_6": GoogleSQLVersion{Engine: api.DBINSTANCE_TYPE_MYSQL, Version: "5.6"}, "MYSQL_5_7": GoogleSQLVersion{Engine: api.DBINSTANCE_TYPE_MYSQL, Version: "5.7"}, "POSTGRES_9_6": GoogleSQLVersion{Engine: api.DBINSTANCE_TYPE_POSTGRESQL, Version: "9.6"}, "POSTGRES_10": GoogleSQLVersion{Engine: api.DBINSTANCE_TYPE_POSTGRESQL, Version: "10"}, "POSTGRES_11": GoogleSQLVersion{Engine: api.DBINSTANCE_TYPE_POSTGRESQL, Version: "11"}, "POSTGRES_12": GoogleSQLVersion{Engine: api.DBINSTANCE_TYPE_POSTGRESQL, Version: "12"}, "SQLSERVER_2017_STANDARD": GoogleSQLVersion{Engine: api.DBINSTANCE_TYPE_SQLSERVER, Version: "2017 Standard"}, "SQLSERVER_2017_ENTERPRISE": GoogleSQLVersion{Engine: api.DBINSTANCE_TYPE_SQLSERVER, Version: "2017 Enterprise"}, "SQLSERVER_2017_EXPRESS": GoogleSQLVersion{Engine: api.DBINSTANCE_TYPE_SQLSERVER, Version: "2017 Express"}, "SQLSERVER_2017_WEB": GoogleSQLVersion{Engine: api.DBINSTANCE_TYPE_SQLSERVER, Version: "2017 Web"}, } InstanceTypes = map[string]GoogleSQLType{ "db-f1-micro": GoogleSQLType{VcpuCount: 1, VmemSizeMb: 614}, "db-g1-small": GoogleSQLType{VcpuCount: 1, VmemSizeMb: 1740}, "D0": GoogleSQLType{VcpuCount: 1, VmemSizeMb: 512}, "D1": GoogleSQLType{VcpuCount: 1, VmemSizeMb: 1024}, "D2": GoogleSQLType{VcpuCount: 1, VmemSizeMb: 2048}, "D4": GoogleSQLType{VcpuCount: 1, VmemSizeMb: 5120}, "D8": GoogleSQLType{VcpuCount: 2, VmemSizeMb: 10240}, "D16": GoogleSQLType{VcpuCount: 4, VmemSizeMb: 10240}, "D32": GoogleSQLType{VcpuCount: 8, VmemSizeMb: 10240}, } )
var ( MultiRegions []string = []string{"us", "eu", "asia"} DualRegions []string = []string{"nam4", "eur4"} )
var LatitudeAndLongitude = map[string]cloudprovider.SGeographicInfo{ "asia-east1": api.RegionTaiwan, "asia-east2": api.RegionHongkong, "asia-northeast1": api.RegionTokyo, "asia-northeast2": api.RegionOsaka, "asia-northeast3": api.RegionSeoul, "asia-south1": api.RegionMumbai, "asia-south2": api.RegionDelhi, "asia-southeast1": api.RegionSingapore, "asia-southeast2": api.RegionJakarta, "australia-southeast1": api.RegionSydney, "australia-southeast2": api.RegionMelbourne, "europe-north1": api.RegionFinland, "europe-west1": api.RegionBelgium, "europe-west2": api.RegionLondon, "europe-west3": api.RegionFrankfurt, "europe-west4": api.RegionHolland, "europe-west6": api.RegionZurich, "europe-central2": api.RegionWarsaw, "northamerica-northeast1": api.RegionMontreal, "northamerica-northeast2": api.RegionToronto, "southamerica-east1": api.RegionSaoPaulo, "us-central1": api.RegionIowa, "us-east1": api.RegionCarolina, "us-east4": api.RegionNothVirginia, "us-west1": api.RegionOregon, "us-west2": api.RegionLosAngeles, "us-west3": api.RegionSaltLakeCity, "us-west4": api.RegionLasVegas, "southamerica-west1": api.RegionSantiago, }
var RegionNames = map[string]string{
"asia-east1": "台湾",
"asia-east2": "香港",
"asia-northeast1": "东京",
"asia-northeast2": "大阪",
"asia-northeast3": "首尔",
"asia-south1": "孟买",
"asia-south2": "德里",
"asia-southeast1": "新加坡",
"asia-southeast2": "雅加达",
"australia-southeast1": "悉尼",
"australia-southeast2": "墨尔本",
"europe-north1": "芬兰",
"europe-west1": "比利时",
"europe-west2": "伦敦",
"europe-west3": "法兰克福",
"europe-west4": "荷兰",
"europe-west6": "苏黎世",
"europe-central2": "华沙",
"northamerica-northeast1": "蒙特利尔",
"northamerica-northeast2": "多伦多",
"southamerica-east1": "圣保罗",
"southamerica-west1": "圣地亚哥",
"us-central1": "爱荷华",
"us-east1": "南卡罗来纳州",
"us-east4": "北弗吉尼亚",
"us-west1": "俄勒冈州",
"us-west2": "洛杉矶",
"us-west3": "盐湖城",
"us-west4": "拉斯维加斯",
"us": "美国的多区域",
"eu": "欧盟的多区域",
"asia": "亚洲的多区域",
"nam4": "爱荷华和南卡罗来纳",
"eur4": "荷兰和芬兰",
}
Functions ¶
This section is empty.
Types ¶
type AccessConfig ¶
type BindingCondition ¶
type ConnectionDraining ¶
type ConnectionDraining struct {
DrainingTimeoutSEC int64 `json:"drainingTimeoutSec"`
}
type ConsistentHash ¶
type ConsistentHash struct { HTTPCookie HTTPCookie `json:"httpCookie"` MinimumRingSize string `json:"minimumRingSize"` }
type CorsPolicy ¶
type CorsPolicy struct { AllowOrigins []string `json:"allowOrigins"` AllowOriginRegexes []string `json:"allowOriginRegexes"` AllowMethods []string `json:"allowMethods"` AllowHeaders []string `json:"allowHeaders"` ExposeHeaders []string `json:"exposeHeaders"` MaxAge int64 `json:"maxAge"` AllowCredentials bool `json:"allowCredentials"` Disabled bool `json:"disabled"` }
type Delay ¶
type Delay struct { FixedDelay MaxStreamDuration `json:"fixedDelay"` Percentage float64 `json:"percentage"` }
type FaultInjectionPolicy ¶
type GoogleClientConfig ¶
type GoogleClientConfig struct {
// contains filtered or unexported fields
}
func NewGoogleClientConfig ¶
func NewGoogleClientConfig(projectId, clientEmail, privateKeyId, privateKey string) *GoogleClientConfig
func (*GoogleClientConfig) CloudproviderConfig ¶
func (cfg *GoogleClientConfig) CloudproviderConfig(cpcfg cloudprovider.ProviderConfig) *GoogleClientConfig
func (*GoogleClientConfig) Debug ¶
func (cfg *GoogleClientConfig) Debug(debug bool) *GoogleClientConfig
type GoogleSQLType ¶
type GoogleSQLVersion ¶
type GoogleTags ¶
func (*GoogleTags) GetSysTags ¶
func (self *GoogleTags) GetSysTags() map[string]string
type GuestOsFeature ¶
type GuestOsFeature struct {
Type string
}
type HTTPCookie ¶
type HTTPHealthCheck ¶
type HeaderAction ¶
type HeaderAction struct { RequestHeadersToRemove []string `json:"requestHeadersToRemove"` RequestHeadersToAdd []HeadersToAdd `json:"requestHeadersToAdd"` ResponseHeadersToRemove []string `json:"responseHeadersToRemove"` ResponseHeadersToAdd []HeadersToAdd `json:"responseHeadersToAdd"` }
type HeaderMatch ¶
type HeaderMatch struct { HeaderName string `json:"headerName"` ExactMatch string `json:"exactMatch"` RegexMatch string `json:"regexMatch"` RangeMatch RangeMatch `json:"rangeMatch"` PresentMatch bool `json:"presentMatch"` PrefixMatch string `json:"prefixMatch"` SuffixMatch string `json:"suffixMatch"` InvertMatch bool `json:"invertMatch"` }
type HeadersToAdd ¶
type HealthChecks ¶
type HealthChecks struct { SResourceBase CreationTimestamp string `json:"creationTimestamp"` Description string `json:"description"` CheckIntervalSEC int64 `json:"checkIntervalSec"` TimeoutSEC int64 `json:"timeoutSec"` UnhealthyThreshold int64 `json:"unhealthyThreshold"` HealthyThreshold int64 `json:"healthyThreshold"` Type string `json:"type"` HTTPSHealthCheck HTTPHealthCheck `json:"httpsHealthCheck"` Region string `json:"region"` Kind string `json:"kind"` Http2HealthCheck HTTPHealthCheck `json:"http2HealthCheck"` TCPHealthCheck TCPHealthCheck `json:"tcpHealthCheck"` SSLHealthCheck SSLHealthCheck `json:"sslHealthCheck"` HTTPHealthCheck HTTPHealthCheck `json:"httpHealthCheck"` }
type InstanceDisk ¶
type MatchRule ¶
type MatchRule struct { PrefixMatch string `json:"prefixMatch"` FullPathMatch string `json:"fullPathMatch"` RegexMatch string `json:"regexMatch"` IgnoreCase bool `json:"ignoreCase"` HeaderMatches []HeaderMatch `json:"headerMatches"` QueryParameterMatches []QueryParameterMatch `json:"queryParameterMatches"` MetadataFilters []MetadataFilter `json:"metadataFilters"` }
type MaxStreamDuration ¶
type MetadataFilter ¶
type MetricData ¶
type MetricDataValue ¶
func (*MetricDataValue) GetValue ¶
func (self *MetricDataValue) GetValue() float64
type OperationError ¶
type PathMatcher ¶
type PathMatcher struct { Name string `json:"name"` Description string `json:"description"` DefaultService string `json:"defaultService"` DefaultRouteAction RouteAction `json:"defaultRouteAction"` DefaultURLRedirect URLRedirect `json:"defaultUrlRedirect"` PathRules []PathRule `json:"pathRules"` RouteRules []RouteRule `json:"routeRules"` HeaderAction HeaderAction `json:"headerAction"` }
type PathRule ¶
type PathRule struct { Service string `json:"service"` RouteAction RouteAction `json:"routeAction"` URLRedirect URLRedirect `json:"urlRedirect"` Paths []string `json:"paths"` }
type QueryParameterMatch ¶
type RangeMatch ¶
type RequestMirrorPolicy ¶
type RequestMirrorPolicy struct {
BackendService string `json:"backendService"`
}
type RetryPolicy ¶
type RetryPolicy struct { RetryConditions []string `json:"retryConditions"` NumRetries int64 `json:"numRetries"` PerTryTimeout MaxStreamDuration `json:"perTryTimeout"` }
type RouteAction ¶
type RouteAction struct { WeightedBackendServices []WeightedBackendService `json:"weightedBackendServices"` URLRewrite URLRewrite `json:"urlRewrite"` Timeout MaxStreamDuration `json:"timeout"` RetryPolicy RetryPolicy `json:"retryPolicy"` RequestMirrorPolicy RequestMirrorPolicy `json:"requestMirrorPolicy"` CorsPolicy CorsPolicy `json:"corsPolicy"` FaultInjectionPolicy FaultInjectionPolicy `json:"faultInjectionPolicy"` MaxStreamDuration MaxStreamDuration `json:"maxStreamDuration"` }
type RouteRule ¶
type RouteRule struct { Priority int64 `json:"priority"` Description string `json:"description"` MatchRules []MatchRule `json:"matchRules"` Service string `json:"service"` RouteAction RouteAction `json:"routeAction"` URLRedirect URLRedirect `json:"urlRedirect"` HeaderAction HeaderAction `json:"headerAction"` }
type SAddress ¶
type SAddress struct { SResourceBase multicloud.SEipBase GoogleTags CreationTimestamp time.Time Description string Address string Status string Region string Users []string NetworkTier string AddressType string Kind string // contains filtered or unexported fields }
func (*SAddress) Associate ¶
func (addr *SAddress) Associate(conf *cloudprovider.AssociateConfig) error
func (*SAddress) ChangeBandwidth ¶
func (*SAddress) Dissociate ¶
func (*SAddress) GetAssociationExternalId ¶
func (*SAddress) GetAssociationType ¶
func (*SAddress) GetBandwidth ¶
func (*SAddress) GetBillingType ¶
func (*SAddress) GetCreatedAt ¶
func (*SAddress) GetExpiredAt ¶
func (*SAddress) GetINetworkId ¶
func (*SAddress) GetInternetChargeType ¶
func (*SAddress) GetProjectId ¶
func (*SAddress) IsEmulated ¶
type SAuthorizedNetwork ¶
type SBackendServices ¶
type SBackendServices struct { SResourceBase CreationTimestamp string `json:"creationTimestamp"` Description string `json:"description"` Backends []Backend `json:"backends"` HealthChecks []string `json:"healthChecks"` TimeoutSEC int64 `json:"timeoutSec"` Port int64 `json:"port"` Protocol string `json:"protocol"` Fingerprint string `json:"fingerprint"` PortName string `json:"portName"` SessionAffinity string `json:"sessionAffinity"` AffinityCookieTTLSEC int64 `json:"affinityCookieTtlSec"` Region string `json:"region"` LoadBalancingScheme string `json:"loadBalancingScheme"` ConnectionDraining ConnectionDraining `json:"connectionDraining"` LocalityLBPolicy string `json:"localityLbPolicy"` ConsistentHash ConsistentHash `json:"consistentHash"` Kind string `json:"kind"` EnableCDN bool `json:"enableCDN"` Network string `json:"network"` }
type STargetProxy struct { }
type SBigQueryField ¶
type SBigQueryField struct { Type string `json:"type"` Name string `json:"name"` Mode string `json:"mode"` Fields []SBigQueryField `json:"fields"` }
func (SBigQueryField) Parse ¶
func (f SBigQueryField) Parse(r jsonutils.JSONObject, prefix string) (map[string]jsonutils.JSONObject, error)
type SBigQueryJobReference ¶
type SBigQueryJobReference struct { }
type SBigQueryResult ¶
type SBigQueryResult struct { CacheHit bool `json:"cacheHit"` JobComplete bool `json:"jobComplete"` JobReference SBigQueryJobReference `json:"jobReference"` Kind string `json:"kind"` Rows []jsonutils.JSONObject `json:"rows"` Schema SBigQuerySchema `json:"schema"` TotalBytesProcessed int64 `json:"totalBytesProcessed"` // contains filtered or unexported fields }
func (SBigQueryResult) GetRows ¶
func (res SBigQueryResult) GetRows() ([]jsonutils.JSONObject, error)
type SBigQuerySchema ¶
type SBigQuerySchema struct {
Fields []SBigQueryField `json:"fields"`
}
func (SBigQuerySchema) Parse ¶
func (schema SBigQuerySchema) Parse(r jsonutils.JSONObject) (map[string]jsonutils.JSONObject, error)
type SBucket ¶
type SBucket struct { multicloud.SBaseBucket GoogleTags Kind string SelfLink string Name string ProjectNumber string Metageneration string Location string StorageClass string Etag string TimeCreated time.Time Updated time.Time Lifecycle SLifecycle IamConfiguration SIamConfiguration LocationType string // contains filtered or unexported fields }
func (*SBucket) AbortMultipartUpload ¶
func (*SBucket) CompleteMultipartUpload ¶
func (*SBucket) CopyObject ¶
func (*SBucket) DeleteObject ¶
func (*SBucket) GetAccessUrls ¶
func (b *SBucket) GetAccessUrls() []cloudprovider.SBucketAccessUrl
func (*SBucket) GetAcl ¶
func (b *SBucket) GetAcl() cloudprovider.TBucketACLType
func (*SBucket) GetCreatedAt ¶
func (*SBucket) GetGlobalId ¶
func (*SBucket) GetIRegion ¶
func (b *SBucket) GetIRegion() cloudprovider.ICloudRegion
func (*SBucket) GetLocation ¶
func (*SBucket) GetObject ¶
func (b *SBucket) GetObject(ctx context.Context, key string, rangeOpt *cloudprovider.SGetObjectRange) (io.ReadCloser, error)
func (*SBucket) GetProjectId ¶
func (*SBucket) GetStats ¶
func (b *SBucket) GetStats() cloudprovider.SBucketStats
func (*SBucket) GetStorageClass ¶
func (*SBucket) GetTempUrl ¶
func (*SBucket) ListObjects ¶
func (b *SBucket) ListObjects(prefix string, marker string, delimiter string, maxCount int) (cloudprovider.SListObjectResult, error)
func (*SBucket) NewMultipartUpload ¶
func (*SBucket) SetAcl ¶
func (b *SBucket) SetAcl(acl cloudprovider.TBucketACLType) error
type SBucketBinding ¶
type SBucketBinding struct { Role string Members []string Condition BindingCondition }
type SBucketIam ¶
type SBucketIam struct { Version int Kind string ResourceId string Bindings []SBucketBinding Etag string }
type SBucketObjects ¶
type SBucketPolicyOnly ¶
type SBucketPolicyOnly struct {
Enabled bool
}
type SCloudbuildBuild ¶
type SCloudbuildMetadata ¶
type SCloudbuildMetadata struct {
Build SCloudbuildBuild
}
type SCloudbuildOperation ¶
type SCloudbuildOperation struct { Name string Metadata SCloudbuildMetadata }
type SClouduser ¶
type SClouduser struct { multicloud.SBaseClouduser Name string Roles []string // contains filtered or unexported fields }
func (*SClouduser) AttachCustomPolicy ¶
func (user *SClouduser) AttachCustomPolicy(role string) error
func (*SClouduser) AttachSystemPolicy ¶
func (user *SClouduser) AttachSystemPolicy(role string) error
func (*SClouduser) Delete ¶
func (user *SClouduser) Delete() error
func (*SClouduser) DetachCustomPolicy ¶
func (user *SClouduser) DetachCustomPolicy(role string) error
func (*SClouduser) DetachSystemPolicy ¶
func (user *SClouduser) DetachSystemPolicy(role string) error
func (*SClouduser) GetEmailAddr ¶
func (self *SClouduser) GetEmailAddr() string
func (*SClouduser) GetGlobalId ¶
func (user *SClouduser) GetGlobalId() string
func (*SClouduser) GetICloudgroups ¶
func (user *SClouduser) GetICloudgroups() ([]cloudprovider.ICloudgroup, error)
func (*SClouduser) GetICustomCloudpolicies ¶
func (user *SClouduser) GetICustomCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
func (*SClouduser) GetISystemCloudpolicies ¶
func (user *SClouduser) GetISystemCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
func (*SClouduser) GetInviteUrl ¶
func (self *SClouduser) GetInviteUrl() string
func (*SClouduser) GetName ¶
func (user *SClouduser) GetName() string
func (*SClouduser) IsConsoleLogin ¶
func (user *SClouduser) IsConsoleLogin() bool
func (*SClouduser) ResetPassword ¶
func (user *SClouduser) ResetPassword(password string) error
type SDBInstance ¶
type SDBInstance struct { multicloud.SDBInstanceBase Kind string State string DatabaseVersion string Settings SDBInstanceSetting Etag string MasterInstanceName string IpAddresses []SDBInstanceIpAddress ServerCaCert SDBInstanceCaCert InstanceType string Project string ServiceAccountEmailAddress string BackendType string SelfLink string ConnectionName string Name string Region string GceZone string // contains filtered or unexported fields }
func (*SDBInstance) ChangeConfig ¶
func (rds *SDBInstance) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedDBInstanceChangeConfig) error
func (*SDBInstance) ClosePublicConnection ¶
func (rds *SDBInstance) ClosePublicConnection() error
func (*SDBInstance) CreateAccount ¶
func (rds *SDBInstance) CreateAccount(conf *cloudprovider.SDBInstanceAccountCreateConfig) error
func (*SDBInstance) CreateDatabase ¶
func (rds *SDBInstance) CreateDatabase(conf *cloudprovider.SDBInstanceDatabaseCreateConfig) error
func (*SDBInstance) CreateIBackup ¶
func (rds *SDBInstance) CreateIBackup(conf *cloudprovider.SDBInstanceBackupCreateConfig) (string, error)
func (*SDBInstance) Delete ¶
func (rds *SDBInstance) Delete() error
func (*SDBInstance) GetBillingType ¶
func (rds *SDBInstance) GetBillingType() string
func (*SDBInstance) GetCategory ¶
func (rds *SDBInstance) GetCategory() string
func (*SDBInstance) GetConnectionStr ¶
func (rds *SDBInstance) GetConnectionStr() string
func (*SDBInstance) GetCreatedAt ¶
func (rds *SDBInstance) GetCreatedAt() time.Time
func (*SDBInstance) GetDBNetwork ¶
func (rds *SDBInstance) GetDBNetwork() (*cloudprovider.SDBInstanceNetwork, error)
func (*SDBInstance) GetDiskSizeGB ¶
func (rds *SDBInstance) GetDiskSizeGB() int
func (*SDBInstance) GetEngine ¶
func (rds *SDBInstance) GetEngine() string
func (*SDBInstance) GetEngineVersion ¶
func (rds *SDBInstance) GetEngineVersion() string
func (*SDBInstance) GetExpiredAt ¶
func (rds *SDBInstance) GetExpiredAt() time.Time
func (*SDBInstance) GetGlobalId ¶
func (rds *SDBInstance) GetGlobalId() string
func (*SDBInstance) GetIDBInstanceAccounts ¶
func (rds *SDBInstance) GetIDBInstanceAccounts() ([]cloudprovider.ICloudDBInstanceAccount, error)
func (*SDBInstance) GetIDBInstanceBackups ¶
func (rds *SDBInstance) GetIDBInstanceBackups() ([]cloudprovider.ICloudDBInstanceBackup, error)
func (*SDBInstance) GetIDBInstanceDatabases ¶
func (rds *SDBInstance) GetIDBInstanceDatabases() ([]cloudprovider.ICloudDBInstanceDatabase, error)
func (*SDBInstance) GetIDBInstanceParameters ¶
func (rds *SDBInstance) GetIDBInstanceParameters() ([]cloudprovider.ICloudDBInstanceParameter, error)
func (*SDBInstance) GetIVpcId ¶
func (rds *SDBInstance) GetIVpcId() string
func (*SDBInstance) GetId ¶
func (rds *SDBInstance) GetId() string
func (*SDBInstance) GetInstanceType ¶
func (rds *SDBInstance) GetInstanceType() string
func (*SDBInstance) GetInternalConnectionStr ¶
func (rds *SDBInstance) GetInternalConnectionStr() string
func (*SDBInstance) GetMaintainTime ¶
func (rds *SDBInstance) GetMaintainTime() string
func (*SDBInstance) GetMasterInstanceId ¶
func (rds *SDBInstance) GetMasterInstanceId() string
func (*SDBInstance) GetName ¶
func (rds *SDBInstance) GetName() string
func (*SDBInstance) GetPort ¶
func (rds *SDBInstance) GetPort() int
func (*SDBInstance) GetProjectId ¶
func (rds *SDBInstance) GetProjectId() string
func (*SDBInstance) GetSecurityGroupId ¶
func (rds *SDBInstance) GetSecurityGroupId() string
func (*SDBInstance) GetStatus ¶
func (rds *SDBInstance) GetStatus() string
func (*SDBInstance) GetStorageType ¶
func (rds *SDBInstance) GetStorageType() string
func (*SDBInstance) GetSysTags ¶
func (self *SDBInstance) GetSysTags() map[string]string
func (*SDBInstance) GetVcpuCount ¶
func (rds *SDBInstance) GetVcpuCount() int
func (*SDBInstance) GetVmemSizeMB ¶
func (rds *SDBInstance) GetVmemSizeMB() int
func (*SDBInstance) GetZone1Id ¶
func (rds *SDBInstance) GetZone1Id() string
func (*SDBInstance) GetZone2Id ¶
func (rds *SDBInstance) GetZone2Id() string
func (*SDBInstance) GetZone3Id ¶
func (rds *SDBInstance) GetZone3Id() string
func (*SDBInstance) IsEmulated ¶
func (rds *SDBInstance) IsEmulated() bool
func (*SDBInstance) OpenPublicConnection ¶
func (rds *SDBInstance) OpenPublicConnection() error
func (*SDBInstance) Reboot ¶
func (rds *SDBInstance) Reboot() error
func (*SDBInstance) RecoveryFromBackup ¶
func (rds *SDBInstance) RecoveryFromBackup(conf *cloudprovider.SDBInstanceRecoveryConfig) error
func (*SDBInstance) Refresh ¶
func (rds *SDBInstance) Refresh() error
func (*SDBInstance) Renew ¶
func (rds *SDBInstance) Renew(bc billing.SBillingCycle) error
type SDBInstanceAccount ¶
type SDBInstanceAccount struct { multicloud.SDBInstanceAccountBase GoogleTags Kind string Etag string Name string Host string Instance string SelfLink string Project string SqlserverUserDetails SSqlserverUserDetails // contains filtered or unexported fields }
func (*SDBInstanceAccount) Delete ¶
func (account *SDBInstanceAccount) Delete() error
func (*SDBInstanceAccount) GetHost ¶
func (account *SDBInstanceAccount) GetHost() string
func (*SDBInstanceAccount) GetIDBInstanceAccountPrivileges ¶
func (account *SDBInstanceAccount) GetIDBInstanceAccountPrivileges() ([]cloudprovider.ICloudDBInstanceAccountPrivilege, error)
func (*SDBInstanceAccount) GetName ¶
func (account *SDBInstanceAccount) GetName() string
func (*SDBInstanceAccount) GrantPrivilege ¶
func (account *SDBInstanceAccount) GrantPrivilege(database, privilege string) error
func (*SDBInstanceAccount) Refresh ¶
func (account *SDBInstanceAccount) Refresh() error
func (*SDBInstanceAccount) ResetPassword ¶
func (account *SDBInstanceAccount) ResetPassword(password string) error
func (*SDBInstanceAccount) RevokePrivilege ¶
func (account *SDBInstanceAccount) RevokePrivilege(database string) error
type SDBInstanceBackup ¶
type SDBInstanceBackup struct { multicloud.SDBInstanceBackupBase GoogleTags Kind string Status string EnqueuedTime string Id string StartTime time.Time EndTime time.Time Type string Description string WindowStartTime time.Time Instance string SelfLink string Location string Error OperationError // contains filtered or unexported fields }
func (*SDBInstanceBackup) Delete ¶
func (backup *SDBInstanceBackup) Delete() error
func (*SDBInstanceBackup) GetBackupMode ¶
func (backup *SDBInstanceBackup) GetBackupMode() string
func (*SDBInstanceBackup) GetBackupSizeMb ¶
func (backup *SDBInstanceBackup) GetBackupSizeMb() int
func (*SDBInstanceBackup) GetDBInstanceId ¶
func (backup *SDBInstanceBackup) GetDBInstanceId() string
func (*SDBInstanceBackup) GetDBNames ¶
func (backup *SDBInstanceBackup) GetDBNames() string
func (*SDBInstanceBackup) GetEndTime ¶
func (backup *SDBInstanceBackup) GetEndTime() time.Time
func (*SDBInstanceBackup) GetEngine ¶
func (backup *SDBInstanceBackup) GetEngine() string
func (*SDBInstanceBackup) GetEngineVersion ¶
func (backup *SDBInstanceBackup) GetEngineVersion() string
func (*SDBInstanceBackup) GetGlobalId ¶
func (backup *SDBInstanceBackup) GetGlobalId() string
func (*SDBInstanceBackup) GetId ¶
func (backup *SDBInstanceBackup) GetId() string
func (*SDBInstanceBackup) GetName ¶
func (backup *SDBInstanceBackup) GetName() string
func (*SDBInstanceBackup) GetProjectId ¶
func (backup *SDBInstanceBackup) GetProjectId() string
func (*SDBInstanceBackup) GetStartTime ¶
func (backup *SDBInstanceBackup) GetStartTime() time.Time
func (*SDBInstanceBackup) GetStatus ¶
func (backup *SDBInstanceBackup) GetStatus() string
func (*SDBInstanceBackup) IsEmulated ¶
func (backup *SDBInstanceBackup) IsEmulated() bool
func (*SDBInstanceBackup) Refresh ¶
func (backup *SDBInstanceBackup) Refresh() error
type SDBInstanceCaCert ¶
type SDBInstanceDatabase ¶
type SDBInstanceDatabase struct { multicloud.SResourceBase GoogleTags Kind string Collation string Etag string Name string Instance string SelfLink string Charset string Project string SqlserverDatabaseDetails SSqlserverDatabaseDetails // contains filtered or unexported fields }
func (*SDBInstanceDatabase) Delete ¶
func (database *SDBInstanceDatabase) Delete() error
func (*SDBInstanceDatabase) GetCharacterSet ¶
func (database *SDBInstanceDatabase) GetCharacterSet() string
func (*SDBInstanceDatabase) GetGlobalId ¶
func (database *SDBInstanceDatabase) GetGlobalId() string
func (*SDBInstanceDatabase) GetId ¶
func (database *SDBInstanceDatabase) GetId() string
func (*SDBInstanceDatabase) GetName ¶
func (database *SDBInstanceDatabase) GetName() string
func (*SDBInstanceDatabase) GetStatus ¶
func (database *SDBInstanceDatabase) GetStatus() string
func (*SDBInstanceDatabase) IsEmulated ¶
func (database *SDBInstanceDatabase) IsEmulated() bool
func (*SDBInstanceDatabase) Refresh ¶
func (database *SDBInstanceDatabase) Refresh() error
type SDBInstanceIpAddress ¶
type SDBInstanceParameter ¶
type SDBInstanceParameter struct { Name string Value string // contains filtered or unexported fields }
func (*SDBInstanceParameter) GetDescription ¶
func (parameter *SDBInstanceParameter) GetDescription() string
func (*SDBInstanceParameter) GetGlobalId ¶
func (parameter *SDBInstanceParameter) GetGlobalId() string
func (*SDBInstanceParameter) GetKey ¶
func (parameter *SDBInstanceParameter) GetKey() string
func (*SDBInstanceParameter) GetValue ¶
func (parameter *SDBInstanceParameter) GetValue() string
type SDBInstanceSetting ¶
type SDBInstanceSetting struct { AuthorizedGaeApplications []string Tier string Kind string AvailabilityType string PricingPlan string ReplicationType string ActivationPolicy string IpConfiguration SDBInstanceSettingIpConfiguration LocationPreference SDBInstanceLocationPreference DataDiskType string MaintenanceWindow SDBInstanceMaintenanceWindow BackupConfiguration SDBInstanceBackupConfiguration SettingsVersion string StorageAutoResizeLimit string StorageAutoResize bool DataDiskSizeGb int DatabaseFlags []SDBInstanceParameter UserLabels map[string]string }
type SDBInstanceSettingIpConfiguration ¶
type SDBInstanceSettingIpConfiguration struct { PrivateNetwork string AuthorizedNetworks []SAuthorizedNetwork Ipv4Enabled bool }
type SDailySchedule ¶
type SDayOfWeek ¶
type SDeprecated ¶
type SDisk ¶
type SDisk struct { SResourceBase multicloud.SDisk GoogleTags ProvisionedIops int CreationTimestamp time.Time SizeGB int Zone string Status string Type string SourceImage string LastAttachTimestamp time.Time LastDetachTimestamp time.Time LabelFingerprint string PhysicalBlockSizeBytes string ResourcePolicies []string Users []string Kind string // contains filtered or unexported fields }
func (*SDisk) CreateISnapshot ¶
func (disk *SDisk) CreateISnapshot(ctx context.Context, name string, desc string) (cloudprovider.ICloudSnapshot, error)
func (*SDisk) GetAccessPath ¶
func (*SDisk) GetBillingType ¶
func (*SDisk) GetCacheMode ¶
func (*SDisk) GetCreatedAt ¶
func (*SDisk) GetDiskFormat ¶
func (*SDisk) GetDiskSizeMB ¶
func (*SDisk) GetDiskType ¶
func (*SDisk) GetExpiredAt ¶
func (*SDisk) GetExtSnapshotPolicyIds ¶
func (*SDisk) GetFsFormat ¶
func (*SDisk) GetISnapshot ¶
func (disk *SDisk) GetISnapshot(id string) (cloudprovider.ICloudSnapshot, error)
func (*SDisk) GetISnapshots ¶
func (disk *SDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
func (*SDisk) GetIStorage ¶
func (disk *SDisk) GetIStorage() (cloudprovider.ICloudStorage, error)
func (*SDisk) GetIStorageId ¶
func (*SDisk) GetIsAutoDelete ¶
func (*SDisk) GetIsNonPersistent ¶
func (*SDisk) GetMountpoint ¶
func (*SDisk) GetProjectId ¶
func (*SDisk) GetTemplateId ¶
func (*SDisk) IsEmulated ¶
type SFirewall ¶
type SFirewall struct { Id string CreationTimestamp time.Time Name string Description string Network string Priority int SourceRanges []string DestinationRanges []string TargetServiceAccounts []string TargetTags []string Allowed []SFirewallAction Denied []SFirewallAction Direction string Disabled bool SelfLink string Kind string }
type SFirewallAction ¶
type SForwardingRule ¶
type SForwardingRule struct { SResourceBase CreationTimestamp string `json:"creationTimestamp"` Description string `json:"description"` Region string `json:"region"` IPAddress string `json:"IPAddress"` IPProtocol string `json:"IPProtocol"` PortRange string `json:"portRange"` Target string `json:"target"` LoadBalancingScheme string `json:"loadBalancingScheme"` Subnetwork string `json:"subnetwork"` Network string `json:"network"` NetworkTier string `json:"networkTier"` LabelFingerprint string `json:"labelFingerprint"` Fingerprint string `json:"fingerprint"` Kind string `json:"kind"` Ports []string `json:"ports"` BackendService string `json:"backendService"` }
type SGlobalNetwork ¶
type SGlobalNetwork struct { GoogleTags SResourceBase CreationTimestamp time.Time Description string AutoCreateSubnetworks bool Subnetworks []string RoutingConfig map[string]string Kind string // contains filtered or unexported fields }
func (*SGlobalNetwork) Delete ¶
func (self *SGlobalNetwork) Delete() error
func (*SGlobalNetwork) GetCreatedAt ¶
func (self *SGlobalNetwork) GetCreatedAt() time.Time
func (*SGlobalNetwork) GetStatus ¶
func (self *SGlobalNetwork) GetStatus() string
func (*SGlobalNetwork) IsEmulated ¶
func (self *SGlobalNetwork) IsEmulated() bool
func (*SGlobalNetwork) Refresh ¶
func (self *SGlobalNetwork) Refresh() error
type SGoogleClient ¶
type SGoogleClient struct { *GoogleClientConfig // contains filtered or unexported fields }
func NewGoogleClient ¶
func NewGoogleClient(cfg *GoogleClientConfig) (*SGoogleClient, error)
func (*SGoogleClient) CreateGlobalNetwork ¶
func (self *SGoogleClient) CreateGlobalNetwork(name string, desc string) (*SGlobalNetwork, error)
func (*SGoogleClient) CreateICloudGlobalVpc ¶
func (self *SGoogleClient) CreateICloudGlobalVpc(opts *cloudprovider.GlobalVpcCreateOptions) (cloudprovider.ICloudGlobalVpc, error)
func (*SGoogleClient) CreateICloudpolicy ¶
func (self *SGoogleClient) CreateICloudpolicy(opts *cloudprovider.SCloudpolicyCreateOptions) (cloudprovider.ICloudpolicy, error)
func (*SGoogleClient) CreateIClouduser ¶
func (client *SGoogleClient) CreateIClouduser(conf *cloudprovider.SClouduserCreateConfig) (cloudprovider.IClouduser, error)
func (*SGoogleClient) CreateRole ¶
func (self *SGoogleClient) CreateRole(permissions []string, name, desc string) (*SRole, error)
func (*SGoogleClient) CreateSecurityGroupRule ¶
func (self *SGoogleClient) CreateSecurityGroupRule(rule cloudprovider.SecurityRule, vpcId string, tag string, serviceAccount string) error
func (*SGoogleClient) DeleteRole ¶
func (self *SGoogleClient) DeleteRole(id string) error
func (*SGoogleClient) DeleteSecgroupRule ¶
func (self *SGoogleClient) DeleteSecgroupRule(rule cloudprovider.SecurityRule) error
func (*SGoogleClient) GetAccountId ¶
func (self *SGoogleClient) GetAccountId() string
func (*SGoogleClient) GetBySelfId ¶
func (self *SGoogleClient) GetBySelfId(id string, retval interface{}) error
func (*SGoogleClient) GetCapabilities ¶
func (self *SGoogleClient) GetCapabilities() []string
func (*SGoogleClient) GetEcsMetrics ¶
func (self *SGoogleClient) GetEcsMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
func (*SGoogleClient) GetFirewall ¶
func (self *SGoogleClient) GetFirewall(id string) (*SFirewall, error)
func (*SGoogleClient) GetFirewalls ¶
func (*SGoogleClient) GetGlobalNetwork ¶
func (cli *SGoogleClient) GetGlobalNetwork(id string) (*SGlobalNetwork, error)
func (*SGoogleClient) GetGlobalNetworks ¶
func (cli *SGoogleClient) GetGlobalNetworks(maxResults int, pageToken string) ([]SGlobalNetwork, error)
func (*SGoogleClient) GetICloudGlobalVpcById ¶
func (self *SGoogleClient) GetICloudGlobalVpcById(id string) (cloudprovider.ICloudGlobalVpc, error)
func (*SGoogleClient) GetICloudGlobalVpcs ¶
func (self *SGoogleClient) GetICloudGlobalVpcs() ([]cloudprovider.ICloudGlobalVpc, error)
func (*SGoogleClient) GetIClouduserByName ¶
func (client *SGoogleClient) GetIClouduserByName(name string) (cloudprovider.IClouduser, error)
func (*SGoogleClient) GetICloudusers ¶
func (client *SGoogleClient) GetICloudusers() ([]cloudprovider.IClouduser, error)
func (*SGoogleClient) GetICustomCloudpolicies ¶
func (self *SGoogleClient) GetICustomCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
func (*SGoogleClient) GetIProjects ¶
func (self *SGoogleClient) GetIProjects() ([]cloudprovider.ICloudProject, error)
func (*SGoogleClient) GetIRegionById ¶
func (self *SGoogleClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)
func (*SGoogleClient) GetIRegions ¶
func (self *SGoogleClient) GetIRegions() []cloudprovider.ICloudRegion
func (*SGoogleClient) GetISystemCloudpolicies ¶
func (self *SGoogleClient) GetISystemCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
func (*SGoogleClient) GetIamPolicy ¶
func (self *SGoogleClient) GetIamPolicy() (*SIamPolicy, error)
func (*SGoogleClient) GetMetrics ¶
func (self *SGoogleClient) GetMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
func (*SGoogleClient) GetMonitorData ¶
func (*SGoogleClient) GetOperation ¶
func (self *SGoogleClient) GetOperation(id string) (*SOperation, error)
func (*SGoogleClient) GetProject ¶
func (cli *SGoogleClient) GetProject(id string) (*SProject, error)
func (*SGoogleClient) GetProjects ¶
func (cli *SGoogleClient) GetProjects() ([]SProject, error)
func (*SGoogleClient) GetRegion ¶
func (self *SGoogleClient) GetRegion(regionId string) *SRegion
func (*SGoogleClient) GetRegions ¶
func (self *SGoogleClient) GetRegions() []SRegion
func (*SGoogleClient) GetRoles ¶
func (self *SGoogleClient) GetRoles(projectId string) ([]SRole, error)
https://cloud.google.com/iam/docs/reference/rest/v1/roles/list
func (*SGoogleClient) GetSamlSpInitiatedLoginUrl ¶
func (self *SGoogleClient) GetSamlSpInitiatedLoginUrl(idpName string) string
func (*SGoogleClient) GetSubAccounts ¶
func (client *SGoogleClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
func (*SGoogleClient) Insert ¶
func (self *SGoogleClient) Insert(resource string, body jsonutils.JSONObject, retval interface{}) error
func (*SGoogleClient) IsSupportCloudId ¶
func (self *SGoogleClient) IsSupportCloudId() bool
func (*SGoogleClient) ListOrganizations ¶
func (self *SGoogleClient) ListOrganizations() ([]SOrganization, error)
https://cloud.google.com/resource-manager/reference/rest/v1/organizations/search require Organization Viewer privilege
func (*SGoogleClient) SetIamPlicy ¶
func (self *SGoogleClient) SetIamPlicy(policy *SIamPolicy) error
func (*SGoogleClient) TestIam ¶
func (self *SGoogleClient) TestIam(permissions []string) ([]string, error)
func (*SGoogleClient) UpdateRole ¶
func (self *SGoogleClient) UpdateRole(id string, permissions []string) error
func (*SGoogleClient) WaitOperation ¶
func (self *SGoogleClient) WaitOperation(id string, resource, action string) (string, error)
type SHost ¶
type SHost struct { multicloud.SHostBase // contains filtered or unexported fields }
func (*SHost) CreateVM ¶
func (host *SHost) CreateVM(desc *cloudprovider.SManagedVMCreateConfig) (cloudprovider.ICloudVM, error)
func (*SHost) GetAccessIp ¶
func (*SHost) GetAccessMac ¶
func (*SHost) GetCpuCount ¶
func (*SHost) GetCpuDesc ¶
func (*SHost) GetEnabled ¶
func (*SHost) GetGlobalId ¶
func (*SHost) GetHostStatus ¶
func (*SHost) GetHostType ¶
func (*SHost) GetIHostNics ¶
func (host *SHost) GetIHostNics() ([]cloudprovider.ICloudHostNetInterface, error)
func (*SHost) GetIStorageById ¶
func (host *SHost) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
func (*SHost) GetIStorages ¶
func (host *SHost) GetIStorages() ([]cloudprovider.ICloudStorage, error)
func (*SHost) GetIVMById ¶
func (host *SHost) GetIVMById(id string) (cloudprovider.ICloudVM, error)
func (*SHost) GetIWires ¶
func (host *SHost) GetIWires() ([]cloudprovider.ICloudWire, error)
func (*SHost) GetIsMaintenance ¶
func (*SHost) GetMemSizeMB ¶
func (*SHost) GetNodeCount ¶
func (*SHost) GetStorageSizeMB ¶
func (*SHost) GetStorageType ¶
func (*SHost) GetSysInfo ¶
func (host *SHost) GetSysInfo() jsonutils.JSONObject
func (*SHost) GetVersion ¶
func (*SHost) IsEmulated ¶
type SHourlySchedule ¶
type SIamConfiguration ¶
type SIamConfiguration struct { BucketPolicyOnly SBucketPolicyOnly UniformBucketLevelAccess SUniformBucketLevelAccess }
type SIamPolicy ¶
type SIamPolicy struct { Version int Etag string Bindings []SBinding // contains filtered or unexported fields }
func (*SIamPolicy) AttachPolicy ¶
func (policy *SIamPolicy) AttachPolicy(user string, roles []string) error
func (*SIamPolicy) DeleteUser ¶
func (policy *SIamPolicy) DeleteUser(user string) error
func (*SIamPolicy) DetachPolicy ¶
func (policy *SIamPolicy) DetachPolicy(user, role string) error
func (*SIamPolicy) GetICloudusers ¶
func (policy *SIamPolicy) GetICloudusers() ([]cloudprovider.IClouduser, error)
type SImage ¶
type SImage struct { multicloud.SImageBase GoogleTags SResourceBase Name string SelfLink string Id string CreationTimestamp time.Time Description string SourceType string RawDisk map[string]string Deprecated SDeprecated Status string ArchiveSizeBytes int64 DiskSizeGb int Licenses []string Family string LabelFingerprint string GuestOsFeatures []GuestOsFeature LicenseCodes []string StorageLocations []string Kind string // contains filtered or unexported fields }
func (*SImage) GetBios ¶
func (image *SImage) GetBios() cloudprovider.TBiosType
func (*SImage) GetCreatedAt ¶
func (*SImage) GetFullOsName ¶
func (*SImage) GetGlobalId ¶
func (*SImage) GetIStoragecache ¶
func (image *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache
func (*SImage) GetImageFormat ¶
func (*SImage) GetImageStatus ¶
func (*SImage) GetImageType ¶
func (image *SImage) GetImageType() cloudprovider.TImageType
func (*SImage) GetMinOsDiskSizeGb ¶
func (*SImage) GetMinRamSizeMb ¶
func (*SImage) GetOsType ¶
func (image *SImage) GetOsType() cloudprovider.TOsType
func (*SImage) GetOsVersion ¶
func (*SImage) GetSizeByte ¶
func (*SImage) IsEmulated ¶
type SInstance ¶
type SInstance struct { multicloud.SInstanceBase GoogleTags SResourceBase CreationTimestamp time.Time Description string Tags SInstanceTag MachineType string Status string Zone string CanIpForward bool NetworkInterfaces []SNetworkInterface Disks []InstanceDisk Metadata SMetadata ServiceAccounts []ServiceAccount Scheduling map[string]interface{} CpuPlatform string LabelFingerprint string StartRestricted bool DeletionProtection bool Kind string // contains filtered or unexported fields }
func (*SInstance) AssignSecurityGroup ¶
func (*SInstance) AttachDisk ¶
func (*SInstance) ChangeConfig ¶
func (instance *SInstance) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedVMChangeConfig) error
func (*SInstance) DetachDisk ¶
func (*SInstance) GetBillingType ¶
func (*SInstance) GetBios ¶
func (instance *SInstance) GetBios() cloudprovider.TBiosType
func (*SInstance) GetBootOrder ¶
func (*SInstance) GetCreatedAt ¶
func (*SInstance) GetExpiredAt ¶
func (*SInstance) GetFullOsName ¶
func (*SInstance) GetHostname ¶
func (*SInstance) GetHypervisor ¶
func (*SInstance) GetIDisks ¶
func (instance *SInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error)
func (*SInstance) GetIHost ¶
func (instance *SInstance) GetIHost() cloudprovider.ICloudHost
func (*SInstance) GetIHostId ¶
func (*SInstance) GetINics ¶
func (instance *SInstance) GetINics() ([]cloudprovider.ICloudNic, error)
func (*SInstance) GetInstanceType ¶
func (*SInstance) GetMachine ¶
func (*SInstance) GetOsType ¶
func (instance *SInstance) GetOsType() cloudprovider.TOsType
func (*SInstance) GetOsVersion ¶
func (*SInstance) GetProjectId ¶
func (*SInstance) GetSecurityGroupIds ¶
func (*SInstance) GetSerialOutput ¶
func (*SInstance) GetStatus ¶
PROVISIONING, STAGING, RUNNING, STOPPING, STOPPED, SUSPENDING, SUSPENDED, and TERMINATED.
func (*SInstance) GetVNCInfo ¶
func (instance *SInstance) GetVNCInfo(input *cloudprovider.ServerVncInput) (*cloudprovider.ServerVncOutput, error)
func (*SInstance) GetVcpuCount ¶
func (*SInstance) GetVmemSizeMB ¶
func (*SInstance) RebuildRoot ¶
func (instance *SInstance) RebuildRoot(ctx context.Context, desc *cloudprovider.SManagedVMRebuildRootConfig) (string, error)
func (*SInstance) SaveImage ¶
func (self *SInstance) SaveImage(opts *cloudprovider.SaveImageOptions) (cloudprovider.ICloudImage, error)
func (*SInstance) SetSecurityGroups ¶
func (*SInstance) StopVM ¶
func (instance *SInstance) StopVM(ctx context.Context, opts *cloudprovider.ServerStopOptions) error
func (*SInstance) UpdateUserData ¶
type SInstanceGroup ¶
type SInstanceGroup struct { SResourceBase CreationTimestamp string `json:"creationTimestamp"` Description string `json:"description"` NamedPorts []NamedPort `json:"namedPorts"` Network string `json:"network"` Fingerprint string `json:"fingerprint"` Zone string `json:"zone"` Size int64 `json:"size"` Region string `json:"region"` Subnetwork string `json:"subnetwork"` Kind string `json:"kind"` // contains filtered or unexported fields }
func (*SInstanceGroup) GetInstances ¶
func (self *SInstanceGroup) GetInstances() ([]SInstanceGroupInstance, error)
type SInstanceGroupInstance ¶
type SInstanceTag ¶
type SLifecycle ¶
type SLifecycle struct {
Rule []SLifecycleRule
}
type SLifecycleRule ¶
type SLifecycleRule struct { Action SLifecycleRuleAction Condition SLifecycleRuleCondition }
type SLifecycleRuleAction ¶
type SLifecycleRuleAction struct {
Type string
}
type SLifecycleRuleCondition ¶
type SLifecycleRuleCondition struct {
Age int
}
type SLoadBalancerBackendGroup ¶
type SLoadBalancerBackendGroup struct { Id string `json:"id"` Name string `json:"name"` // contains filtered or unexported fields }
func (*SLoadBalancerBackendGroup) AddBackendServer ¶
func (self *SLoadBalancerBackendGroup) AddBackendServer(serverId string, weight int, port int) (cloudprovider.ICloudLoadbalancerBackend, error)
func (*SLoadBalancerBackendGroup) Delete ¶
func (self *SLoadBalancerBackendGroup) Delete(ctx context.Context) error
func (*SLoadBalancerBackendGroup) GetCreatedAt ¶
func (self *SLoadBalancerBackendGroup) GetCreatedAt() time.Time
func (*SLoadBalancerBackendGroup) GetGlobalId ¶
func (self *SLoadBalancerBackendGroup) GetGlobalId() string
func (*SLoadBalancerBackendGroup) GetHealthCheck ¶
func (self *SLoadBalancerBackendGroup) GetHealthCheck() (*cloudprovider.SLoadbalancerHealthCheck, error)
func (*SLoadBalancerBackendGroup) GetILoadbalancerBackendById ¶
func (self *SLoadBalancerBackendGroup) GetILoadbalancerBackendById(backendId string) (cloudprovider.ICloudLoadbalancerBackend, error)
func (*SLoadBalancerBackendGroup) GetILoadbalancerBackends ¶
func (self *SLoadBalancerBackendGroup) GetILoadbalancerBackends() ([]cloudprovider.ICloudLoadbalancerBackend, error)
func (*SLoadBalancerBackendGroup) GetId ¶
func (self *SLoadBalancerBackendGroup) GetId() string
func (*SLoadBalancerBackendGroup) GetLoadbalancerBackends ¶
func (self *SLoadBalancerBackendGroup) GetLoadbalancerBackends() ([]SLoadbalancerBackend, error)
func (*SLoadBalancerBackendGroup) GetLoadbalancerId ¶
func (self *SLoadBalancerBackendGroup) GetLoadbalancerId() string
func (*SLoadBalancerBackendGroup) GetName ¶
func (self *SLoadBalancerBackendGroup) GetName() string
func (*SLoadBalancerBackendGroup) GetProjectId ¶
func (self *SLoadBalancerBackendGroup) GetProjectId() string
func (*SLoadBalancerBackendGroup) GetProtocolType ¶
func (self *SLoadBalancerBackendGroup) GetProtocolType() string
func (*SLoadBalancerBackendGroup) GetScheduler ¶
func (self *SLoadBalancerBackendGroup) GetScheduler() string
func (*SLoadBalancerBackendGroup) GetStatus ¶
func (self *SLoadBalancerBackendGroup) GetStatus() string
func (*SLoadBalancerBackendGroup) GetStickySession ¶
func (self *SLoadBalancerBackendGroup) GetStickySession() (*cloudprovider.SLoadbalancerStickySession, error)
func (*SLoadBalancerBackendGroup) GetSysTags ¶
func (self *SLoadBalancerBackendGroup) GetSysTags() map[string]string
func (*SLoadBalancerBackendGroup) GetTags ¶
func (self *SLoadBalancerBackendGroup) GetTags() (map[string]string, error)
func (*SLoadBalancerBackendGroup) GetType ¶
func (self *SLoadBalancerBackendGroup) GetType() string
func (*SLoadBalancerBackendGroup) IsDefault ¶
func (self *SLoadBalancerBackendGroup) IsDefault() bool
func (*SLoadBalancerBackendGroup) IsEmulated ¶
func (self *SLoadBalancerBackendGroup) IsEmulated() bool
func (*SLoadBalancerBackendGroup) Refresh ¶
func (self *SLoadBalancerBackendGroup) Refresh() error
func (*SLoadBalancerBackendGroup) RemoveBackendServer ¶
func (self *SLoadBalancerBackendGroup) RemoveBackendServer(serverId string, weight int, port int) error
func (*SLoadBalancerBackendGroup) SetTags ¶
func (self *SLoadBalancerBackendGroup) SetTags(tags map[string]string, replace bool) error
func (*SLoadBalancerBackendGroup) Sync ¶
func (self *SLoadBalancerBackendGroup) Sync(ctx context.Context, group *cloudprovider.SLoadbalancerBackendGroup) error
type SLoadbalancer ¶
type SLoadbalancer struct { SResourceBase // contains filtered or unexported fields }
func (*SLoadbalancer) CreateILoadBalancerBackendGroup ¶
func (self *SLoadbalancer) CreateILoadBalancerBackendGroup(group *cloudprovider.SLoadbalancerBackendGroup) (cloudprovider.ICloudLoadbalancerBackendGroup, error)
func (*SLoadbalancer) CreateILoadBalancerListener ¶
func (self *SLoadbalancer) CreateILoadBalancerListener(ctx context.Context, listener *cloudprovider.SLoadbalancerListener) (cloudprovider.ICloudLoadbalancerListener, error)
func (*SLoadbalancer) GetAddress ¶
func (self *SLoadbalancer) GetAddress() string
对应forwardingRules地址,存在多个前端IP的情况下,只展示按拉丁字母排序最前的一个地址。其他地址需要到详情中查看 External Internal InternalManaged InternalSelfManaged Invalid UndefinedLoadBalancingScheme
func (*SLoadbalancer) GetAddressType ¶
func (self *SLoadbalancer) GetAddressType() string
func (*SLoadbalancer) GetBackendServices ¶
func (self *SLoadbalancer) GetBackendServices() ([]SBackendServices, error)
func (*SLoadbalancer) GetChargeType ¶
func (self *SLoadbalancer) GetChargeType() string
func (*SLoadbalancer) GetCreatedAt ¶
func (self *SLoadbalancer) GetCreatedAt() time.Time
func (*SLoadbalancer) GetEgressMbps ¶
func (self *SLoadbalancer) GetEgressMbps() int
func (*SLoadbalancer) GetForwardingRules ¶
func (self *SLoadbalancer) GetForwardingRules() ([]SForwardingRule, error)
ForwardingRule 目标是: target proxy or backend service http&https 是由target proxy 转发到后端服务
func (*SLoadbalancer) GetHTTPLoadbalancerListeners ¶
func (self *SLoadbalancer) GetHTTPLoadbalancerListeners() ([]SLoadbalancerListener, error)
func (*SLoadbalancer) GetHealthCheckMaps ¶
func (self *SLoadbalancer) GetHealthCheckMaps() (map[string]HealthChecks, error)
func (*SLoadbalancer) GetHealthChecks ¶
func (self *SLoadbalancer) GetHealthChecks() ([]HealthChecks, error)
func (*SLoadbalancer) GetIEIP ¶
func (self *SLoadbalancer) GetIEIP() (cloudprovider.ICloudEIP, error)
func (*SLoadbalancer) GetILoadBalancerBackendGroupById ¶
func (self *SLoadbalancer) GetILoadBalancerBackendGroupById(groupId string) (cloudprovider.ICloudLoadbalancerBackendGroup, error)
func (*SLoadbalancer) GetILoadBalancerBackendGroups ¶
func (self *SLoadbalancer) GetILoadBalancerBackendGroups() ([]cloudprovider.ICloudLoadbalancerBackendGroup, error)
func (*SLoadbalancer) GetILoadBalancerListenerById ¶
func (self *SLoadbalancer) GetILoadBalancerListenerById(listenerId string) (cloudprovider.ICloudLoadbalancerListener, error)
func (*SLoadbalancer) GetILoadBalancerListeners ¶
func (self *SLoadbalancer) GetILoadBalancerListeners() ([]cloudprovider.ICloudLoadbalancerListener, error)
func (*SLoadbalancer) GetInstanceGroups ¶
func (self *SLoadbalancer) GetInstanceGroups() ([]SInstanceGroup, error)
func (*SLoadbalancer) GetInstanceGroupsMap ¶
func (self *SLoadbalancer) GetInstanceGroupsMap() (map[string]SInstanceGroup, error)
func (*SLoadbalancer) GetLoadbalancerBackendGroups ¶
func (self *SLoadbalancer) GetLoadbalancerBackendGroups() ([]SLoadBalancerBackendGroup, error)
func (*SLoadbalancer) GetLoadbalancerListeners ¶
func (self *SLoadbalancer) GetLoadbalancerListeners() ([]SLoadbalancerListener, error)
func (*SLoadbalancer) GetLoadbalancerSpec ¶
func (self *SLoadbalancer) GetLoadbalancerSpec() string
func (*SLoadbalancer) GetNetworkIds ¶
func (self *SLoadbalancer) GetNetworkIds() []string
func (*SLoadbalancer) GetNetworkLoadbalancerListeners ¶
func (self *SLoadbalancer) GetNetworkLoadbalancerListeners() ([]SLoadbalancerListener, error)
func (*SLoadbalancer) GetNetworkType ¶
func (self *SLoadbalancer) GetNetworkType() string
func (*SLoadbalancer) GetProjectId ¶
func (self *SLoadbalancer) GetProjectId() string
func (*SLoadbalancer) GetStatus ¶
func (self *SLoadbalancer) GetStatus() string
func (*SLoadbalancer) GetSysTags ¶
func (self *SLoadbalancer) GetSysTags() map[string]string
func (*SLoadbalancer) GetTargetHttpProxies ¶
func (self *SLoadbalancer) GetTargetHttpProxies() ([]STargetHttpProxy, error)
func (*SLoadbalancer) GetTargetHttpsProxies ¶
func (self *SLoadbalancer) GetTargetHttpsProxies() ([]STargetHttpsProxy, error)
func (*SLoadbalancer) GetVpcId ¶
func (self *SLoadbalancer) GetVpcId() string
func (*SLoadbalancer) GetZone1Id ¶
func (self *SLoadbalancer) GetZone1Id() string
func (*SLoadbalancer) GetZoneId ¶
func (self *SLoadbalancer) GetZoneId() string
func (*SLoadbalancer) IsEmulated ¶
func (self *SLoadbalancer) IsEmulated() bool
func (*SLoadbalancer) Refresh ¶
func (self *SLoadbalancer) Refresh() error
func (*SLoadbalancer) SetTags ¶
func (self *SLoadbalancer) SetTags(tags map[string]string, replace bool) error
func (*SLoadbalancer) Start ¶
func (self *SLoadbalancer) Start() error
func (*SLoadbalancer) Stop ¶
func (self *SLoadbalancer) Stop() error
type SLoadbalancerBackend ¶
type SLoadbalancerBackend struct { Backend SInstanceGroupInstance // backend Port int `json:"port"` // contains filtered or unexported fields }
func (*SLoadbalancerBackend) GetBackendId ¶
func (self *SLoadbalancerBackend) GetBackendId() string
func (*SLoadbalancerBackend) GetBackendRole ¶
func (self *SLoadbalancerBackend) GetBackendRole() string
func (*SLoadbalancerBackend) GetBackendType ¶
func (self *SLoadbalancerBackend) GetBackendType() string
func (*SLoadbalancerBackend) GetCreatedAt ¶
func (self *SLoadbalancerBackend) GetCreatedAt() time.Time
func (*SLoadbalancerBackend) GetGlobalId ¶
func (self *SLoadbalancerBackend) GetGlobalId() string
func (*SLoadbalancerBackend) GetId ¶
func (self *SLoadbalancerBackend) GetId() string
func (*SLoadbalancerBackend) GetIpAddress ¶
func (self *SLoadbalancerBackend) GetIpAddress() string
func (*SLoadbalancerBackend) GetName ¶
func (self *SLoadbalancerBackend) GetName() string
func (*SLoadbalancerBackend) GetPort ¶
func (self *SLoadbalancerBackend) GetPort() int
func (*SLoadbalancerBackend) GetProjectId ¶
func (self *SLoadbalancerBackend) GetProjectId() string
func (*SLoadbalancerBackend) GetStatus ¶
func (self *SLoadbalancerBackend) GetStatus() string
func (*SLoadbalancerBackend) GetSysTags ¶
func (self *SLoadbalancerBackend) GetSysTags() map[string]string
func (*SLoadbalancerBackend) GetTags ¶
func (self *SLoadbalancerBackend) GetTags() (map[string]string, error)
func (*SLoadbalancerBackend) GetWeight ¶
func (self *SLoadbalancerBackend) GetWeight() int
func (*SLoadbalancerBackend) IsEmulated ¶
func (self *SLoadbalancerBackend) IsEmulated() bool
func (*SLoadbalancerBackend) Refresh ¶
func (self *SLoadbalancerBackend) Refresh() error
type SLoadbalancerCertificate ¶
type SLoadbalancerCertificate struct { SResourceBase ID string `json:"id"` CreationTimestamp string `json:"creationTimestamp"` Certificate string `json:"certificate"` SelfManaged SelfManaged `json:"selfManaged"` Type string `json:"type"` ExpireTime time.Time `json:"expireTime"` Region string `json:"region"` Kind string `json:"kind"` // contains filtered or unexported fields }
func (*SLoadbalancerCertificate) Delete ¶
func (self *SLoadbalancerCertificate) Delete() error
func (*SLoadbalancerCertificate) GetCommonName ¶
func (self *SLoadbalancerCertificate) GetCommonName() string
func (*SLoadbalancerCertificate) GetCreatedAt ¶
func (self *SLoadbalancerCertificate) GetCreatedAt() time.Time
func (*SLoadbalancerCertificate) GetExpireTime ¶
func (self *SLoadbalancerCertificate) GetExpireTime() time.Time
func (*SLoadbalancerCertificate) GetFingerprint ¶
func (self *SLoadbalancerCertificate) GetFingerprint() string
func (*SLoadbalancerCertificate) GetPrivateKey ¶
func (self *SLoadbalancerCertificate) GetPrivateKey() string
func (*SLoadbalancerCertificate) GetProjectId ¶
func (self *SLoadbalancerCertificate) GetProjectId() string
func (*SLoadbalancerCertificate) GetPublickKey ¶
func (self *SLoadbalancerCertificate) GetPublickKey() string
func (*SLoadbalancerCertificate) GetStatus ¶
func (self *SLoadbalancerCertificate) GetStatus() string
func (*SLoadbalancerCertificate) GetSubjectAlternativeNames ¶
func (self *SLoadbalancerCertificate) GetSubjectAlternativeNames() string
func (*SLoadbalancerCertificate) GetSysTags ¶
func (self *SLoadbalancerCertificate) GetSysTags() map[string]string
func (*SLoadbalancerCertificate) GetTags ¶
func (self *SLoadbalancerCertificate) GetTags() (map[string]string, error)
func (*SLoadbalancerCertificate) IsEmulated ¶
func (self *SLoadbalancerCertificate) IsEmulated() bool
func (*SLoadbalancerCertificate) Refresh ¶
func (self *SLoadbalancerCertificate) Refresh() error
func (*SLoadbalancerCertificate) SetTags ¶
func (self *SLoadbalancerCertificate) SetTags(tags map[string]string, replace bool) error
func (*SLoadbalancerCertificate) Sync ¶
func (self *SLoadbalancerCertificate) Sync(name, privateKey, publickKey string) error
type SLoadbalancerListener ¶
type SLoadbalancerListener struct { ForwardRuleName string `json:"forward_rule_name"` BackendServiceName string `json:"backend_service_name"` Protocol string `json:"protocol"` Port string `json:"port"` // 监听端口 // contains filtered or unexported fields }
func (*SLoadbalancerListener) CreateILoadBalancerListenerRule ¶
func (self *SLoadbalancerListener) CreateILoadBalancerListenerRule(rule *cloudprovider.SLoadbalancerListenerRule) (cloudprovider.ICloudLoadbalancerListenerRule, error)
func (*SLoadbalancerListener) Delete ¶
func (self *SLoadbalancerListener) Delete(ctx context.Context) error
func (*SLoadbalancerListener) GetAclId ¶
func (self *SLoadbalancerListener) GetAclId() string
func (*SLoadbalancerListener) GetAclStatus ¶
func (self *SLoadbalancerListener) GetAclStatus() string
func (*SLoadbalancerListener) GetAclType ¶
func (self *SLoadbalancerListener) GetAclType() string
func (*SLoadbalancerListener) GetBackendConnectTimeout ¶
func (self *SLoadbalancerListener) GetBackendConnectTimeout() int
func (*SLoadbalancerListener) GetBackendGroupId ¶
func (self *SLoadbalancerListener) GetBackendGroupId() string
func (*SLoadbalancerListener) GetBackendServerPort ¶
func (self *SLoadbalancerListener) GetBackendServerPort() int
func (*SLoadbalancerListener) GetCertificateId ¶
func (self *SLoadbalancerListener) GetCertificateId() string
func (*SLoadbalancerListener) GetClientIdleTimeout ¶
func (self *SLoadbalancerListener) GetClientIdleTimeout() int
func (*SLoadbalancerListener) GetCreatedAt ¶
func (self *SLoadbalancerListener) GetCreatedAt() time.Time
func (*SLoadbalancerListener) GetEgressMbps ¶
func (self *SLoadbalancerListener) GetEgressMbps() int
func (*SLoadbalancerListener) GetGlobalId ¶
func (self *SLoadbalancerListener) GetGlobalId() string
func (*SLoadbalancerListener) GetHealthCheck ¶
func (self *SLoadbalancerListener) GetHealthCheck() string
func (*SLoadbalancerListener) GetHealthCheckCode ¶
func (self *SLoadbalancerListener) GetHealthCheckCode() string
func (*SLoadbalancerListener) GetHealthCheckDomain ¶
func (self *SLoadbalancerListener) GetHealthCheckDomain() string
func (*SLoadbalancerListener) GetHealthCheckExp ¶
func (self *SLoadbalancerListener) GetHealthCheckExp() string
func (*SLoadbalancerListener) GetHealthCheckFail ¶
func (self *SLoadbalancerListener) GetHealthCheckFail() int
func (*SLoadbalancerListener) GetHealthCheckInterval ¶
func (self *SLoadbalancerListener) GetHealthCheckInterval() int
func (*SLoadbalancerListener) GetHealthCheckReq ¶
func (self *SLoadbalancerListener) GetHealthCheckReq() string
func (*SLoadbalancerListener) GetHealthCheckRise ¶
func (self *SLoadbalancerListener) GetHealthCheckRise() int
func (*SLoadbalancerListener) GetHealthCheckTimeout ¶
func (self *SLoadbalancerListener) GetHealthCheckTimeout() int
func (*SLoadbalancerListener) GetHealthCheckType ¶
func (self *SLoadbalancerListener) GetHealthCheckType() string
func (*SLoadbalancerListener) GetHealthCheckURI ¶
func (self *SLoadbalancerListener) GetHealthCheckURI() string
func (*SLoadbalancerListener) GetHealthChecks ¶
func (self *SLoadbalancerListener) GetHealthChecks() []HealthChecks
func (*SLoadbalancerListener) GetILoadBalancerListenerRuleById ¶
func (self *SLoadbalancerListener) GetILoadBalancerListenerRuleById(ruleId string) (cloudprovider.ICloudLoadbalancerListenerRule, error)
func (*SLoadbalancerListener) GetILoadbalancerListenerRules ¶
func (self *SLoadbalancerListener) GetILoadbalancerListenerRules() ([]cloudprovider.ICloudLoadbalancerListenerRule, error)
func (*SLoadbalancerListener) GetId ¶
func (self *SLoadbalancerListener) GetId() string
func (*SLoadbalancerListener) GetInstanceGroups ¶
func (self *SLoadbalancerListener) GetInstanceGroups() ([]SInstanceGroup, error)
func (*SLoadbalancerListener) GetListenerPort ¶
func (self *SLoadbalancerListener) GetListenerPort() int
func (*SLoadbalancerListener) GetListenerType ¶
func (self *SLoadbalancerListener) GetListenerType() string
func (*SLoadbalancerListener) GetLoadbalancerListenerRules ¶
func (self *SLoadbalancerListener) GetLoadbalancerListenerRules() ([]SLoadbalancerListenerRule, error)
func (*SLoadbalancerListener) GetName ¶
func (self *SLoadbalancerListener) GetName() string
func (*SLoadbalancerListener) GetProjectId ¶
func (self *SLoadbalancerListener) GetProjectId() string
func (*SLoadbalancerListener) GetRedirect ¶
func (self *SLoadbalancerListener) GetRedirect() string
todo: fix me route 高级配置才有重定向,具体怎么解析?
func (*SLoadbalancerListener) GetRedirectCode ¶
func (self *SLoadbalancerListener) GetRedirectCode() int64
func (*SLoadbalancerListener) GetRedirectHost ¶
func (self *SLoadbalancerListener) GetRedirectHost() string
func (*SLoadbalancerListener) GetRedirectPath ¶
func (self *SLoadbalancerListener) GetRedirectPath() string
func (*SLoadbalancerListener) GetRedirectScheme ¶
func (self *SLoadbalancerListener) GetRedirectScheme() string
func (*SLoadbalancerListener) GetScheduler ¶
func (self *SLoadbalancerListener) GetScheduler() string
在本地范围内使用的负载均衡算法。可能的值为:
ROUND_ROBIN:这是一个简单的策略,其中按循环顺序选择每个健康的后端。这是默认设置。 LEAST_REQUEST:一种 O(1) 算法,它选择两个随机的健康主机并选择具有较少活动请求的主机。 RING_HASH:环/模散列负载均衡器对后端实现一致的散列。该算法的特性是从一组 N 个主机中添加/删除一个主机只会影响 1/N 的请求。 RANDOM:负载均衡器随机选择一个健康的主机。 ORIGINAL_DESTINATION:根据客户端连接元数据选择后端主机,即在连接被重定向到负载均衡器之前,连接被打开到与传入连接的目标地址相同的地址。 MAGLEV:用作环形哈希负载均衡器的替代品。Maglev 不如环哈希稳定,但具有更快的表查找构建时间和主机选择时间。有关磁悬浮的更多信息,请参阅https://ai.google/research/pubs/pub44824 此字段适用于:
service_protocol 设置为 HTTP、HTTPS 或 HTTP2,并且 load_balancing_scheme 设置为 INTERNAL_MANAGED 的区域后端服务。 load_balancing_scheme 设置为 INTERNAL_SELF_MANAGED 的全局后端服务。 如果 sessionAffinity 不为 NONE,并且该字段未设置为 MAGLEV 或 RING_HASH,则会话亲缘性设置不会生效。
当后端服务被绑定到目标 gRPC 代理且 validateForProxyless 字段设置为 true 的 URL 映射引用时,仅支持默认的 ROUND_ROBIN 策略。
todo: fix me ???
func (*SLoadbalancerListener) GetStatus ¶
func (self *SLoadbalancerListener) GetStatus() string
func (*SLoadbalancerListener) GetStickySession ¶
func (self *SLoadbalancerListener) GetStickySession() string
func (*SLoadbalancerListener) GetStickySessionCookie ¶
func (self *SLoadbalancerListener) GetStickySessionCookie() string
func (*SLoadbalancerListener) GetStickySessionCookieTimeout ¶
func (self *SLoadbalancerListener) GetStickySessionCookieTimeout() int
func (*SLoadbalancerListener) GetStickySessionType ¶
func (self *SLoadbalancerListener) GetStickySessionType() string
https://cloud.google.com/load-balancing/docs/backend-service#sessionAffinity 区域级外部 HTTP(S) 负载均衡器:
无 (NONE) 客户端 IP (CLIENT_IP) 生成的 Cookie (GENERATED_COOKIE) 标头字段 (HEADER_FIELD) HTTP Cookie (HTTP_COOKIE)
func (*SLoadbalancerListener) GetSysTags ¶
func (self *SLoadbalancerListener) GetSysTags() map[string]string
func (*SLoadbalancerListener) GetTLSCipherPolicy ¶
func (self *SLoadbalancerListener) GetTLSCipherPolicy() string
func (*SLoadbalancerListener) GetTags ¶
func (self *SLoadbalancerListener) GetTags() (map[string]string, error)
func (*SLoadbalancerListener) GzipEnabled ¶
func (self *SLoadbalancerListener) GzipEnabled() bool
https://cloud.google.com/load-balancing/docs/https/troubleshooting-ext-https-lbs
func (*SLoadbalancerListener) HTTP2Enabled ¶
func (self *SLoadbalancerListener) HTTP2Enabled() bool
https://cloud.google.com/load-balancing/docs/https/troubleshooting-ext-https-lbs
func (*SLoadbalancerListener) IsEmulated ¶
func (self *SLoadbalancerListener) IsEmulated() bool
func (*SLoadbalancerListener) Refresh ¶
func (self *SLoadbalancerListener) Refresh() error
func (*SLoadbalancerListener) SetTags ¶
func (self *SLoadbalancerListener) SetTags(tags map[string]string, replace bool) error
func (*SLoadbalancerListener) Start ¶
func (self *SLoadbalancerListener) Start() error
func (*SLoadbalancerListener) Stop ¶
func (self *SLoadbalancerListener) Stop() error
func (*SLoadbalancerListener) Sync ¶
func (self *SLoadbalancerListener) Sync(ctx context.Context, listener *cloudprovider.SLoadbalancerListener) error
func (*SLoadbalancerListener) XForwardedForEnabled ¶
func (self *SLoadbalancerListener) XForwardedForEnabled() bool
type SLoadbalancerListenerRule ¶
type SLoadbalancerListenerRule struct { ListenerName string `json:"listener_name"` BackendServiceName string `json:"backend_service_name"` Domain string `json:"domain"` Path string `json:"path"` Port string `json:"Port"` // contains filtered or unexported fields }
func (*SLoadbalancerListenerRule) Delete ¶
func (self *SLoadbalancerListenerRule) Delete(ctx context.Context) error
func (*SLoadbalancerListenerRule) GetBackendGroupId ¶
func (self *SLoadbalancerListenerRule) GetBackendGroupId() string
func (*SLoadbalancerListenerRule) GetCondition ¶
func (self *SLoadbalancerListenerRule) GetCondition() string
func (*SLoadbalancerListenerRule) GetCreatedAt ¶
func (self *SLoadbalancerListenerRule) GetCreatedAt() time.Time
func (*SLoadbalancerListenerRule) GetDomain ¶
func (self *SLoadbalancerListenerRule) GetDomain() string
func (*SLoadbalancerListenerRule) GetGlobalId ¶
func (self *SLoadbalancerListenerRule) GetGlobalId() string
func (*SLoadbalancerListenerRule) GetId ¶
func (self *SLoadbalancerListenerRule) GetId() string
func (*SLoadbalancerListenerRule) GetName ¶
func (self *SLoadbalancerListenerRule) GetName() string
func (*SLoadbalancerListenerRule) GetPath ¶
func (self *SLoadbalancerListenerRule) GetPath() string
func (*SLoadbalancerListenerRule) GetProjectId ¶
func (self *SLoadbalancerListenerRule) GetProjectId() string
func (*SLoadbalancerListenerRule) GetRedirect ¶
func (self *SLoadbalancerListenerRule) GetRedirect() string
func (*SLoadbalancerListenerRule) GetRedirectCode ¶
func (self *SLoadbalancerListenerRule) GetRedirectCode() int64
func (*SLoadbalancerListenerRule) GetRedirectHost ¶
func (self *SLoadbalancerListenerRule) GetRedirectHost() string
func (*SLoadbalancerListenerRule) GetRedirectPath ¶
func (self *SLoadbalancerListenerRule) GetRedirectPath() string
func (*SLoadbalancerListenerRule) GetRedirectScheme ¶
func (self *SLoadbalancerListenerRule) GetRedirectScheme() string
func (*SLoadbalancerListenerRule) GetStatus ¶
func (self *SLoadbalancerListenerRule) GetStatus() string
func (*SLoadbalancerListenerRule) GetSysTags ¶
func (self *SLoadbalancerListenerRule) GetSysTags() map[string]string
func (*SLoadbalancerListenerRule) GetTags ¶
func (self *SLoadbalancerListenerRule) GetTags() (map[string]string, error)
func (*SLoadbalancerListenerRule) IsDefault ¶
func (self *SLoadbalancerListenerRule) IsDefault() bool
func (*SLoadbalancerListenerRule) IsEmulated ¶
func (self *SLoadbalancerListenerRule) IsEmulated() bool
func (*SLoadbalancerListenerRule) Refresh ¶
func (self *SLoadbalancerListenerRule) Refresh() error
type SMachineType ¶
type SMetadata ¶
type SMetadata struct { Fingerprint string Items []SMetadataItem }
type SMetadataItem ¶
type SNetwork ¶
type SNetwork struct { GoogleTags // contains filtered or unexported fields }
func (*SNetwork) GetAllocTimeoutSeconds ¶
func (*SNetwork) GetCreatedAt ¶
func (*SNetwork) GetGateway ¶
func (*SNetwork) GetGlobalId ¶
func (*SNetwork) GetIWire ¶
func (network *SNetwork) GetIWire() cloudprovider.ICloudWire
func (*SNetwork) GetIpStart ¶
func (*SNetwork) GetIsPublic ¶
func (*SNetwork) GetProjectId ¶
func (*SNetwork) GetPublicScope ¶
func (network *SNetwork) GetPublicScope() rbacutils.TRbacScope
func (*SNetwork) GetServerType ¶
func (*SNetwork) IsEmulated ¶
type SNetworkInterface ¶
type SNetworkInterface struct { Network string Subnetwork string NetworkIP string Name string AccessConfigs []AccessConfig Fingerprint string Kind string cloudprovider.DummyICloudNic // contains filtered or unexported fields }
func (*SNetworkInterface) GetDriver ¶
func (nic *SNetworkInterface) GetDriver() string
func (*SNetworkInterface) GetINetworkId ¶
func (nic *SNetworkInterface) GetINetworkId() string
func (*SNetworkInterface) GetIP ¶
func (nic *SNetworkInterface) GetIP() string
func (*SNetworkInterface) GetId ¶
func (nic *SNetworkInterface) GetId() string
func (*SNetworkInterface) GetMAC ¶
func (nic *SNetworkInterface) GetMAC() string
func (*SNetworkInterface) InClassicNetwork ¶
func (nic *SNetworkInterface) InClassicNetwork() bool
type SObject ¶
type SObject struct { Id string Name string SelfLink string MediaLink string Bucket string Generation string Metageneration string ContentType string ContentEncoding string ContentDisposition string ContentLanguage string CacheControl string StorageClass string Size int64 Md5Hash string Metadata map[string]string Crc32c string Etag string TimeCreated time.Time Updated time.Time TimeStorageClassUpdated time.Time // contains filtered or unexported fields }
func (*SObject) GetAcl ¶
func (o *SObject) GetAcl() cloudprovider.TBucketACLType
func (*SObject) GetIBucket ¶
func (o *SObject) GetIBucket() cloudprovider.ICloudBucket
func (*SObject) GetLastModified ¶
func (*SObject) GetSizeBytes ¶
func (*SObject) GetStorageClass ¶
func (*SObject) SetAcl ¶
func (o *SObject) SetAcl(acl cloudprovider.TBucketACLType) error
type SOperation ¶
type SOrganization ¶
type SOrganizationOwner ¶
type SOrganizationOwner struct {
DirectoryCustomerId string `json:"directoryCustomerId"`
}
type SPricingExpression ¶
type SProject ¶
type SProject struct { multicloud.SProjectBase GoogleTags Name string CreateTime time.Time LifecycleState string ProjectId string ProjectNumber string }
func (*SProject) GetGlobalId ¶
func (*SProject) IsEmulated ¶
type SQuota ¶
func (*SQuota) GetCurrentQuotaUsedCount ¶
func (*SQuota) GetGlobalId ¶
func (*SQuota) GetMaxQuotaCount ¶
func (*SQuota) GetQuotaType ¶
type SRateInfo ¶
func (*SRateInfo) GetComputePrice ¶
func (*SRateInfo) GetCpuPrice ¶
func (*SRateInfo) GetDiscount ¶
func (*SRateInfo) GetExtendMemoryGb ¶
func (*SRateInfo) GetMemoryPrice ¶
func (*SRateInfo) GetSharedSkuPrice ¶
func (*SRateInfo) GetSkuPrice ¶
type SRegion ¶
type SRegion struct { cloudprovider.SFakeOnPremiseRegion multicloud.SRegion Quotas []SQuota Description string ID string Kind string Name string Status string SelfLink string CreationTimestamp time.Time // contains filtered or unexported fields }
func (*SRegion) AssociateInstanceEip ¶
func (*SRegion) AttachDisk ¶
func (*SRegion) BigQuery ¶
func (region *SRegion) BigQuery(sql string) ([]jsonutils.JSONObject, error)
func (*SRegion) BillingList ¶
func (*SRegion) BillingListAll ¶
func (*SRegion) ChangeDBInstanceConfig ¶
func (*SRegion) ChangeInstanceConfig ¶
func (*SRegion) CheckUploadRange ¶
func (*SRegion) CloudbuildInsert ¶
func (region *SRegion) CloudbuildInsert(body jsonutils.JSONObject) error
func (*SRegion) ConvertAcl ¶
func (region *SRegion) ConvertAcl(acls []GCSAcl) cloudprovider.TBucketACLType
func (*SRegion) CreateBucket ¶
func (region *SRegion) CreateBucket(name string, storageClass string, acl cloudprovider.TBucketACLType) (*SBucket, error)
func (*SRegion) CreateDBInstance ¶
func (region *SRegion) CreateDBInstance(desc *cloudprovider.SManagedDBInstanceCreateConfig) (*SDBInstance, error)
func (*SRegion) CreateDBInstanceAccount ¶
func (*SRegion) CreateDBInstanceBackup ¶
func (*SRegion) CreateDatabase ¶
func (*SRegion) CreateDisk ¶
func (*SRegion) CreateEIP ¶
func (region *SRegion) CreateEIP(args *cloudprovider.SEip) (cloudprovider.ICloudEIP, error)
func (*SRegion) CreateIBucket ¶
func (*SRegion) CreateIDBInstance ¶
func (region *SRegion) CreateIDBInstance(desc *cloudprovider.SManagedDBInstanceCreateConfig) (cloudprovider.ICloudDBInstance, error)
func (*SRegion) CreateISecurityGroup ¶
func (region *SRegion) CreateISecurityGroup(conf *cloudprovider.SecurityGroupCreateInput) (cloudprovider.ICloudSecurityGroup, error)
func (*SRegion) CreateIVpc ¶
func (self *SRegion) CreateIVpc(opts *cloudprovider.VpcCreateOptions) (cloudprovider.ICloudVpc, error)
func (*SRegion) CreateImage ¶
func (*SRegion) CreateInstance ¶
func (*SRegion) CreateSnapshot ¶
func (*SRegion) DBInstancePublicConnectionOperation ¶
func (*SRegion) DeleteBucket ¶
func (*SRegion) DeleteDBInstance ¶
func (*SRegion) DeleteDBInstanceAccount ¶
func (*SRegion) DeleteDBInstanceDatabase ¶
func (*SRegion) DeleteIBucket ¶
func (*SRegion) DeleteObject ¶
func (*SRegion) DetachDisk ¶
func (*SRegion) DissociateInstanceEip ¶
func (*SRegion) DownloadObjectRange ¶
func (*SRegion) GetAllAvailableImages ¶
func (*SRegion) GetBucketIam ¶
func (region *SRegion) GetBucketIam(bucket string) (*SBucketIam, error)
func (*SRegion) GetBuckets ¶
func (*SRegion) GetBySelfId ¶
func (*SRegion) GetCapabilities ¶
func (*SRegion) GetClient ¶
func (region *SRegion) GetClient() *SGoogleClient
func (*SRegion) GetCloudbuildOperation ¶
func (region *SRegion) GetCloudbuildOperation(name string) (*SCloudbuildOperation, error)
func (*SRegion) GetCreatedAt ¶
func (*SRegion) GetDBInstance ¶
func (region *SRegion) GetDBInstance(instanceId string) (*SDBInstance, error)
func (*SRegion) GetDBInstanceAccount ¶
func (region *SRegion) GetDBInstanceAccount(id string) (*SDBInstanceAccount, error)
func (*SRegion) GetDBInstanceAccounts ¶
func (region *SRegion) GetDBInstanceAccounts(instance string) ([]SDBInstanceAccount, error)
func (*SRegion) GetDBInstanceBackup ¶
func (region *SRegion) GetDBInstanceBackup(backupId string) (*SDBInstanceBackup, error)
func (*SRegion) GetDBInstanceBackups ¶
func (region *SRegion) GetDBInstanceBackups(instanceId string) ([]SDBInstanceBackup, error)
func (*SRegion) GetDBInstanceDatabases ¶
func (region *SRegion) GetDBInstanceDatabases(instance string) ([]SDBInstanceDatabase, error)
func (*SRegion) GetDBInstances ¶
func (region *SRegion) GetDBInstances(maxResults int, pageToken string) ([]SDBInstance, error)
func (*SRegion) GetGeographicInfo ¶
func (region *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo
func (*SRegion) GetGlobalHealthChecks ¶
func (self *SRegion) GetGlobalHealthChecks(filter string) ([]HealthChecks, error)
func (*SRegion) GetGlobalId ¶
func (*SRegion) GetI18n ¶
func (self *SRegion) GetI18n() cloudprovider.SModelI18nTable
func (*SRegion) GetIBucketById ¶
func (region *SRegion) GetIBucketById(id string) (cloudprovider.ICloudBucket, error)
func (*SRegion) GetIBucketByName ¶
func (region *SRegion) GetIBucketByName(name string) (cloudprovider.ICloudBucket, error)
func (*SRegion) GetIBuckets ¶
func (region *SRegion) GetIBuckets() ([]cloudprovider.ICloudBucket, error)
func (*SRegion) GetICloudQuotas ¶
func (region *SRegion) GetICloudQuotas() ([]cloudprovider.ICloudQuota, error)
func (*SRegion) GetIDBInstanceBackupById ¶
func (region *SRegion) GetIDBInstanceBackupById(backupId string) (cloudprovider.ICloudDBInstanceBackup, error)
func (*SRegion) GetIDBInstanceBackups ¶
func (region *SRegion) GetIDBInstanceBackups() ([]cloudprovider.ICloudDBInstanceBackup, error)
func (*SRegion) GetIDBInstanceById ¶
func (region *SRegion) GetIDBInstanceById(instanceId string) (cloudprovider.ICloudDBInstance, error)
func (*SRegion) GetIDBInstances ¶
func (region *SRegion) GetIDBInstances() ([]cloudprovider.ICloudDBInstance, error)
func (*SRegion) GetIDiskById ¶
func (region *SRegion) GetIDiskById(id string) (cloudprovider.ICloudDisk, error)
func (*SRegion) GetIEipById ¶
func (region *SRegion) GetIEipById(id string) (cloudprovider.ICloudEIP, error)
func (*SRegion) GetIHostById ¶
func (region *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, error)
func (*SRegion) GetILoadBalancerById ¶
func (self *SRegion) GetILoadBalancerById(loadbalancerId string) (cloudprovider.ICloudLoadbalancer, error)
func (*SRegion) GetILoadBalancerCertificateById ¶
func (self *SRegion) GetILoadBalancerCertificateById(certId string) (cloudprovider.ICloudLoadbalancerCertificate, error)
func (*SRegion) GetILoadBalancerCertificates ¶
func (self *SRegion) GetILoadBalancerCertificates() ([]cloudprovider.ICloudLoadbalancerCertificate, error)
func (*SRegion) GetILoadBalancers ¶
func (self *SRegion) GetILoadBalancers() ([]cloudprovider.ICloudLoadbalancer, error)
func (*SRegion) GetISecurityGroupById ¶
func (region *SRegion) GetISecurityGroupById(id string) (cloudprovider.ICloudSecurityGroup, error)
func (*SRegion) GetISecurityGroupByName ¶
func (region *SRegion) GetISecurityGroupByName(opts *cloudprovider.SecurityGroupFilterOptions) (cloudprovider.ICloudSecurityGroup, error)
func (*SRegion) GetISnapshotById ¶
func (region *SRegion) GetISnapshotById(id string) (cloudprovider.ICloudSnapshot, error)
func (*SRegion) GetISnapshotPolicies ¶
func (region *SRegion) GetISnapshotPolicies() ([]cloudprovider.ICloudSnapshotPolicy, error)
func (*SRegion) GetISnapshotPolicyById ¶
func (region *SRegion) GetISnapshotPolicyById(id string) (cloudprovider.ICloudSnapshotPolicy, error)
func (*SRegion) GetISnapshots ¶
func (region *SRegion) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
func (*SRegion) GetIStorageById ¶
func (region *SRegion) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
func (*SRegion) GetIStoragecacheById ¶
func (region *SRegion) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error)
func (*SRegion) GetIStoragecaches ¶
func (region *SRegion) GetIStoragecaches() ([]cloudprovider.ICloudStoragecache, error)
func (*SRegion) GetIVMById ¶
func (region *SRegion) GetIVMById(id string) (cloudprovider.ICloudVM, error)
func (*SRegion) GetIVpcById ¶
func (self *SRegion) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)
func (*SRegion) GetIZoneById ¶
func (region *SRegion) GetIZoneById(id string) (cloudprovider.ICloudZone, error)
func (*SRegion) GetIZones ¶
func (region *SRegion) GetIZones() ([]cloudprovider.ICloudZone, error)
func (*SRegion) GetInstances ¶
func (*SRegion) GetLoadbalancer ¶
func (self *SRegion) GetLoadbalancer(resourceId string) (SLoadbalancer, error)
func (*SRegion) GetMachineType ¶
func (region *SRegion) GetMachineType(id string) (*SMachineType, error)
func (*SRegion) GetMachineTypes ¶
func (*SRegion) GetObjectAcl ¶
func (*SRegion) GetObjects ¶
func (*SRegion) GetProjectId ¶
func (*SRegion) GetProvider ¶
func (*SRegion) GetRdsOperation ¶
func (region *SRegion) GetRdsOperation(id string) (*SOperation, error)
func (*SRegion) GetRegionDisk ¶
func (region *SRegion) GetRegionDisk(id string) (*SRegionDisk, error)
func (*SRegion) GetRegionDisks ¶
func (*SRegion) GetRegionStorage ¶
func (region *SRegion) GetRegionStorage(id string) (*SRegionStorage, error)
func (*SRegion) GetRegionStorages ¶
func (region *SRegion) GetRegionStorages(maxResults int, pageToken string) ([]SRegionStorage, error)
func (*SRegion) GetRegionalBackendServices ¶
func (self *SRegion) GetRegionalBackendServices(filter string) ([]SBackendServices, error)
func (*SRegion) GetRegionalForwardingRule ¶
func (self *SRegion) GetRegionalForwardingRule(filter string) ([]SForwardingRule, error)
func (*SRegion) GetRegionalHTTPLoadbalancers ¶
func (self *SRegion) GetRegionalHTTPLoadbalancers() ([]SLoadbalancer, error)
http&https lb: urlmaps
func (*SRegion) GetRegionalHealthChecks ¶
func (self *SRegion) GetRegionalHealthChecks(filter string) ([]HealthChecks, error)
func (*SRegion) GetRegionalInstanceGroups ¶
func (self *SRegion) GetRegionalInstanceGroups(filter string) ([]SInstanceGroup, error)
func (*SRegion) GetRegionalLoadbalancers ¶
func (self *SRegion) GetRegionalLoadbalancers() ([]SLoadbalancer, error)
func (*SRegion) GetRegionalSslCertificates ¶
func (self *SRegion) GetRegionalSslCertificates(filter string) ([]SLoadbalancerCertificate, error)
func (*SRegion) GetRegionalTargetHttpProxies ¶
func (self *SRegion) GetRegionalTargetHttpProxies(filter string) ([]STargetHttpProxy, error)
func (*SRegion) GetRegionalTargetHttpsProxies ¶
func (self *SRegion) GetRegionalTargetHttpsProxies(filter string) ([]STargetHttpsProxy, error)
func (*SRegion) GetRegionalTcpLoadbalancers ¶
func (self *SRegion) GetRegionalTcpLoadbalancers() ([]SLoadbalancer, error)
GET https://compute.googleapis.com/compute/v1/projects/{project}/aggregated/targetHttpProxies 前端监听
tcp lb backend type: backend service
func (*SRegion) GetRegionalUdpLoadbalancers ¶
func (self *SRegion) GetRegionalUdpLoadbalancers() ([]SLoadbalancer, error)
udp lb backend type: backend service
func (*SRegion) GetRegionalUrlMaps ¶
As mentioned by Patrick W, there is no direct entity 'load balancer', its just a collection of components. The list seen in the UI that appears to be the load balancer is actually the url-map component, which can be seen via the API with: gcloud compute url-maps list
func (*SRegion) GetResourcePolicies ¶
func (region *SRegion) GetResourcePolicies(maxResults int, pageToken string) ([]SResourcePolicy, error)
func (*SRegion) GetResourcePolicy ¶
func (region *SRegion) GetResourcePolicy(id string) (*SResourcePolicy, error)
func (*SRegion) GetSerialPortOutput ¶
func (*SRegion) GetSkuRateInfo ¶
func (region *SRegion) GetSkuRateInfo(skus []SSkuBilling) SRateInfo
func (*SRegion) GetSnapshots ¶
func (*SRegion) GetStorages ¶
func (*SRegion) Insert ¶
func (self *SRegion) Insert(resource string, body jsonutils.JSONObject, retval interface{}) error
func (*SRegion) IsEmulated ¶
func (*SRegion) ListSkuBilling ¶
func (region *SRegion) ListSkuBilling(pageSize int, pageToken string) ([]SSkuBilling, error)
func (*SRegion) NewMultipartUpload ¶
func (region *SRegion) NewMultipartUpload(bucket, key string, cannedAcl cloudprovider.TBucketACLType, storageClassStr string, meta http.Header) (string, error)
func (*SRegion) RdsListAll ¶
func (*SRegion) RebuildRoot ¶
func (*SRegion) RecoverFromBackup ¶
func (*SRegion) ResetInstance ¶
func (*SRegion) SaveImage ¶
func (self *SRegion) SaveImage(diskId string, opts *cloudprovider.SaveImageOptions) (*SImage, error)
func (*SRegion) SetBucketAcl ¶
func (region *SRegion) SetBucketAcl(bucket string, acl cloudprovider.TBucketACLType) error
func (*SRegion) SetBucketIam ¶
func (region *SRegion) SetBucketIam(bucket string, iam *SBucketIam) (*SBucketIam, error)
func (*SRegion) SetMetadata ¶
func (*SRegion) SetObjectAcl ¶
func (region *SRegion) SetObjectAcl(bucket, object string, cannedAcl cloudprovider.TBucketACLType) error
func (*SRegion) SetObjectMeta ¶
func (*SRegion) SetProjectId ¶
func (*SRegion) SetResourceTags ¶
func (region *SRegion) SetResourceTags(id string, tags SInstanceTag) error
func (*SRegion) SetServiceAccount ¶
func (*SRegion) StartInstance ¶
func (*SRegion) StopInstance ¶
func (*SRegion) StorageDelete ¶
func (*SRegion) StorageGet ¶
func (*SRegion) StorageInsert ¶
func (region *SRegion) StorageInsert(resource string, body jsonutils.JSONObject, retval interface{}) error
func (*SRegion) StorageList ¶
func (*SRegion) StorageListAll ¶
func (*SRegion) StoragePut ¶
func (region *SRegion) StoragePut(id string, body jsonutils.JSONObject, retval interface{}) error
func (*SRegion) UploadObject ¶
func (*SRegion) UploadPart ¶
type SRegionDisk ¶
type SRegionDisk struct { Id string CreationTimestamp time.Time Name string SizeGB int Zone string Status string SelfLink string Type string LastAttachTimestamp time.Time LastDetachTimestamp time.Time LabelFingerprint string PhysicalBlockSizeBytes string Kind string // contains filtered or unexported fields }
type SRegionStorage ¶
type SResourceBase ¶
func (*SResourceBase) GetGlobalId ¶
func (r *SResourceBase) GetGlobalId() string
func (*SResourceBase) GetId ¶
func (r *SResourceBase) GetId() string
func (*SResourceBase) GetName ¶
func (r *SResourceBase) GetName() string
type SResourcePolicy ¶
type SResourcePolicy struct { SResourceBase GoogleTags CreationTimestamp time.Time Region string Status string Kind string SnapshotSchedulePolicy SSnapshotSchedulePolicy `json:"snapshotSchedulePolicy"` // contains filtered or unexported fields }
func (*SResourcePolicy) GetCreatedAt ¶
func (policy *SResourcePolicy) GetCreatedAt() time.Time
func (*SResourcePolicy) GetProjectId ¶
func (policy *SResourcePolicy) GetProjectId() string
func (*SResourcePolicy) GetRepeatWeekdays ¶
func (policy *SResourcePolicy) GetRepeatWeekdays() ([]int, error)
func (*SResourcePolicy) GetRetentionDays ¶
func (policy *SResourcePolicy) GetRetentionDays() int
func (*SResourcePolicy) GetStatus ¶
func (policy *SResourcePolicy) GetStatus() string
func (*SResourcePolicy) GetTimePoints ¶
func (policy *SResourcePolicy) GetTimePoints() ([]int, error)
func (*SResourcePolicy) IsActivated ¶
func (policy *SResourcePolicy) IsActivated() bool
func (*SResourcePolicy) IsEmulated ¶
func (policy *SResourcePolicy) IsEmulated() bool
func (*SResourcePolicy) Refresh ¶
func (policy *SResourcePolicy) Refresh() error
type SRetentionPolicy ¶
type SRole ¶
type SRole struct { Name string Title string Description string IncludedPermissions []string Stage string Etag string // contains filtered or unexported fields }
func (*SRole) GetDescription ¶
func (*SRole) GetGlobalId ¶
type SSLHealthCheck ¶
type SSchedule ¶
type SSchedule struct { WeeklySchedule SWeeklySchedule DailySchedule SDailySchedule HourlySchedule SHourlySchedule }
type SSecurityGroup ¶
type SSecurityGroup struct { multicloud.SSecurityGroup GoogleTags ServiceAccount string Tag string // contains filtered or unexported fields }
func (*SSecurityGroup) Delete ¶
func (secgroup *SSecurityGroup) Delete() error
func (*SSecurityGroup) GetDescription ¶
func (secgroup *SSecurityGroup) GetDescription() string
func (*SSecurityGroup) GetGlobalId ¶
func (secgroup *SSecurityGroup) GetGlobalId() string
func (*SSecurityGroup) GetId ¶
func (secgroup *SSecurityGroup) GetId() string
func (*SSecurityGroup) GetName ¶
func (secgroup *SSecurityGroup) GetName() string
func (*SSecurityGroup) GetProjectId ¶
func (secgroup *SSecurityGroup) GetProjectId() string
func (*SSecurityGroup) GetRules ¶
func (self *SSecurityGroup) GetRules() ([]cloudprovider.SecurityRule, error)
func (*SSecurityGroup) GetStatus ¶
func (secgroup *SSecurityGroup) GetStatus() string
func (*SSecurityGroup) GetVpcId ¶
func (secgroup *SSecurityGroup) GetVpcId() string
func (*SSecurityGroup) IsEmulated ¶
func (secgroup *SSecurityGroup) IsEmulated() bool
func (*SSecurityGroup) Refresh ¶
func (secgroup *SSecurityGroup) Refresh() error
func (*SSecurityGroup) SyncRules ¶
func (secgroup *SSecurityGroup) SyncRules(common, inAdds, outAdds, inDels, outDels []cloudprovider.SecurityRule) error
type SSkuBilling ¶
type SSkuBilling struct { Name string SkuId string Description string Category SkuBillingCatetory ServiceRegions []string PricingInfo []SkuPricingInfo ServiceProviderName string }
type SSnapshot ¶
type SSnapshot struct { SResourceBase GoogleTags CreationTimestamp time.Time Status string SourceDisk string SourceDiskId string DiskSizeGb int32 StorageBytes int StorageBytesStatus string Licenses []string LabelFingerprint string LicenseCodes []string StorageLocations []string Kind string // contains filtered or unexported fields }
func (*SSnapshot) GetCreatedAt ¶
func (*SSnapshot) GetDiskType ¶
func (*SSnapshot) GetProjectId ¶
func (*SSnapshot) IsEmulated ¶
type SSnapshotProperties ¶
type SSnapshotSchedulePolicy ¶
type SSnapshotSchedulePolicy struct { Schedule SSchedule RetentionPolicy SRetentionPolicy SnapshotProperties SSnapshotProperties }
type SSqlserverUserDetails ¶
type SSqlserverUserDetails struct {
ServerRoles []string
}
type SStorage ¶
type SStorage struct { SResourceBase GoogleTags CreationTimestamp time.Time Description string ValidDiskSize string Zone string DefaultDiskSizeGb string Kind string // contains filtered or unexported fields }
func (*SStorage) CreateIDisk ¶
func (storage *SStorage) CreateIDisk(conf *cloudprovider.DiskCreateConfig) (cloudprovider.ICloudDisk, error)
func (*SStorage) DisableSync ¶
func (*SStorage) GetCapacityMB ¶
func (*SStorage) GetCapacityUsedMB ¶
func (*SStorage) GetCreatedAt ¶
func (*SStorage) GetEnabled ¶
func (*SStorage) GetIDiskById ¶
func (storage *SStorage) GetIDiskById(id string) (cloudprovider.ICloudDisk, error)
func (*SStorage) GetIDisks ¶
func (storage *SStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error)
func (*SStorage) GetIStoragecache ¶
func (storage *SStorage) GetIStoragecache() cloudprovider.ICloudStoragecache
func (*SStorage) GetIZone ¶
func (storage *SStorage) GetIZone() cloudprovider.ICloudZone
func (*SStorage) GetMediumType ¶
func (*SStorage) GetMountPoint ¶
func (*SStorage) GetStorageConf ¶
func (storage *SStorage) GetStorageConf() jsonutils.JSONObject
func (*SStorage) GetStorageType ¶
func (*SStorage) IsEmulated ¶
func (*SStorage) IsSysDiskStore ¶
type SStoragecache ¶
type SStoragecache struct { multicloud.SResourceBase GoogleTags // contains filtered or unexported fields }
func (*SStoragecache) CreateIImage ¶
func (cache *SStoragecache) CreateIImage(snapshoutId, imageName, osType, imageDesc string) (cloudprovider.ICloudImage, error)
func (*SStoragecache) DownloadImage ¶
func (cache *SStoragecache) DownloadImage(userCred mcclient.TokenCredential, imageId string, extId string, path string) (jsonutils.JSONObject, error)
func (*SStoragecache) GetGlobalId ¶
func (cache *SStoragecache) GetGlobalId() string
func (*SStoragecache) GetICloudImages ¶
func (cache *SStoragecache) GetICloudImages() ([]cloudprovider.ICloudImage, error)
func (*SStoragecache) GetICustomizedCloudImages ¶
func (cache *SStoragecache) GetICustomizedCloudImages() ([]cloudprovider.ICloudImage, error)
func (*SStoragecache) GetIImageById ¶
func (cache *SStoragecache) GetIImageById(extId string) (cloudprovider.ICloudImage, error)
func (*SStoragecache) GetId ¶
func (cache *SStoragecache) GetId() string
func (*SStoragecache) GetName ¶
func (cache *SStoragecache) GetName() string
func (*SStoragecache) GetPath ¶
func (cache *SStoragecache) GetPath() string
func (*SStoragecache) GetStatus ¶
func (cache *SStoragecache) GetStatus() string
func (*SStoragecache) IsEmulated ¶
func (cache *SStoragecache) IsEmulated() bool
func (*SStoragecache) Refresh ¶
func (cache *SStoragecache) Refresh() error
func (*SStoragecache) UploadImage ¶
func (cache *SStoragecache) UploadImage(ctx context.Context, userCred mcclient.TokenCredential, image *cloudprovider.SImageCreateOption, callback func(progress float32)) (string, error)
type STargetHttpProxy ¶
type STargetHttpsProxy ¶
type STargetHttpsProxy struct { SResourceBase CreationTimestamp string `json:"creationTimestamp"` Description string `json:"description"` URLMap string `json:"urlMap"` SSLCertificates []string `json:"sslCertificates"` QuicOverride string `json:"quicOverride"` SSLPolicy string `json:"sslPolicy"` Region string `json:"region"` ProxyBind bool `json:"proxyBind"` ServerTLSPolicy string `json:"serverTlsPolicy"` AuthorizationPolicy string `json:"authorizationPolicy"` Fingerprint string `json:"fingerprint"` Kind string `json:"kind"` }
type STieredRate ¶
type STieredRate struct { StartUsageAmount int UnitPrice SUnitPrice }
type SUniformBucketLevelAccess ¶
type SUniformBucketLevelAccess struct {
Enabled bool
}
type SUnitPrice ¶
type SUrlMap ¶
type SUrlMap struct { SResourceBase CreationTimestamp string `json:"creationTimestamp"` HostRules []HostRule `json:"hostRules"` PathMatchers []PathMatcher `json:"pathMatchers"` DefaultService string `json:"defaultService"` Fingerprint string `json:"fingerprint"` Region string `json:"region"` Kind string `json:"kind"` }
type SVpc ¶
type SVpc struct { multicloud.SVpc GoogleTags SResourceBase CreationTimestamp time.Time Network string IpCidrRange string Region string GatewayAddress string Status string AvailableCpuPlatforms []string PrivateIpGoogleAccess bool Fingerprint string Purpose string Kind string // contains filtered or unexported fields }
func (*SVpc) GetCidrBlock ¶
func (*SVpc) GetGlobalVpcId ¶
func (*SVpc) GetIRouteTableById ¶
func (self *SVpc) GetIRouteTableById(routeTableId string) (cloudprovider.ICloudRouteTable, error)
func (*SVpc) GetIRouteTables ¶
func (vpc *SVpc) GetIRouteTables() ([]cloudprovider.ICloudRouteTable, error)
func (*SVpc) GetISecurityGroups ¶
func (vpc *SVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)
func (*SVpc) GetIWireById ¶
func (vpc *SVpc) GetIWireById(id string) (cloudprovider.ICloudWire, error)
func (*SVpc) GetIWires ¶
func (vpc *SVpc) GetIWires() ([]cloudprovider.ICloudWire, error)
func (*SVpc) GetIsDefault ¶
func (*SVpc) GetRegion ¶
func (vpc *SVpc) GetRegion() cloudprovider.ICloudRegion
func (*SVpc) IsEmulated ¶
type SWeeklySchedule ¶
type SWeeklySchedule struct {
DayOfWeeks []SDayOfWeek
}
type SWire ¶
type SWire struct { multicloud.SResourceBase GoogleTags // contains filtered or unexported fields }
func (*SWire) CreateINetwork ¶
func (wire *SWire) CreateINetwork(opts *cloudprovider.SNetworkCreateOptions) (cloudprovider.ICloudNetwork, error)
func (*SWire) GetBandwidth ¶
func (*SWire) GetCreatedAt ¶
func (*SWire) GetGlobalId ¶
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 (wire *SWire) GetIVpc() cloudprovider.ICloudVpc
func (*SWire) GetIZone ¶
func (wire *SWire) GetIZone() cloudprovider.ICloudZone
func (*SWire) IsEmulated ¶
type SZone ¶
type SZone struct { multicloud.SResourceBase GoogleTags Description string ID string Kind string Name string Region string SelfLink string AvailableCpuPlatforms []string Status string // contains filtered or unexported fields }
func (*SZone) GetGlobalId ¶
func (*SZone) GetI18n ¶
func (zone *SZone) GetI18n() cloudprovider.SModelI18nTable
func (*SZone) GetIHostById ¶
func (zone *SZone) GetIHostById(hostId string) (cloudprovider.ICloudHost, error)
func (*SZone) GetIHosts ¶
func (zone *SZone) GetIHosts() ([]cloudprovider.ICloudHost, error)
func (*SZone) GetIRegion ¶
func (zone *SZone) GetIRegion() cloudprovider.ICloudRegion
func (*SZone) GetIStorageById ¶
func (zone *SZone) GetIStorageById(storageId string) (cloudprovider.ICloudStorage, error)
func (*SZone) GetIStorages ¶
func (zone *SZone) GetIStorages() ([]cloudprovider.ICloudStorage, error)
func (*SZone) IsEmulated ¶
type SelfManaged ¶
type SelfManaged struct {
Certificate string `json:"certificate"`
}
type ServiceAccount ¶
type ServiceAccount struct { Email string // contains filtered or unexported fields }
type SkuBillingCatetory ¶
type SkuPricingInfo ¶
type SkuPricingInfo struct { Summary string PricingExpression SPricingExpression EffectiveTime time.Time // contains filtered or unexported fields }
type TCPHealthCheck ¶
type Test ¶
type Test struct { Description string `json:"description"` Host string `json:"host"` Path string `json:"path"` Headers []Header `json:"headers"` Service string `json:"service"` ExpectedOutputURL string `json:"expectedOutputUrl"` ExpectedRedirectResponseCode int64 `json:"expectedRedirectResponseCode"` }
type URLRedirect ¶
type URLRewrite ¶
type WeightedBackendService ¶
type WeightedBackendService struct { BackendService string `json:"backendService"` Weight int64 `json:"weight"` HeaderAction HeaderAction `json:"headerAction"` }
Source Files ¶
- bigquery.go
- bucket.go
- bucketacl.go
- cloudbuild.go
- dbinstance.go
- dbinstance_account.go
- dbinstance_backup.go
- dbinstance_database.go
- dbinstance_parameter.go
- disk.go
- doc.go
- eip.go
- globalnetwork.go
- google.go
- host.go
- iampolicy.go
- image.go
- instance.go
- instancenic.go
- latitude_and_longitude.go
- loadbalancer.go
- loadbalancer_backend.go
- loadbalancer_backendgroup.go
- loadbalancer_cert.go
- loadbalancer_components.go
- loadbalancer_listener.go
- loadbalancer_listenerrule.go
- machinetype.go
- monitor.go
- network.go
- operation.go
- project.go
- quota.go
- region.go
- regiondisk.go
- regionstorage.go
- resourcebase.go
- resourcepolicy.go
- s3object.go
- saml.go
- securitygroup.go
- sku.go
- snapshot.go
- storage.go
- storagecache.go
- tag_base.go
- vpc.go
- wire.go
- zone.go