kms

package
v0.8.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KeyTables = []interface{}{
	&Key{},
	&KeySigningAlgorithm{},
	&KeyEncryptionAlgorithm{},
}

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 Client

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

func (*Client) CollectResource

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

type Key

type Key struct {
	ID        uint `gorm:"primarykey"`
	AccountID string
	Region    string

	Arn                   *string `neo:"unique"`
	KeyId                 *string
	RotationEnabled       *bool
	CloudHsmClusterId     *string
	CreationDate          *time.Time
	CustomKeyStoreId      *string
	CustomerMasterKeySpec *string
	DeletionDate          *time.Time
	Description           *string
	Enabled               *bool
	EncryptionAlgorithms  []*KeyEncryptionAlgorithm `gorm:"constraint:OnDelete:CASCADE;"`
	ExpirationModel       *string
	Manager               *string
	KeyState              *string
	KeyUsage              *string
	Origin                *string
	SigningAlgorithms     []*KeySigningAlgorithm `gorm:"constraint:OnDelete:CASCADE;"`
	ValidTo               *time.Time
	// contains filtered or unexported fields
}

func (Key) TableName added in v0.3.8

func (Key) TableName() string

type KeyEncryptionAlgorithm

type KeyEncryptionAlgorithm struct {
	ID        uint   `gorm:"primarykey"`
	KeyID     uint   `neo:"ignore"`
	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`
	// contains filtered or unexported fields
}

func (KeyEncryptionAlgorithm) TableName added in v0.3.8

func (KeyEncryptionAlgorithm) TableName() string

type KeySigningAlgorithm

type KeySigningAlgorithm struct {
	ID        uint   `gorm:"primarykey"`
	KeyID     uint   `neo:"ignore"`
	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`
	// contains filtered or unexported fields
}

func (KeySigningAlgorithm) TableName added in v0.3.8

func (KeySigningAlgorithm) TableName() string

Jump to

Keyboard shortcuts

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