Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Root ¶
type Root struct {
// contains filtered or unexported fields
}
Root implements both Node and Handle
type Secret ¶
Secret represents secrets which directly contain data (cannot be treated as directories in the vault backend). They are still treated as directories in FUSE because we want to expose data/ as files.
func NewSecret ¶
NewSecret creates a node which represents a directory and provides access to the subkeys of a secret.
type SecretDir ¶
SecretDir implements Node and Handle This is the type we return if the Secret is a secret that we only were able to get via a list - i.e. is directory-like.
func NewSecretDir ¶
NewSecretDir creates a SecretDir node linked to the given secret and vault API.
type StaticDir ¶
type StaticDir struct {
// contains filtered or unexported fields
}
StaticDir implements a fuse directory structure with static content.
func NewStaticDir ¶
NewStaticDir generates a new static directory tree of arbitrary depth from the supplied map.
type StaticValue ¶
type StaticValue struct {
// contains filtered or unexported fields
}
StaticValue implements a node which always serves the same bytes.
func NewValue ¶
func NewValue(value string) (*StaticValue, error)
NewValue returns a new Value node (a file with static content)
func (*StaticValue) Read ¶
func (f *StaticValue) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error
Read simply returns the statically stored content of the node.