Documentation
¶
Index ¶
Constants ¶
View Source
const ( NoVPN = 0 OnlyVPN = 1 VPNBrowser = 2 )
Variables ¶
View Source
var ( DefaultClient *docker.Client DefaultLinkBridge *defaultBridge TooLowMemErr = errors.New("memory needs to be atleast 50mb") InvalidHostBindingErr = errors.New("hostbing does not have correct format - (ip:)port") InvalidMountErr = errors.New("incorrect mount format - src:dest") NoRegistriesToPullFromErr = errors.New("no registries to pull from") NoImageErr = errors.New("unable to find image") EmptyDigestErr = errors.New("empty digest") DigestFormatErr = errors.New("unexpected digest format") NoRemoteDigestErr = errors.New("unable to get digest from remote image") NoAvailableIPsErr = errors.New("no available IPs") UnexpectedIPErr = errors.New("unexpected IP range") ContNotCreatedErr = errors.New("container is not created") Registries = map[string]docker.AuthConfiguration{ "": {}, } )
Functions ¶
This section is empty.
Types ¶
type Container ¶
func NewContainer ¶
func NewContainer(conf ContainerConfig) Container
type ContainerConfig ¶
type Identifier ¶
type Identifier interface {
ID() string
}
type Image ¶
func (Image) NameWithReg ¶
type Network ¶
type Network interface { FormatIP(num int) string Interface() string SetIsVPN(int32) Connect(c Container, ip ...int) (int, error) io.Closer }
func NewNetwork ¶
type NoCredentialsErr ¶
type NoCredentialsErr struct {
Registry string
}
func (NoCredentialsErr) Error ¶
func (err NoCredentialsErr) Error() string
type NoLocalDigestErr ¶
type NoLocalDigestErr struct {
// contains filtered or unexported fields
}
func (NoLocalDigestErr) Error ¶
func (err NoLocalDigestErr) Error() string
type NoLocalImageAvailableErr ¶
type NoLocalImageAvailableErr struct {
// contains filtered or unexported fields
}
func (NoLocalImageAvailableErr) Error ¶
func (err NoLocalImageAvailableErr) Error() string
type NoRemoteImageAvailableErr ¶
type NoRemoteImageAvailableErr struct {
// contains filtered or unexported fields
}
func (NoRemoteImageAvailableErr) Error ¶
func (err NoRemoteImageAvailableErr) Error() string
Click to show internal directories.
Click to hide internal directories.