...

Package secret

import "edge-infra.dev/pkg/sds/remoteaccess/wireguard/secret"
Overview
Index

Overview ▾

func CreateOrPatchSecret

func CreateOrPatchSecret(ctx context.Context, c client.Client, secret *corev1.Secret) error

func ExpireAt

func ExpireAt() *time.Time

Returns the time in the future that secrets should expire at

func RemoveStoreSecret

func RemoveStoreSecret(ctx context.Context, clusterEdgeID string, sm types.SecretManagerService) error

func SaveStoreSecret

func SaveStoreSecret(ctx context.Context, clusterEdgeID string, secretData []byte, sm types.SecretManagerService) error