Documentation
¶
Index ¶
- Variables
- func NewClient(db *database.Database, log *zap.Logger, projectID string) (resource.ClientInterface, error)
- type Address
- type AddressConfig
- type AddressUser
- type Autoscaler
- type AutoscalerConfig
- type AutoscalerPolicyCustomMetric
- 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 InstanceAttachedDiskInitializePolicy
- type InstanceAttachedDiskLicense
- type InstanceConfig
- type InstanceGuestOsFeature
- type InstanceMetadataItem
- type InstanceNetworkInterface
- type InstancePolicy
- type InstanceReservationAffinityValue
- type InstanceSchedulingNodeAffinity
- type InstanceServiceAccount
- type InstanceTag
- type Interconnect
- type InterconnectAttachment
- type InterconnectCircuitInfo
- type InterconnectConfig
- type InterconnectOutage
- type InterconnectOutageAffectedCircuit
- type SSLCertificate
- type SSLCertificateManagedDomain
- type SSLCertificateSubjectAlternativeName
- type SslCertificateConfig
- type VpnGateway
- type VpnGatewayConfig
- type VpnGatewayLabel
- type VpnGatewayVpnGatewayInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var AddressTables = []interface{}{ &Address{}, &AddressUser{}, }
View Source
var AutoscalerTables = []interface{}{ &Autoscaler{}, &AutoscalerPolicyCustomMetric{}, &AutoscalerStatusDetails{}, }
View Source
var DiskTypeTables = []interface{}{ &DiskType{}, }
View Source
var ImageTables = []interface{}{ &Image{}, &ImageGuestOsFeature{}, &ImageLicenseCode{}, &ImageLicense{}, &ImageStorageLocation{}, }
View Source
var InstanceTables = []interface{}{ &Instance{}, &InstanceAttachedDisk{}, &InstanceAttachedDiskLicense{}, &InstanceGuestOsFeature{}, &InstanceAcceleratorConfig{}, &InstanceMetadataItem{}, &InstanceNetworkInterface{}, &InstanceAccessConfig{}, &InstanceAliasIpRange{}, &InstanceSchedulingNodeAffinity{}, &InstanceServiceAccount{}, &InstanceTag{}, }
View Source
var InterconnectTables = []interface{}{ &Interconnect{}, &InterconnectCircuitInfo{}, &InterconnectOutage{}, &InterconnectOutageAffectedCircuit{}, &InterconnectAttachment{}, }
View Source
var SSLCertificateTables = []interface{}{ &SSLCertificate{}, &SSLCertificateManagedDomain{}, &SSLCertificateSubjectAlternativeName{}, }
View Source
var VPNGatewayTables = []interface{}{ &VpnGateway{}, &VpnGatewayVpnGatewayInterface{}, &VpnGatewayLabel{}, }
Functions ¶
Types ¶
type Address ¶
type Address struct {
ID uint `gorm:"primarykey"`
ProjectID string `neo:"unique"`
Address string
AddressType string
CreationTimestamp string
Description string
ResourceID uint64 `neo:"unique"`
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;"`
// contains filtered or unexported fields
}
type AddressConfig ¶
type AddressConfig struct {
Filter string
}
type AddressUser ¶
type AddressUser struct {
ID uint `gorm:"primarykey"`
AddressID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Value string
}
func (AddressUser) TableName ¶ added in v0.7.0
func (AddressUser) TableName() string
type Autoscaler ¶
type Autoscaler struct {
ID uint `gorm:"primarykey"`
ProjectID string `neo:"unique"`
CoolDownPeriodSec int64
CpuUtilizationUtilizationTarget float64
CustomMetris []*AutoscalerPolicyCustomMetric `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 `neo:"unique"`
Kind string
Name string
RecommendedSize int64
Region string
SelfLink string
Status string
StatusDetails []*AutoscalerStatusDetails `gorm:"constraint:OnDelete:CASCADE;"`
Target string
Zone string
// contains filtered or unexported fields
}
func (Autoscaler) TableName ¶ added in v0.7.0
func (Autoscaler) TableName() string
type AutoscalerConfig ¶
type AutoscalerConfig struct {
Filter string
}
type AutoscalerPolicyCustomMetric ¶ added in v0.7.0
type AutoscalerPolicyCustomMetric struct {
ID uint `gorm:"primarykey"`
AutoscalerID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Filter string
Metric string
SingleInstanceAssignment float64
UtilizationTarget float64
UtilizationTargetType string
}
func (AutoscalerPolicyCustomMetric) TableName ¶ added in v0.7.0
func (AutoscalerPolicyCustomMetric) TableName() string
type AutoscalerStatusDetails ¶
type AutoscalerStatusDetails struct {
ID uint `gorm:"primarykey"`
AutoscalerID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Message string
Type string
}
func (AutoscalerStatusDetails) TableName ¶ added in v0.7.0
func (AutoscalerStatusDetails) TableName() string
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
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 `neo:"unique"`
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 `neo:"unique"`
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;"`
// contains filtered or unexported fields
}
type ImageGuestOsFeature ¶
type ImageGuestOsFeature struct {
ID uint `gorm:"primarykey"`
ImageID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Type string
}
func (ImageGuestOsFeature) TableName ¶ added in v0.7.0
func (ImageGuestOsFeature) TableName() string
type ImageLicense ¶
type ImageLicense struct {
ID uint `gorm:"primarykey"`
ImageID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Value string
}
func (ImageLicense) TableName ¶ added in v0.7.0
func (ImageLicense) TableName() string
type ImageLicenseCode ¶
type ImageLicenseCode struct {
ID uint `gorm:"primarykey"`
ImageID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Value int64
}
func (ImageLicenseCode) TableName ¶ added in v0.7.0
func (ImageLicenseCode) TableName() string
type ImageStorageLocation ¶
type ImageStorageLocation struct {
ID uint `gorm:"primarykey"`
ImageID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Value string
}
func (ImageStorageLocation) TableName ¶ added in v0.7.0
func (ImageStorageLocation) TableName() string
type Instance ¶
type Instance struct {
ID uint `gorm:"primarykey"`
ProjectID string `neo:"unique"`
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 `neo:"unique"`
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;"`
Policies []*InstancePolicy `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
// contains filtered or unexported fields
}
type InstanceAcceleratorConfig ¶
type InstanceAcceleratorConfig struct {
ID uint `gorm:"primarykey"`
InstanceID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
AcceleratorCount int64
AcceleratorType string
}
func (InstanceAcceleratorConfig) TableName ¶ added in v0.7.0
func (InstanceAcceleratorConfig) TableName() string
type InstanceAccessConfig ¶
type InstanceAccessConfig struct {
ID uint `gorm:"primarykey"`
InstanceNetworkInterfaceID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Kind string
Name string
NatIP string
NetworkTier string
PublicPtrDomainName string
SetPublicPtr bool
Type string
}
func (InstanceAccessConfig) TableName ¶ added in v0.7.0
func (InstanceAccessConfig) TableName() string
type InstanceAliasIpRange ¶
type InstanceAliasIpRange struct {
ID uint `gorm:"primarykey"`
InstanceNetworkInterfaceID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
IpCidrRange string
SubnetworkRangeName string
}
func (InstanceAliasIpRange) TableName ¶ added in v0.7.0
func (InstanceAliasIpRange) TableName() string
type InstanceAttachedDisk ¶
type InstanceAttachedDisk struct {
ID uint `gorm:"primarykey"`
InstanceID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
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
InitializePolicies []*InstanceAttachedDiskInitializePolicy `gorm:"constraint:OnDelete:CASCADE;"`
InitializeSourceImage string
InitializeSourceSnapshot string
Interface string
Kind string
Licenses []*InstanceAttachedDiskLicense `gorm:"constraint:OnDelete:CASCADE;"`
Mode string
Source string
Type string
}
func (InstanceAttachedDisk) TableName ¶ added in v0.7.0
func (InstanceAttachedDisk) TableName() string
type InstanceAttachedDiskInitializePolicy ¶ added in v0.7.0
type InstanceAttachedDiskInitializePolicy struct {
ID uint `gorm:"primarykey"`
InstanceAttachedDiskID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Value string
}
func (InstanceAttachedDiskInitializePolicy) TableName ¶ added in v0.7.0
func (InstanceAttachedDiskInitializePolicy) TableName() string
type InstanceAttachedDiskLicense ¶
type InstanceAttachedDiskLicense struct {
ID uint `gorm:"primarykey"`
InstanceAttachedDiskID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Value string
}
func (InstanceAttachedDiskLicense) TableName ¶ added in v0.7.0
func (InstanceAttachedDiskLicense) TableName() string
type InstanceConfig ¶
type InstanceConfig struct {
Filter string
}
type InstanceGuestOsFeature ¶
type InstanceGuestOsFeature struct {
ID uint `gorm:"primarykey"`
InstanceAttachedDiskID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Type string
}
func (InstanceGuestOsFeature) TableName ¶ added in v0.7.0
func (InstanceGuestOsFeature) TableName() string
type InstanceMetadataItem ¶
type InstanceMetadataItem struct {
ID uint `gorm:"primarykey"`
InstanceID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Fingerprint string
Key string
Value *string
Kind string
}
func (InstanceMetadataItem) TableName ¶ added in v0.7.0
func (InstanceMetadataItem) TableName() string
type InstanceNetworkInterface ¶
type InstanceNetworkInterface struct {
ID uint `gorm:"primarykey"`
InstanceID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
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
}
func (InstanceNetworkInterface) TableName ¶ added in v0.7.0
func (InstanceNetworkInterface) TableName() string
type InstancePolicy ¶ added in v0.7.0
type InstancePolicy struct {
ID uint `gorm:"primarykey"`
InstanceID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Value string
}
func (InstancePolicy) TableName ¶ added in v0.7.0
func (InstancePolicy) TableName() string
type InstanceReservationAffinityValue ¶
type InstanceReservationAffinityValue struct {
ID uint `gorm:"primarykey"`
InstanceID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Value string
}
func (InstanceReservationAffinityValue) TableName ¶ added in v0.7.0
func (InstanceReservationAffinityValue) TableName() string
type InstanceSchedulingNodeAffinity ¶
type InstanceSchedulingNodeAffinity struct {
ID uint `gorm:"primarykey"`
InstanceID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Key string
Operator string
Value string
}
func (InstanceSchedulingNodeAffinity) TableName ¶ added in v0.7.0
func (InstanceSchedulingNodeAffinity) TableName() string
type InstanceServiceAccount ¶
type InstanceServiceAccount struct {
ID uint `gorm:"primarykey"`
InstanceID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Email string
Scope string
}
func (InstanceServiceAccount) TableName ¶ added in v0.7.0
func (InstanceServiceAccount) TableName() string
type InstanceTag ¶
type InstanceTag struct {
ID uint `gorm:"primarykey"`
InstanceID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Fingerprint string
Value string `gorm:"constraint:OnDelete:CASCADE;"`
}
func (InstanceTag) TableName ¶ added in v0.7.0
func (InstanceTag) TableName() string
type Interconnect ¶
type Interconnect struct {
ID uint `gorm:"primarykey"`
ProjectID string `neo:"unique"`
AdminEnabled bool
CircuitInfos []*InterconnectCircuitInfo `gorm:"constraint:OnDelete:CASCADE;"`
CreationTimestamp string
CustomerName string
Description string
ExpectedOutages []*InterconnectOutage `gorm:"constraint:OnDelete:CASCADE;"`
GoogleIpAddress string
GoogleReferenceId string
ResourceID uint64 `neo:"unique"`
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
// contains filtered or unexported fields
}
func (Interconnect) TableName ¶ added in v0.7.0
func (Interconnect) TableName() string
type InterconnectAttachment ¶
type InterconnectAttachment struct {
ID uint `gorm:"primarykey"`
InterconnectID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Value string
}
func (InterconnectAttachment) TableName ¶ added in v0.7.0
func (InterconnectAttachment) TableName() string
type InterconnectCircuitInfo ¶
type InterconnectCircuitInfo struct {
ID uint `gorm:"primarykey"`
InterconnectID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
CustomerDemarcId string
GoogleCircuitId string
GoogleDemarcId string
}
func (InterconnectCircuitInfo) TableName ¶ added in v0.7.0
func (InterconnectCircuitInfo) TableName() string
type InterconnectConfig ¶
type InterconnectConfig struct {
Filter string
}
type InterconnectOutage ¶ added in v0.7.0
type InterconnectOutage struct {
ID uint `gorm:"primarykey"`
InterconnectID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
AffectedCircuits []*InterconnectOutageAffectedCircuit `gorm:"constraint:OnDelete:CASCADE;"`
Description string
EndTime int64
IssueType string
Name string
Source string
StartTime int64
State string
}
func (InterconnectOutage) TableName ¶ added in v0.7.0
func (InterconnectOutage) TableName() string
type InterconnectOutageAffectedCircuit ¶ added in v0.7.0
type InterconnectOutageAffectedCircuit struct {
ID uint `gorm:"primarykey"`
InterconnectOutageID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Value string
}
func (InterconnectOutageAffectedCircuit) TableName ¶ added in v0.7.0
func (InterconnectOutageAffectedCircuit) TableName() string
type SSLCertificate ¶
type SSLCertificate struct {
ID uint `gorm:"primarykey"`
ProjectID string `neo:"unique"`
Certificate string
CreationTimestamp string
Description string
ExpireTime string
ResourceID uint64 `neo:"unique"`
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
// contains filtered or unexported fields
}
func (SSLCertificate) TableName ¶ added in v0.7.0
func (SSLCertificate) TableName() string
type SSLCertificateManagedDomain ¶
type SSLCertificateManagedDomain struct {
ID uint `gorm:"primarykey"`
SSLCertificateID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Value string
}
func (SSLCertificateManagedDomain) TableName ¶ added in v0.7.0
func (SSLCertificateManagedDomain) TableName() string
type SSLCertificateSubjectAlternativeName ¶
type SSLCertificateSubjectAlternativeName struct {
ID uint `gorm:"primarykey"`
SSLCertificateID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Value string
}
func (SSLCertificateSubjectAlternativeName) TableName ¶ added in v0.7.0
func (SSLCertificateSubjectAlternativeName) TableName() string
type SslCertificateConfig ¶
type SslCertificateConfig struct {
Filter string
}
type VpnGateway ¶
type VpnGateway struct {
ID uint `gorm:"primarykey"`
ProjectID string `neo:"unique"`
CreationTimestamp string
Description string
ResourceID uint64 `neo:"unique"`
Kind string
LabelFingerprint string
Labels []*VpnGatewayLabel `gorm:"constraint:OnDelete:CASCADE;"`
Name string
Network string
Region string
SelfLink string
VpnInterfaces []*VpnGatewayVpnGatewayInterface `gorm:"constraint:OnDelete:CASCADE;"`
// contains filtered or unexported fields
}
func (VpnGateway) TableName ¶ added in v0.7.0
func (VpnGateway) TableName() string
type VpnGatewayConfig ¶
type VpnGatewayConfig struct {
Filter string
}
type VpnGatewayLabel ¶
type VpnGatewayLabel struct {
ID uint `gorm:"primarykey"`
VpnGatewayID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Key string
Value string
}
func (VpnGatewayLabel) TableName ¶ added in v0.7.0
func (VpnGatewayLabel) TableName() string
type VpnGatewayVpnGatewayInterface ¶
type VpnGatewayVpnGatewayInterface struct {
ID uint `gorm:"primarykey"`
VpnGatewayID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
ResourceID int64
IpAddress string
}
func (VpnGatewayVpnGatewayInterface) TableName ¶ added in v0.7.0
func (VpnGatewayVpnGatewayInterface) TableName() string
Click to show internal directories.
Click to hide internal directories.