Documentation ¶
Index ¶
- func AddApplicationsYaml(path string, name string) (string, error)
- func DecryptionClusterApplicationsYaml(path string, secretName string) (string, error)
- func Encrypt(opts EncryptOpts) (encryptedFile []byte, err error)
- func EncryptYaml(fileName string, keyP string) (string, error)
- func ExportKustomization(kustomization kustomize.Kustomization) (string, error)
- func NewKustomizationYaml(decryption bool, sourceSecret bool) (string, error)
- func NewPatchYaml(namespace string, name string, path string) (string, error)
- func NewRbacYaml(namespace string, tenant string, roleName string, clusterRole bool, ...) (string, error)
- func NewSecretSopsYaml(name string) (string, *age.X25519Identity, error)
- func NewSourceSecretYaml(repositoryURL *url.URL, options *SourceSecretOptions) (string, string, error)
- func NewSyncYaml(namespace string, name string, URL string, branch string, decryption bool, ...) (string, error)
- func Read(path string) (string, error)
- func ReadKustomization(y string) (kustomize.Kustomization, error)
- func RemoveApplicationsYaml(path string, name string) (string, error)
- func Save(yaml string, path string) error
- func UpdateDependsOnSyncYaml(syncY string, dependsOn []meta.NamespacedObjectReference) (string, error)
- func UpdatePathPatchYaml(patchY, path string) (string, error)
- type EncryptOpts
- type SourceSecretOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encrypt ¶
func Encrypt(opts EncryptOpts) (encryptedFile []byte, err error)
func ExportKustomization ¶
func ExportKustomization(kustomization kustomize.Kustomization) (string, error)
func NewKustomizationYaml ¶
func NewRbacYaml ¶
func NewSecretSopsYaml ¶
func NewSecretSopsYaml(name string) (string, *age.X25519Identity, error)
func NewSourceSecretYaml ¶
func NewSyncYaml ¶
func ReadKustomization ¶
func ReadKustomization(y string) (kustomize.Kustomization, error)
func UpdateDependsOnSyncYaml ¶
func UpdateDependsOnSyncYaml( syncY string, dependsOn []meta.NamespacedObjectReference, ) (string, error)
func UpdatePathPatchYaml ¶
Types ¶
type EncryptOpts ¶
type EncryptOpts struct { Cipher sops.Cipher InputStore sops.Store OutputStore sops.Store InputPath string KeyServices []keyservice.KeyServiceClient UnencryptedSuffix string EncryptedSuffix string UnencryptedRegex string EncryptedRegex string KeyGroups []sops.KeyGroup GroupThreshold int }
type SourceSecretOptions ¶
Click to show internal directories.
Click to hide internal directories.