kms

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CryptoKeyTables = []interface{}{
	&CryptoKey{},
	&CryptoKeyCaviumCert{},
	&CryptoKeyGoogleCardCert{},
	&CryptoKeyGooglePartitionCert{},
}

Functions

func NewClient

func NewClient(db *database.Database, log hclog.Logger, projectID string) (resource.ClientInterface, error)

Types

type Client

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

func (*Client) CollectResource

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

type CryptoKey

type CryptoKey struct {
	ID               uint `gorm:"primarykey"`
	ProjectID        string
	CreateTime       string
	Name             string
	NextRotationTime string

	PrimaryAlgorithm string

	CaviumCerts          []*CryptoKeyCaviumCert          `gorm:"constraint:OnDelete:CASCADE;"`
	GoogleCardCerts      []*CryptoKeyGoogleCardCert      `gorm:"constraint:OnDelete:CASCADE;"`
	GooglePartitionCerts []*CryptoKeyGooglePartitionCert `gorm:"constraint:OnDelete:CASCADE;"`

	PrimaryAttestationContent string
	PrimaryAttestationFormat  string

	PrimaryCreateTime       string
	PrimaryDestroyEventTime string
	PrimaryDestroyTime      string

	PrimaryExternalProtectionLevelOptionsExternalKeyUri string

	PrimaryGenerateTime        string
	PrimaryImportFailureReason string
	PrimaryImportJob           string
	PrimaryImportTime          string
	PrimaryName                string
	PrimaryProtectionLevel     string
	PrimaryState               string

	Purpose        string
	RotationPeriod string

	VersionTemplateAlgorithm       string
	VersionTemplateProtectionLevel string
}

func (CryptoKey) TableName

func (CryptoKey) TableName() string

type CryptoKeyCaviumCert

type CryptoKeyCaviumCert struct {
	ID          uint `gorm:"primarykey"`
	CryptoKeyID uint
	Value       string
}

func (CryptoKeyCaviumCert) TableName

func (CryptoKeyCaviumCert) TableName() string

type CryptoKeyGoogleCardCert

type CryptoKeyGoogleCardCert struct {
	ID          uint `gorm:"primarykey"`
	CryptoKeyID uint
	Value       string
}

func (CryptoKeyGoogleCardCert) TableName

func (CryptoKeyGoogleCardCert) TableName() string

type CryptoKeyGooglePartitionCert

type CryptoKeyGooglePartitionCert struct {
	ID          uint `gorm:"primarykey"`
	CryptoKeyID uint
	Value       string
}

func (CryptoKeyGooglePartitionCert) TableName

Jump to

Keyboard shortcuts

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