Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BucketTables = []interface{}{ &Bucket{}, &BucketGrant{}, &BucketCorsRule{}, &BucketEncryptionRule{}, }
Functions ¶
Types ¶
type Bucket ¶
type Bucket struct {
ID uint `gorm:"primarykey"`
AccountID string `neo:"unique"`
Region string `neo:"unique"`
CreationDate *time.Time
Name *string `neo:"unique"`
Grants []*BucketGrant `gorm:"constraint:OnDelete:CASCADE;"`
CORSRules []*BucketCorsRule `gorm:"constraint:OnDelete:CASCADE;"`
EncryptionRules []*BucketEncryptionRule `gorm:"constraint:OnDelete:CASCADE;"`
// The bucket policy as a JSON document.
Policy *string
// Specifies whether MFA delete is enabled in the bucket versioning configuration.
// This element is only returned if the bucket has been configured with MFA
// delete. If the bucket has never been so configured, this element is not returned.
MFADelete *string
// The versioning state of the bucket.
Status *string
// Logging
LoggingTargetPrefix *string
LoggingTargetBucket *string
// contains filtered or unexported fields
}
type BucketCorsRule ¶
type BucketCorsRule struct {
ID uint `gorm:"primarykey"`
BucketID uint `neo:"ignore"`
AccountID string `gorm:"-"`
Region string `gorm:"-"`
// Headers that are specified in the Access-Control-Request-Headers header.
// These headers are allowed in a preflight OPTIONS request. In response to
// any preflight OPTIONS request, Amazon S3 returns any requested headers that
// are allowed.
AllowedHeaders *string
// An HTTP method that you allow the origin to execute. Valid values are GET,
// PUT, HEAD, POST, and DELETE.
//
// AllowedMethods is a required field
AllowedMethods *string
// One or more origins you want customers to be able to access the bucket from.
//
// AllowedOrigins is a required field
AllowedOrigins *string
// One or more headers in the response that you want customers to be able to
// access from their applications (for example, from a JavaScript XMLHttpRequest
// object).
ExposeHeaders *string
// The time in seconds that your browser is to cache the preflight response
// for the specified resource.
MaxAgeSeconds *int64
}
func (BucketCorsRule) TableName ¶ added in v0.3.8
func (BucketCorsRule) TableName() string
type BucketEncryptionRule ¶
type BucketEncryptionRule struct {
ID uint `gorm:"primarykey"`
BucketID uint `neo:"ignore"`
AccountID string `gorm:"-"`
Region string `gorm:"-"`
KMSMasterKeyID *string
SSEAlgorithm *string
}
func (BucketEncryptionRule) TableName ¶ added in v0.3.8
func (BucketEncryptionRule) TableName() string
type BucketGrant ¶
type BucketGrant struct {
ID uint `gorm:"primarykey"`
BucketID uint `neo:"ignore"`
AccountID string `gorm:"-"`
Region string `gorm:"-"`
// The person being granted permissions.
GranteeDisplayName *string
GranteeEmailAddress *string
GranteeID *string
GranteeType *string
GranteeURI *string
// Specifies the permission given to the grantee.
Permission *string
}
func (BucketGrant) TableName ¶ added in v0.3.8
func (BucketGrant) TableName() string
Click to show internal directories.
Click to hide internal directories.