test

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTerraformEncryptionMigrationService

type MockTerraformEncryptionMigrationService struct {
	mock.Mock
}

func (*MockTerraformEncryptionMigrationService) ConvertIniContentToLegacyTerraformContent

func (m *MockTerraformEncryptionMigrationService) ConvertIniContentToLegacyTerraformContent(
	passphraseLength int,
	iniContent *ini.Content,
	pubKey *rsa.PublicKey,
	encryptedPassphraseSvc terraform_encryption_migration.EncryptedPassphraseService,
	encryptedContentSvc terraform_encryption_migration.EncryptedContentService,
) (*terraform.Content, error)

func (*MockTerraformEncryptionMigrationService) ConvertIniContentToV1TerraformContent

func (m *MockTerraformEncryptionMigrationService) ConvertIniContentToV1TerraformContent(
	passphraseLength int,
	iniContent *ini.Content,
	pubKey *rsa.PublicKey,
	encryptedPassphraseSvc terraform_encryption_migration.EncryptedPassphraseService,
	encryptedPayloadSvc terraform_encryption_migration.EncryptedPayloadService,
) (*terraform.Content, error)

func (*MockTerraformEncryptionMigrationService) MigrateEncryptedTerraformResourceHcl

func (m *MockTerraformEncryptionMigrationService) MigrateEncryptedTerraformResourceHcl(
	hclParser hcl.Parser,
	hclBytes []byte,
	privKey *rsa.PrivateKey,
	pubKey *rsa.PublicKey,
	legacyEncryptedContentSvc terraform_encryption_migration.EncryptedContentService,
	encryptedPassphraseSvc terraform_encryption_migration.EncryptedPassphraseService,
	encryptedPayloadSvc terraform_encryption_migration.EncryptedPayloadService,
) (*ast.File, error)

func (*MockTerraformEncryptionMigrationService) RotateOrRekeyEncryptedTerraformResourceHcl

func (m *MockTerraformEncryptionMigrationService) RotateOrRekeyEncryptedTerraformResourceHcl(
	hclParser hcl.Parser,
	hclBytes []byte,
	privKey *rsa.PrivateKey,
	pubKey *rsa.PublicKey,
	encryptedPassphraseSvc terraform_encryption_migration.EncryptedPassphraseService,
	encryptedPayloadSvc terraform_encryption_migration.EncryptedPayloadService,
) (*ast.File, error)

Jump to

Keyboard shortcuts

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