proxyfile

package
v0.0.0-...-40fbbb1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2018 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClonesStrategy

type ClonesStrategy struct{}

ClonesStrategy contains the implementation of creating clones of docker-proxy execuable

func (*ClonesStrategy) CreateProxyFile

func (s *ClonesStrategy) CreateProxyFile(commandBinaryFilePath, commandNameFilePath string) error

CreateProxyFile creates a clone of the given commandBinaryFilePath to commandNameFilePath

type Creator

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

Creator creates commands

func New

func New(creationStrategy FileCreationStrategy) *Creator

New creates a new proxy file creator

func (*Creator) CreateProxyFiles

func (pfc *Creator) CreateProxyFiles(commandBinaryFilePath string, configuration *config.Configuration, isForced bool) error

CreateProxyFiles creates docker-proxy commands

type FileCreationStrategy

type FileCreationStrategy interface {
	CreateProxyFile(string, string) error
}

FileCreationStrategy defines the interface for creation of a docker-proxy commands in filesystem

func NewClonesStrategy

func NewClonesStrategy() FileCreationStrategy

NewClonesStrategy creates a new FileCreationStrategy that produces clones of docker-proxy command

func NewHardlinkStrategy

func NewHardlinkStrategy() FileCreationStrategy

NewHardlinkStrategy creates a new FileCreationStrategy that produces hardlinks of docker-proxy command

func NewSymlinkStrategy

func NewSymlinkStrategy() FileCreationStrategy

NewSymlinkStrategy creates a new FileCreationStrategy that produces symlinks of docker-proxy command

type HardlinkStrategy

type HardlinkStrategy struct{}

HardlinkStrategy contains the implementation of creating a hardlink to docker-proxy execuable

func (*HardlinkStrategy) CreateProxyFile

func (s *HardlinkStrategy) CreateProxyFile(commandBinaryFilePath, commandNameFilePath string) error

CreateProxyFile creates a hardlink from commandNameFilePath to commandBinaryFilePath

type SymlinkStrategy

type SymlinkStrategy struct{}

SymlinkStrategy contains the implementation of creating a symlink to docker-proxy execuable

func (*SymlinkStrategy) CreateProxyFile

func (s *SymlinkStrategy) CreateProxyFile(commandBinaryFilePath, commandNameFilePath string) error

CreateProxyFile creates a symlink from commandNameFilePath to commandBinaryFilePath

Jump to

Keyboard shortcuts

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