Documentation ¶
Index ¶
- func GetBucketRegion(secret *secret.SecretItemResponse, bucketName string, region string, ...) (string, error)
- func Migrate(db *gorm.DB, logger logrus.FieldLogger) error
- func NewNetworkService(region string, secret *secret.SecretItemResponse, logger logrus.FieldLogger) (network.Service, error)
- func NewObjectStore(region string, secret *secret.SecretItemResponse, org *auth.Organization, ...) (*objectStore, error)
- func PipelineTags() []*cloudformation.Tag
- type ObjectStoreBucketModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBucketRegion ¶
func GetBucketRegion(secret *secret.SecretItemResponse, bucketName string, region string, orgID uint, log logrus.FieldLogger) (string, error)
GetBucketRegion returns with the given bucket's region from Amazon
func Migrate ¶
func Migrate(db *gorm.DB, logger logrus.FieldLogger) error
Migrate executes the table migrations for the provider.
func NewNetworkService ¶
func NewNetworkService(region string, secret *secret.SecretItemResponse, logger logrus.FieldLogger) (network.Service, error)
NewNetworkService returns a new Amazon network Service
func NewObjectStore ¶
func NewObjectStore( region string, secret *secret.SecretItemResponse, org *auth.Organization, db *gorm.DB, logger logrus.FieldLogger, force bool, ) (*objectStore, error)
NewObjectStore returns a new object store instance.
func PipelineTags ¶
func PipelineTags() []*cloudformation.Tag
PipelineTags returns resource tags for Amazon based on the Pipeline UUID if available
Types ¶
type ObjectStoreBucketModel ¶
type ObjectStoreBucketModel struct { ID uint `gorm:"primary_key"` Organization auth.Organization `gorm:"foreignkey:OrganizationID"` OrganizationID uint `gorm:"index;not null"` Name string `gorm:"unique_index:idx_amazon_bucket_name"` Region string SecretRef string Status string StatusMsg string `sql:"type:text;"` }
ObjectStoreBucketModel is the schema for the DB.
func (ObjectStoreBucketModel) TableName ¶
func (ObjectStoreBucketModel) TableName() string
TableName changes the default table name.
Click to show internal directories.
Click to hide internal directories.