filesystem

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package filesystem implements the crudstore plugin interface, storing data on the local filesystem.

Index

Constants

View Source
const PluginKey = crudstore.PluginInterface + ".porter.filesystem"

Variables

This section is empty.

Functions

func NewFileExtensions added in v0.28.0

func NewFileExtensions() map[string]string

func NewPlugin

func NewPlugin(c config.Config) plugin.Plugin

func NewStore

func NewStore(c config.Config, l hclog.Logger) crud.Store

Types

type Plugin

type Plugin struct {
	crud.Store
}

Plugin is the plugin wrapper for the local filesystem storage.

type Store

type Store struct {
	crud.Store
	config.Config
	// contains filtered or unexported fields
}

Store is a local filesystem store that stores data in the porter home directory.

func (*Store) CheckFilePermissions added in v0.38.7

func (s *Store) CheckFilePermissions() error

CheckFilePermissions for files in PORTER_HOME and return an error if they are less restrictive than recommended.

func (*Store) Connect

func (s *Store) Connect() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL