sops

package
v0.6.10 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MPL-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureProvider added in v0.6.6

func ConfigureProvider(ctx context.Context, d *schema.ResourceData) (interface{}, diag.Diagnostics)

func Encrypt added in v0.6.6

func Encrypt(opts EncryptOpts, fileBytes []byte) (encryptedFile []byte, err error)

func GetAgeConf added in v0.6.6

func GetAgeConf(d *schema.ResourceData) (string, error)

func GetEncryptionKey added in v0.6.6

func GetEncryptionKey(d *schema.ResourceData, encType string) (interface{}, error)

func GetInputStore added in v0.6.6

func GetInputStore(d *schema.ResourceData) scommon.Store

func GetOutputStore added in v0.6.6

func GetOutputStore(d *schema.ResourceData) scommon.Store

func KeyGroups added in v0.6.6

func KeyGroups(d *schema.ResourceData, encType string, config *EncryptConfig) ([]mozillasops.KeyGroup, error)

func LocalKeySvc added in v0.6.6

func LocalKeySvc() (svcs []keyservice.KeyServiceClient)

func Provider

func Provider() *schema.Provider

Types

type EncryptConfig added in v0.6.6

type EncryptConfig struct {
	Kms KmsConf
	Age string
}

type EncryptOpts added in v0.6.6

type EncryptOpts struct {
	Cipher            mozillasops.Cipher
	InputStore        mozillasops.Store
	OutputStore       mozillasops.Store
	InputPath         string
	KeyServices       []keyservice.KeyServiceClient
	UnencryptedSuffix string
	EncryptedSuffix   string
	UnencryptedRegex  string
	EncryptedRegex    string
	KeyGroups         []mozillasops.KeyGroup
	GroupThreshold    int
}

type KmsConf added in v0.6.6

type KmsConf struct {
	ARN     string
	Profile string
}

func GetKmsConf added in v0.6.6

func GetKmsConf(d *schema.ResourceData) (KmsConf, error)

func (*KmsConf) IsConfigured added in v0.6.6

func (c *KmsConf) IsConfigured() bool

Directories

Path Synopsis
internal
ini

Jump to

Keyboard shortcuts

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