emr

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateClusters added in v0.5.1

func MigrateClusters(db *gorm.DB) error

func NewClient

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

Types

type Client

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

func (*Client) CollectResource

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

type Cluster

type Cluster struct {
	ID                      uint `gorm:"primarykey"`
	AccountID               string
	Region                  string
	ClusterArn              *string
	Id                      *string
	Name                    *string
	NormalizedInstanceHours *int64
	OutpostArn              *string
	Status                  *ClusterStatus `gorm:"constraint:OnDelete:CASCADE;"`
}

func (Cluster) TableName added in v0.3.8

func (Cluster) TableName() string

type ClusterStatus

type ClusterStatus struct {
	ID                uint `gorm:"primarykey"`
	ClusterID         uint
	State             *string
	StateChangeReason *emr.ClusterStateChangeReason `gorm:"embedded;embeddedPrefix:state_change_reason_"`
	Timeline          *emr.ClusterTimeline          `gorm:"embedded;embeddedPrefix:timeline_"`
}

func (ClusterStatus) TableName added in v0.3.8

func (ClusterStatus) TableName() string

Jump to

Keyboard shortcuts

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