kms

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func NewClient

func NewClient(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

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

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

func (KeySigningAlgorithm) TableName() string

Jump to

Keyboard shortcuts

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