Dagger
Search

sops

SOPS: Simple And Flexible Tool For Managing Secrets

Installation

dagger install github.com/RawkodeAcademy/RawkodeAcademy/daggerverse/sops@fbfee5969919328f8a003d6c14762b4f6e2e0227

Entrypoint

Return Type
Sops
Example
dagger -m github.com/RawkodeAcademy/RawkodeAcademy/daggerverse/sops@fbfee5969919328f8a003d6c14762b4f6e2e0227 call \
func (m *myModule) example() *Sops  {
	return dag.
			Sops()
}
@function
def example() -> dag.Sops:
	return (
		dag.sops()
	)
@func()
example(): Sops {
	return dag
		.sops()
}

Types

Sops 🔗

getSecrets() 🔗

Get a list of secrets from an encrypted SOPs file

Return Type
[Secret ! ] !
Arguments
NameTypeDefault ValueDescription
privateKeySecret !-The private key used for decrypting secrets
directoryDirectory !-The directory containing the encrypted SOPs file
inputTypeString !"yaml"The input format of your encrypted SOPs file
Example
dagger -m github.com/RawkodeAcademy/RawkodeAcademy/daggerverse/sops@fbfee5969919328f8a003d6c14762b4f6e2e0227 call \
 get-secrets --private-key env:MYSECRET --directory DIR_PATH --input-type string
func (m *myModule) example(privateKey *Secret, directory *Directory, inputType string) []*Secret  {
	return dag.
			Sops().
			GetSecrets(privateKey, directory, inputType)
}
@function
def example(private_key: dagger.Secret, directory: dagger.Directory, input_type: str) -> List[dagger.Secret]:
	return (
		dag.sops()
		.get_secrets(private_key, directory, input_type)
	)
@func()
example(privateKey: Secret, directory: Directory, inputType: string): Secret[] {
	return dag
		.sops()
		.getSecrets(privateKey, directory, inputType)
}