Documentation ¶
Overview ¶
Package filesystem provides a plugin implementing the secret plugin protocol for creating/resolving secrets from the local filesystem. It's only intended to use for local development or testing. Do not use it in production.
Index ¶
- Constants
- func NewPlugin(c *config.Config, rawCfg interface{}) plugin.Plugin
- type Plugin
- type Store
- func (s *Store) Close() error
- func (s *Store) Connect(ctx context.Context) error
- func (s *Store) Create(ctx context.Context, keyName string, keyValue string, value string) error
- func (s *Store) Resolve(ctx context.Context, keyName string, keyValue string) (string, error)
- func (s *Store) SetSecretDir() (string, error)
Constants ¶
View Source
const ( SECRET_FOLDER = "secrets" FileModeSensitiveDirectory os.FileMode = 0700 FileModeSensitiveWritable os.FileMode = 0600 )
View Source
const PluginKey = plugins.PluginInterface + ".porter.filesystem"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements an file system secrets store for testing and local development.
func (*Store) Connect ¶
Connect initializes the plugin for use. The plugin itself is responsible for ensuring it was called. Close is called automatically when the plugin is used by Porter.
func (*Store) SetSecretDir ¶
SetSecretDir configures the directory path for storing secrets.
Click to show internal directories.
Click to hide internal directories.