fsx

package
v0.8.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BackupTables = []interface{}{
	&Backup{},
	&BackupTag{},
}

Functions

func NewClient

func NewClient(session *session.Session, awsConfig *aws.Config, db *database.Database, log *zap.Logger,
	accountID string, region string) resource.ClientInterface

Types

type Backup

type Backup struct {
	ID           uint `gorm:"primarykey"`
	AccountID    string
	Region       string
	BackupId     *string
	CreationTime *time.Time

	ActiveDirectoryId         *string
	ActiveDirectoryDomainName *string

	FailureDetailsMessage *string

	KmsKeyId        *string
	Lifecycle       *string
	ProgressPercent *int64
	ResourceARN     *string      `neo:"unique"`
	Tags            []*BackupTag `gorm:"constraint:OnDelete:CASCADE;"`
	Type            *string
	// contains filtered or unexported fields
}

func (Backup) TableName added in v0.3.8

func (Backup) TableName() string

type BackupTag

type BackupTag struct {
	ID        uint   `gorm:"primarykey"`
	BackupID  uint   `neo:"ignore"`
	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`
	Key       *string
	Value     *string
}

func (BackupTag) TableName added in v0.3.8

func (BackupTag) 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