Documentation ¶
Index ¶
Constants ¶
View Source
const (
// SecretManagerScheme URI scheme for gcp secrets. These need to be lowercase.
SecretManagerScheme = "gcpsecretmanager"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileHelper ¶
type FileHelper interface { Exists(path string) (bool, error) NewReader(path string) (io.Reader, error) NewWriter(path string) (io.Writer, error) }
FileHelper is an interface intended to transparently handle working with GCS, local files, and other filesystems e.g. GCP Secret manager.
type GCPSecretManager ¶
type GCPSecretManager struct {
Client *secretmanager.Client
}
GCPSecretManager implements the interface but for GCP secrets URIs should look like gcpsecretmanager:///projects/${project}/secrets/${secret}/versions/${version}
func (*GCPSecretManager) Exists ¶
func (h *GCPSecretManager) Exists(uri string) (bool, error)
Exists checks whether the file exists.
type LocalFileHelper ¶
type LocalFileHelper struct{}
func (*LocalFileHelper) Exists ¶
func (h *LocalFileHelper) Exists(uri string) (bool, error)
Exists checks whether the file exists.
Click to show internal directories.
Click to hide internal directories.