Documentation
¶
Index ¶
- func ConfigureProvider(ctx context.Context, d *schema.ResourceData) (interface{}, diag.Diagnostics)
- func Encrypt(opts EncryptOpts, fileBytes []byte) (encryptedFile []byte, err error)
- func GetAgeConf(d *schema.ResourceData) (string, error)
- func GetEncryptionKey(d *schema.ResourceData, encType string) (interface{}, error)
- func GetInputStore(d *schema.ResourceData) scommon.Store
- func GetOutputStore(d *schema.ResourceData) scommon.Store
- func KeyGroups(d *schema.ResourceData, encType string, config *EncryptConfig) ([]mozillasops.KeyGroup, error)
- func LocalKeySvc() (svcs []keyservice.KeyServiceClient)
- func Provider() *schema.Provider
- type EncryptConfig
- type EncryptOpts
- type KmsConf
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)
Types ¶
type EncryptConfig ¶ added in v0.6.6
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
func GetKmsConf ¶ added in v0.6.6
func GetKmsConf(d *schema.ResourceData) (KmsConf, error)
func (*KmsConf) IsConfigured ¶ added in v0.6.6
Source Files
¶
Click to show internal directories.
Click to hide internal directories.