publish

package
v3.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Destination

type Destination interface {
	Upload(fileContents []byte, fileName string) error
	UploadUnencrypted(data map[string]interface{}, fileName string) error
	Path(fileName string) string
}

Destination represents actions which all destination types must implement in order to be used by SOPS

type GCSDestination

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

GCSDestination represents the Google Cloud Storage destination

func NewGCSDestination

func NewGCSDestination(gcsBucket, gcsPrefix string) *GCSDestination

NewGCSDestination is the constructor for a Google Cloud Storage destination

func (*GCSDestination) Path

func (gcsd *GCSDestination) Path(fileName string) string

Path returns a the GCS path for a file within this GCS Destination

func (*GCSDestination) Upload

func (gcsd *GCSDestination) Upload(fileContents []byte, fileName string) error

Upload uploads contents to a file in GCS

func (*GCSDestination) UploadUnencrypted

func (gcsd *GCSDestination) UploadUnencrypted(data map[string]interface{}, fileName string) error

Returns NotImplementedError

type NotImplementedError

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

func (*NotImplementedError) Error

func (e *NotImplementedError) Error() string

type S3Destination

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

S3Destination is the AWS S3 implementation of the Destination interface

func NewS3Destination

func NewS3Destination(s3Bucket, s3Prefix string) *S3Destination

NewS3Destination is the constructor for an S3 Destination

func (*S3Destination) Path

func (s3d *S3Destination) Path(fileName string) string

Path returns the S3 path of a file in an S3 Destination (bucket)

func (*S3Destination) Upload

func (s3d *S3Destination) Upload(fileContents []byte, fileName string) error

Upload uploads contents to a file in an S3 Destination (bucket)

func (*S3Destination) UploadUnencrypted

func (s3d *S3Destination) UploadUnencrypted(data map[string]interface{}, fileName string) error

Returns NotImplementedError

type VaultDestination

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

func NewVaultDestination

func NewVaultDestination(vaultAddress, vaultPath, kvMountName string, kvVersion int) *VaultDestination

func (*VaultDestination) Path

func (vaultd *VaultDestination) Path(fileName string) string

func (*VaultDestination) Upload

func (vaultd *VaultDestination) Upload(fileContents []byte, fileName string) error

Returns NotImplementedError

func (*VaultDestination) UploadUnencrypted

func (vaultd *VaultDestination) UploadUnencrypted(data map[string]interface{}, fileName string) error

Jump to

Keyboard shortcuts

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