object

package
v0.0.0-...-6801fd0 Latest Latest
Warning

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

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

Documentation

Overview

Copyright (c) 2021-present Mattermost, Inc. All Rights Reserved. See License.txt for license information.

Index

Constants

View Source
const URLPrefixFilesystem = "file://"

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	Backends []backends.Backend
	// contains filtered or unexported fields
}

Manager

func NewManager

func NewManager() *Manager

NewObjectManager returns a new object manager with default options

func (*Manager) Copy

func (om *Manager) Copy(srcURL, destURL string) (err error)

Copy copies an object from a srcURL to a destination URL

func (*Manager) GetObjectHash

func (om *Manager) GetObjectHash(objectURL string) (map[string]string, error)

GetObjectHash returns the available hashes for an object

func (*Manager) PathExists

func (om *Manager) PathExists(path string) (bool, error)

PathExists returns a bool that indicates if a path exists or not

type ManagerImplementation

type ManagerImplementation interface {
	GetURLBackend([]backends.Backend, string) (backends.Backend, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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