storage

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download() error

Types

type Config

type Config struct {
	Location string `yaml:"location"`
	URL      string `yaml:"url,omitempty"`
	Username string `yaml:"username,omitempty"`
	Password string `yaml:"password,omitempty"`
	Key      string `yaml:"private_key,omitempty"`
}

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func New

func New(c Config, path string) (*Storage, error)

func (*Storage) EnsureDir

func (s *Storage) EnsureDir() error

第一次

func (*Storage) Sync

func (s *Storage) Sync() error

推送本地的授权信息

func (*Storage) UpToDate

func (s *Storage) UpToDate() error

Jump to

Keyboard shortcuts

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