Documentation
¶
Index ¶
- Variables
- func NewClient(db *database.Database, log *zap.Logger, projectID string) (resource.ClientInterface, error)
- type Bucket
- type BucketACLs
- type BucketConfig
- type BucketCors
- type BucketCorsMethod
- type BucketCorsOrigin
- type BucketCorsResponseHeader
- type BucketLabel
- type BucketLifecycleRule
- type BucketLifecycleRuleConditionMatchesStorageClass
- type BucketObjectACLs
- type BucketPolicyBinding
- type BucketPolicyBindingsMember
- type BucketZoneAffinity
- type Client
Constants ¶
This section is empty.
Variables ¶
View Source
var BucketTables = []interface{}{ &Bucket{}, &BucketACLs{}, &BucketCors{}, &BucketObjectACLs{}, &BucketLifecycleRule{}, &BucketCorsMethod{}, &BucketCorsOrigin{}, &BucketCorsResponseHeader{}, &BucketZoneAffinity{}, &BucketLabel{}, &BucketPolicyBinding{}, &BucketPolicyBindingsMember{}, }
Functions ¶
Types ¶
type Bucket ¶
type Bucket struct {
ID uint `gorm:"primarykey"`
ProjectID string `neo:"unique"`
Acl []*BucketACLs `gorm:"constraint:OnDelete:CASCADE;"`
BillingRequesterPays bool
Cors []*BucketCors `gorm:"constraint:OnDelete:CASCADE;"`
DefaultEventBasedHold bool
DefaultObjectAcl []*BucketObjectACLs `gorm:"constraint:OnDelete:CASCADE;"`
EncryptionDefaultKmsKeyName string
Etag string
BucketPolicyOnlyEnabled bool
BucketPolicyOnlyLockedTime string
UniformBucketLevelAccessEnabled bool
UniformBucketLevelAccessLockedTime string
ResourceID string `neo:"unique"`
Kind string
Labels []*BucketLabel `gorm:"constraint:OnDelete:CASCADE;"`
LifecycleRules []*BucketLifecycleRule `gorm:"constraint:OnDelete:CASCADE;"`
Location string
LocationType string
LoggingLogBucket string
LoggingLogObjectPrefix string
Metageneration int64
Name string
OwnerEntity string
OwnerEntityId string
ProjectNumber uint64
RetentionPolicyEffectiveTime string
RetentionPolicyIsLocked bool
RetentionPolicyRetentionPeriod int64
SelfLink string
StorageClass string
TimeCreated string
Updated string
VersioningEnabled bool
WebsiteMainPageSuffix string
WebsiteNotFoundPage string
ZoneAffinity []*BucketZoneAffinity `gorm:"constraint:OnDelete:CASCADE;"`
PolicyBindings []*BucketPolicyBinding `gorm:"constraint:OnDelete:CASCADE;"`
// contains filtered or unexported fields
}
type BucketACLs ¶ added in v0.7.0
type BucketACLs struct {
ID uint `gorm:"primarykey"`
BucketID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Bucket string
Domain string
Email string
Entity string
EntityId string
Etag string
ResourceID string
Kind string
ProjectTeamProjectNumber string
ProjectTeamTeam string
Role string
SelfLink string
}
func (BucketACLs) TableName ¶ added in v0.7.0
func (BucketACLs) TableName() string
type BucketConfig ¶
type BucketConfig struct {
Prefix string
}
type BucketCors ¶
type BucketCors struct {
ID uint `gorm:"primarykey"`
BucketID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
MaxAgeSeconds int64
Method []*BucketCorsMethod `gorm:"constraint:OnDelete:CASCADE;"`
Origin []*BucketCorsOrigin `gorm:"constraint:OnDelete:CASCADE;"`
ResponseHeader []*BucketCorsResponseHeader `gorm:"constraint:OnDelete:CASCADE;"`
}
func (BucketCors) TableName ¶ added in v0.7.0
func (BucketCors) TableName() string
type BucketCorsMethod ¶
type BucketCorsMethod struct {
ID uint `gorm:"primarykey"`
BucketCorsID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Value string
}
func (BucketCorsMethod) TableName ¶ added in v0.7.0
func (BucketCorsMethod) TableName() string
type BucketCorsOrigin ¶
type BucketCorsOrigin struct {
ID uint `gorm:"primarykey"`
BucketCorsID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Value string
}
func (BucketCorsOrigin) TableName ¶ added in v0.7.0
func (BucketCorsOrigin) TableName() string
type BucketCorsResponseHeader ¶
type BucketCorsResponseHeader struct {
ID uint `gorm:"primarykey"`
BucketCorsID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Value string
}
func (BucketCorsResponseHeader) TableName ¶ added in v0.7.0
func (BucketCorsResponseHeader) TableName() string
type BucketLabel ¶
type BucketLabel struct {
ID uint `gorm:"primarykey"`
BucketID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Key string
Value string
}
func (BucketLabel) TableName ¶ added in v0.7.0
func (BucketLabel) TableName() string
type BucketLifecycleRule ¶
type BucketLifecycleRule struct {
ID uint `gorm:"primarykey"`
BucketID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
ActionStorageClass string
ActionType string
Age int64
CreatedBefore string
CustomTimeBefore string
DaysSinceCustomTime int64
DaysSinceNoncurrentTime int64
IsLive *bool
MatchesPattern string
MatchesStorageClass []*BucketLifecycleRuleConditionMatchesStorageClass `gorm:"constraint:OnDelete:CASCADE;"`
NoncurrentTimeBefore string
NumNewerVersions int64
}
func (BucketLifecycleRule) TableName ¶ added in v0.7.0
func (BucketLifecycleRule) TableName() string
type BucketLifecycleRuleConditionMatchesStorageClass ¶
type BucketLifecycleRuleConditionMatchesStorageClass struct {
ID uint `gorm:"primarykey"`
BucketLifecycleRuleID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Value string
}
func (BucketLifecycleRuleConditionMatchesStorageClass) TableName ¶ added in v0.7.0
func (BucketLifecycleRuleConditionMatchesStorageClass) TableName() string
type BucketObjectACLs ¶ added in v0.7.0
type BucketObjectACLs struct {
ID uint `gorm:"primarykey"`
BucketID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Bucket string
Domain string
Email string
Entity string
EntityId string
Etag string
Generation int64
ResourceID string
Kind string
Object string
ProjectTeamProjectNumber string
ProjectTeamTeam string
Role string
SelfLink string
}
func (BucketObjectACLs) TableName ¶ added in v0.7.0
func (BucketObjectACLs) TableName() string
type BucketPolicyBinding ¶
type BucketPolicyBinding struct {
ID uint `gorm:"primarykey"`
BucketID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
ConditionDescription string
ConditionExpression string
ConditionLocation string
ConditionTitle string
Members []*BucketPolicyBindingsMember `gorm:"constraint:OnDelete:CASCADE;"`
Role string
}
func (BucketPolicyBinding) TableName ¶ added in v0.7.0
func (BucketPolicyBinding) TableName() string
type BucketPolicyBindingsMember ¶
type BucketPolicyBindingsMember struct {
ID uint `gorm:"primarykey"`
BucketPolicyBindingID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Name string
}
func (BucketPolicyBindingsMember) TableName ¶ added in v0.7.0
func (BucketPolicyBindingsMember) TableName() string
type BucketZoneAffinity ¶
type BucketZoneAffinity struct {
ID uint `gorm:"primarykey"`
BucketID uint `neo:"ignore"`
ProjectID string `gorm:"-"`
Value string
}
func (BucketZoneAffinity) TableName ¶ added in v0.7.0
func (BucketZoneAffinity) TableName() string
Click to show internal directories.
Click to hide internal directories.