internal

package
v0.0.0-...-9e59589 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CONFIG_FILE_NAME = ".synk.yaml"
View Source
const FILE_SEPARATOR = "/"

Variables

This section is empty.

Functions

func GetConfiguration

func GetConfiguration(path string) s3Storage.R2ConfigData

func GetDiffFilePaths

func GetDiffFilePaths(localFiles *[]string, bucketFiles *[]string) []string

func GetFilePathsInBucket

func GetFilePathsInBucket(s3Client s3Storage.S3Storage) []string

func GetFilePathsInLocalPath

func GetFilePathsInLocalPath(path string) []string

func PrettifyFilePaths

func PrettifyFilePaths(filePaths *[]string) string

Types

type ByFile

type ByFile []File

func (ByFile) Len

func (files ByFile) Len() int

func (ByFile) Less

func (files ByFile) Less(i, j int) bool

func (ByFile) Swap

func (files ByFile) Swap(i, j int)

type ByFilePath

type ByFilePath []string

func (ByFilePath) Len

func (strings ByFilePath) Len() int

func (ByFilePath) Less

func (strings ByFilePath) Less(i, j int) bool

func (ByFilePath) Swap

func (strings ByFilePath) Swap(i, j int)

type File

type File struct {
	Children map[string]*File
	IsFolder bool
	Name     string
	Path     string
}

Jump to

Keyboard shortcuts

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