Documentation ¶
Index ¶
- func CalculateFileInfo(path string) (int, int64, error)
- func CopyDir(src, dst string) error
- func CopyFile(src, dst string) error
- func CreateLocalBranchIfNeeded(memoryStorage storage.Storer, abstractFilesystemAtRepoPath billy.Filesystem, ...) error
- func DockerContainerCreate()
- func DockerImageList()
- func DockerImagePull(imageName string) error
- func ExecuteCommand(cmd *exec.Cmd)
- func GetContainerIP(containerID string) (string, error)
- func GetContainerIdByName(name string) (string, error)
- func GetContainerIpByName(name string) string
- func GetOperatingSystem() string
- func GetPullRequest(memoryStorage storage.Storer, abstractFilesystemAtRepoPath billy.Filesystem, ...) error
- func NewBillyFromAfero(fs afero.Fs, basePath string) billy.Filesystem
- func OpenBrowser(url string) error
- func PrintOutput(reader io.Reader)
- type AdapterFs
- func (fs *AdapterFs) Capabilities() billy.Capability
- func (fs *AdapterFs) Create(filename string) (billy.File, error)
- func (fs *AdapterFs) Join(elem ...string) string
- func (fs *AdapterFs) Lstat(filename string) (os.FileInfo, error)
- func (fs *AdapterFs) MkdirAll(path string, perm os.FileMode) error
- func (fs *AdapterFs) Open(filename string) (billy.File, error)
- func (fs *AdapterFs) OpenFile(filename string, flag int, perm os.FileMode) (billy.File, error)
- func (fs *AdapterFs) ReadDir(path string) ([]os.FileInfo, error)
- func (fs *AdapterFs) Readlink(link string) (string, error)
- func (fs *AdapterFs) Remove(filename string) error
- func (fs *AdapterFs) RemoveAll(path string) error
- func (fs *AdapterFs) Rename(from, to string) error
- func (fs *AdapterFs) Stat(filename string) (os.FileInfo, error)
- func (fs *AdapterFs) Symlink(target, link string) error
- func (fs *AdapterFs) TempFile(dir, prefix string) (billy.File, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateFileInfo ¶
CalculateFileInfo calculates the total size and number of files in the directory
func DockerContainerCreate ¶
func DockerContainerCreate()
DockerContainerCreate starts a docker dockerContainer
func DockerImagePull ¶
DockerImagePull Pulls a Docker image for a GovCMS service and prints the output in a nicer format.
func ExecuteCommand ¶
ExecuteCommand starts a command, captures its output, and waits for it to finish
func GetContainerIP ¶
GetContainerIP returns the getContainerIP address of the dockerContainer.
func GetContainerIdByName ¶
func GetContainerIpByName ¶
func GetOperatingSystem ¶
func GetOperatingSystem() string
Returns the name of the current operating system
func GetPullRequest ¶
func NewBillyFromAfero ¶
NewBillyFromAfero converts an Afero filesystem to a Billy filesystem
func OpenBrowser ¶
Opens the default web browser with the specified URL
func PrintOutput ¶
PrintOutput reads from a reader and prints the output
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.