Documentation
¶
Index ¶
- func NewClient(db *gorm.DB, log *zap.Logger, projectID string, region string) (resource.ClientInterface, error)
- type Address
- type AddressConfig
- type AddressUser
- type Autoscaler
- type AutoscalerConfig
- type AutoscalerPolicyCustomMetricUtilization
- type AutoscalerStatusDetails
- type Client
- type DiskType
- type DiskTypeConfig
- type Image
- type ImageGuestOsFeature
- type ImageLicense
- type ImageLicenseCode
- type ImageStorageLocation
- type Instance
- type InstanceAcceleratorConfig
- type InstanceAccessConfig
- type InstanceAliasIpRange
- type InstanceAttachedDisk
- type InstanceAttachedDiskInitializeResourcePolicy
- type InstanceAttachedDiskLicense
- type InstanceConfig
- type InstanceGuestOsFeature
- type InstanceMetadataItem
- type InstanceNetworkInterface
- type InstanceReservationAffinityValue
- type InstanceResourcePolicy
- type InstanceSchedulingNodeAffinity
- type InstanceServiceAccount
- type InstanceTag
- type Interconnect
- type InterconnectAttachment
- type InterconnectCircuitInfo
- type InterconnectConfig
- type InterconnectOutageNotification
- type InterconnectOutageNotificationAffectedCircuit
- type SSLCertificate
- type SSLCertificateManagedDomain
- type SSLCertificateSubjectAlternativeName
- type SslCertificateConfig
- type VpnGateway
- type VpnGatewayConfig
- type VpnGatewayLabel
- type VpnGatewayVpnGatewayInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Address ¶
type Address struct {
ID uint `gorm:"primarykey"`
ProjectID string
Address string
AddressType string
CreationTimestamp string
Description string
ResourceID uint64
IpVersion string
Kind string
Name string
Network string
NetworkTier string
PrefixLength int64
Purpose string
Region string
SelfLink string
Status string
Subnetwork string
Users []*AddressUser `gorm:"constraint:OnDelete:CASCADE;"`
}
type AddressConfig ¶
type AddressConfig struct {
Filter string
}
type AddressUser ¶
type Autoscaler ¶
type Autoscaler struct {
ID uint `gorm:"primarykey"`
ProjectID string
CoolDownPeriodSec int64
CpuUtilizationUtilizationTarget float64
CustomMetricUtilizations []*AutoscalerPolicyCustomMetricUtilization `gorm:"constraint:OnDelete:CASCADE;"`
LoadBalancingUtilizationUtilizationTarget float64
MaxNumReplicas int64
MinNumReplicas int64
Mode string
MaxScaledInReplicasCalculated int64
MaxScaledInReplicasFixed int64
MaxScaledInReplicasPercent int64
TimeWindowSec int64
CreationTimestamp string
Description string
ResourceID uint64
Kind string
Name string
RecommendedSize int64
Region string
SelfLink string
Status string
StatusDetails []*AutoscalerStatusDetails `gorm:"constraint:OnDelete:CASCADE;"`
Target string
Zone string
}
type AutoscalerConfig ¶
type AutoscalerConfig struct {
Filter string
}
type AutoscalerStatusDetails ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CollectResource ¶
type DiskType ¶
type DiskType struct {
ID uint `gorm:"primarykey"`
ProjectID string
CreationTimestamp string
DefaultDiskSizeGb int64
DeprecatedDeleted string
DeprecatedDeprecated string
DeprecatedObsolete string
DeprecatedReplacement string
DeprecatedState string
Description string
ResourceID uint64
Id uint64
Kind string
Name string
Region string
SelfLink string
ValidDiskSize string
Zone string
}
type DiskTypeConfig ¶
type DiskTypeConfig struct {
Filter string
}
type Image ¶
type Image struct {
ID uint `gorm:"primarykey"`
ProjectID string
Region string
ArchiveSizeBytes int64
CreationTimestamp string
DeprecatedDeleted string
DeprecatedDeprecated string
DeprecatedObsolete string
DeprecatedReplacement string
DeprecatedState string
Description string
DiskSizeGb int64
Family string
GuestOsFeatures []*ImageGuestOsFeature `gorm:"constraint:OnDelete:CASCADE;"`
ResourceID uint64
Id uint64
Kind string
LabelFingerprint string
//Labels []*ImageLabel `gorm:"constraint:OnDelete:CASCADE;"`
LicenseCodes []*ImageLicenseCode `gorm:"constraint:OnDelete:CASCADE;"`
Licenses []*ImageLicense `gorm:"constraint:OnDelete:CASCADE;"`
Name string
RawDiskContainerType string
RawDiskSha1Checksum string
RawDiskSource string
SelfLink string
SourceDisk string
SourceDiskId string
SourceImage string
SourceImageId string
SourceSnapshot string
SourceSnapshotId string
SourceType string
Status string
StorageLocations []*ImageStorageLocation `gorm:"constraint:OnDelete:CASCADE;"`
}
type ImageGuestOsFeature ¶
type ImageLicense ¶
type ImageLicenseCode ¶
type ImageStorageLocation ¶
type Instance ¶
type Instance struct {
ID uint `gorm:"primarykey"`
ProjectID string
CanIpForward bool
ConfidentialInstanceConfigEnableConfidentialCompute bool
CpuPlatform string
CreationTimestamp string
DeletionProtection bool
Description string
Disks []*InstanceAttachedDisk `gorm:"constraint:OnDelete:CASCADE;"`
DisplayDeviceEnableDisplay bool
Fingerprint string
GuestAccelerators []*InstanceAcceleratorConfig `gorm:"constraint:OnDelete:CASCADE;"`
Hostname string
ResourceID uint64
Kind string
LabelFingerprint string
//Labels []*InstanceLabels `gorm:"constraint:OnDelete:CASCADE;"`
LastStartTimestamp string
LastStopTimestamp string
LastSuspendedTimestamp string
MachineType string
Metadata []*InstanceMetadataItem `gorm:"constraint:OnDelete:CASCADE;"`
MinCpuPlatform string
Name string
NetworkInterfaces []*InstanceNetworkInterface `gorm:"constraint:OnDelete:CASCADE;"`
PrivateIpv6GoogleAccess string
ReservationAffinityConsumeReservationType string
ReservationAffinityKey string
ReservationAffinityValues []*InstanceReservationAffinityValue `gorm:"constraint:OnDelete:CASCADE;"`
ResourcePolicies []*InstanceResourcePolicy `gorm:"constraint:OnDelete:CASCADE;"`
SchedulingAutomaticRestart *bool
SchedulingMinNodeCpus int64
SchedulingNodeAffinities []*InstanceSchedulingNodeAffinity `gorm:"constraint:OnDelete:CASCADE;"`
SchedulingOnHostMaintenance string
SchedulingPreemptible bool
SelfLink string
ServiceAccounts []*InstanceServiceAccount `gorm:"constraint:OnDelete:CASCADE;"`
ShieldedInstanceConfigEnableIntegrityMonitoring bool
ShieldedInstanceConfigEnableSecureBoot bool
ShieldedInstanceConfigEnableVtpm bool
ShieldedInstanceIntegrityPolicyUpdateAutoLearnPolicy bool
StartRestricted bool
Status string
StatusMessage string
Tags []*InstanceTag `gorm:"constraint:OnDelete:CASCADE;"`
Zone string
}
type InstanceAccessConfig ¶
type InstanceAliasIpRange ¶
type InstanceAttachedDisk ¶
type InstanceAttachedDisk struct {
ID uint `gorm:"primarykey"`
InstanceID uint
AutoDelete bool
Boot bool
DeviceName string
DiskSizeGb int64
GuestOsFeatures []*InstanceGuestOsFeature `gorm:"constraint:OnDelete:CASCADE;"`
Index int64
InitializeDescription string
InitializeDiskName string
InitializeDiskSizeGb int64
InitializeDiskType string
//InitializeLabels []*InstanceAttachedDiskInitializeLabel `gorm:"constraint:OnDelete:CASCADE;"`
InitializeOnUpdateAction string
InitializeResourcePolicies []*InstanceAttachedDiskInitializeResourcePolicy `gorm:"constraint:OnDelete:CASCADE;"`
InitializeSourceImage string
InitializeSourceSnapshot string
Interface string
Kind string
Licenses []*InstanceAttachedDiskLicense `gorm:"constraint:OnDelete:CASCADE;"`
Mode string
Source string
Type string
}
type InstanceConfig ¶
type InstanceConfig struct {
Filter string
}
type InstanceGuestOsFeature ¶
type InstanceMetadataItem ¶
type InstanceNetworkInterface ¶
type InstanceNetworkInterface struct {
ID uint `gorm:"primarykey"`
InstanceID uint
AccessConfigs []*InstanceAccessConfig `gorm:"constraint:OnDelete:CASCADE;"`
AliasIpRanges []*InstanceAliasIpRange `gorm:"constraint:OnDelete:CASCADE;"`
Fingerprint string
Ipv6Address string
Kind string
Name string
Network string
NetworkIP string
Subnetwork string
}
type InstanceResourcePolicy ¶
type InstanceServiceAccount ¶
type InstanceTag ¶
type Interconnect ¶
type Interconnect struct {
ID uint `gorm:"primarykey"`
ProjectID string
AdminEnabled bool
CircuitInfos []*InterconnectCircuitInfo `gorm:"constraint:OnDelete:CASCADE;"`
CreationTimestamp string
CustomerName string
Description string
ExpectedOutages []*InterconnectOutageNotification `gorm:"constraint:OnDelete:CASCADE;"`
GoogleIpAddress string
GoogleReferenceId string
ResourceID uint64
InterconnectAttachments []*InterconnectAttachment `gorm:"constraint:OnDelete:CASCADE;"`
InterconnectType string
Kind string
LinkType string
Location string
Name string
NocContactEmail string
OperationalStatus string
PeerIpAddress string
ProvisionedLinkCount int64
RequestedLinkCount int64
SelfLink string
State string
}
type InterconnectAttachment ¶
type InterconnectCircuitInfo ¶
type InterconnectConfig ¶
type InterconnectConfig struct {
Filter string
}
type InterconnectOutageNotification ¶
type InterconnectOutageNotification struct {
ID uint `gorm:"primarykey"`
InterconnectID uint
AffectedCircuits []*InterconnectOutageNotificationAffectedCircuit `gorm:"constraint:OnDelete:CASCADE;"`
Description string
EndTime int64
IssueType string
Name string
Source string
StartTime int64
State string
}
type SSLCertificate ¶
type SSLCertificate struct {
ID uint `gorm:"primarykey"`
ProjectID string
Certificate string
CreationTimestamp string
Description string
ExpireTime string
ResourceID uint64
Kind string
ManagedDomains []*SSLCertificateManagedDomain `gorm:"constraint:OnDelete:CASCADE;"`
ManagedStatus string
Name string
Region string
SelfLink string
SelfManagedCertificate string
SubjectAlternativeNames []*SSLCertificateSubjectAlternativeName `gorm:"constraint:OnDelete:CASCADE;"`
Type string
}
type SslCertificateConfig ¶
type SslCertificateConfig struct {
Filter string
}
type VpnGateway ¶
type VpnGateway struct {
ID uint `gorm:"primarykey"`
ProjectID string
CreationTimestamp string
Description string
ResourceID uint64
Kind string
LabelFingerprint string
Labels []*VpnGatewayLabel `gorm:"constraint:OnDelete:CASCADE;"`
Name string
Network string
Region string
SelfLink string
VpnInterfaces []*VpnGatewayVpnGatewayInterface `gorm:"constraint:OnDelete:CASCADE;"`
}
type VpnGatewayConfig ¶
type VpnGatewayConfig struct {
Filter string
}
type VpnGatewayLabel ¶
Click to show internal directories.
Click to hide internal directories.