storagedriver

package module
v0.0.0-...-1889821 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

README

Storage Driver Go

CI PkgGoDev GoReportCard codecov

Golang storage drivers used in runtimeutil

LICENSE

Copyright 2020 The arhat.dev Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(name string, config interface{}) (runtimeutil.StorageDriver, error)

func GetConfig

func GetConfig(name string) (interface{}, error)

func Register

func Register(name string, f FactoryFunc, cf ConfigFactoryFunc)

Types

type ConfigFactoryFunc

type ConfigFactoryFunc func() interface{}

type FactoryFunc

type FactoryFunc func(config interface{}) (runtimeutil.StorageDriver, error)

type NopConfig

type NopConfig struct{}

type NopDriver

type NopDriver struct{}

func (*NopDriver) GetMountCmd

func (d *NopDriver) GetMountCmd(remotePath, mountPoint string) []string

func (*NopDriver) GetUnmountCmd

func (d *NopDriver) GetUnmountCmd(mountPoint string) []string

Directories

Path Synopsis
Package general provides general purpose remote storage driver
Package general provides general purpose remote storage driver
Package sshfs provides sshfs based remote storage driver
Package sshfs provides sshfs based remote storage driver

Jump to

Keyboard shortcuts

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