dependencies

package
v0.3.3-RC5 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: AGPL-3.0, AGPL-3.0-or-later Imports: 20 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdapterFs

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

AdapterFs holds an afero Fs interface for adaptation to billy.Filesystem.

func (*AdapterFs) Capabilities

func (fs *AdapterFs) Capabilities() billy.Capability

Capabilities implements the Capable interface.

func (*AdapterFs) Create

func (fs *AdapterFs) Create(filename string) (billy.File, error)

Create creates a new file.

func (*AdapterFs) Join

func (fs *AdapterFs) Join(elem ...string) string

Join returns a string with joined paths.

func (*AdapterFs) Lstat

func (fs *AdapterFs) Lstat(filename string) (os.FileInfo, error)

Lstat returns information about a file.

func (*AdapterFs) MkdirAll

func (fs *AdapterFs) MkdirAll(path string, perm os.FileMode) error

MkdirAll creates directories recursively.

func (*AdapterFs) Open

func (fs *AdapterFs) Open(filename string) (billy.File, error)

Open opens a file.

func (*AdapterFs) OpenFile

func (fs *AdapterFs) OpenFile(filename string, flag int, perm os.FileMode) (billy.File, error)

OpenFile opens a file.

func (*AdapterFs) ReadDir

func (fs *AdapterFs) ReadDir(path string) ([]os.FileInfo, error)

ReadDir reads a directory.

func (fs *AdapterFs) Readlink(link string) (string, error)

Readlink is not currently implemented.

func (*AdapterFs) Remove

func (fs *AdapterFs) Remove(filename string) error

Remove deletes a file.

func (*AdapterFs) RemoveAll

func (fs *AdapterFs) RemoveAll(path string) error

RemoveAll removes directories recursively.

func (*AdapterFs) Rename

func (fs *AdapterFs) Rename(from, to string) error

Rename renames the given file.

func (*AdapterFs) Stat

func (fs *AdapterFs) Stat(filename string) (os.FileInfo, error)

Stat returns information about a file.

func (fs *AdapterFs) Symlink(target, link string) error

Symlink creates a symbolic link.

func (*AdapterFs) TempFile

func (fs *AdapterFs) TempFile(dir, prefix string) (billy.File, error)

TempFile creates a temporary file.

type Config

type Config struct {
	Images *ImagesConfig
	PB     *PBConfig
	TV     *TVConfig
}

Config has the configurations options for all the updaters.

type ImagesConfig

type ImagesConfig struct {
	Names          []string
	TargetFilePath string
}

ImagesConfig is the configuration for the images updater.

type Manager

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

Manager is the type with knowledge about how to handle dependencies.

func NewManager

func NewManager(cfg *Config) *Manager

NewManager is the Manager constructor.

func (*Manager) Run

func (m *Manager) Run() error

Run is the main entry point, it executes all the configured dependency updates.

type PBConfig

type PBConfig struct {
	SourceRepo    string
	TargetDirPath string
}

PBConfig is the configuration for the protobuffers updater.

type TVConfig

type TVConfig struct {
	TargetDirPath string
	SourceRepo    string
}

TVConfig is the configuration for the test vector updater.

Jump to

Keyboard shortcuts

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