storage

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2021 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewClient

func NewClient(db *database.Database, log *zap.Logger,
	projectID string) (resource.ClientInterface, error)

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
}

func (Bucket) TableName

func (Bucket) TableName() string

type BucketACLs

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

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

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

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

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

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

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

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

type BucketObjectACLs

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

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

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

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

func (BucketZoneAffinity) TableName() string

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) CollectResource

func (c *Client) CollectResource(resource string, config interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL