amazon

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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