sshdocker

package module
v0.0.0-...-c22bfec Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2018 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

sshdocker

sshd docker shell CLI tool

In development...

Documentation

Index

Constants

View Source
const (
	LABEL_KEY   = "org.label-schema.url"
	LABEL_VALUE = "https://github.com/xwjdsh/sshdocker"
)

Variables

View Source
var (
	ImageName = "sshdocker:latest"
)

Functions

func ArgsCountCheck

func ArgsCountCheck(argsCount, min, max int) error

func Create

func Create(o *Options) error

Create docker sshd shell

func Destroy

func Destroy(removeVolume bool, names []string) ([]string, []error)

Types

type Options

type Options struct {
	Name    string
	Port    string
	Volume  string
	Verbose bool
}

type Service

type Service struct {
	Name    string
	Connect string
	Volume  string
	State   string
}

func List

func List() ([]*Service, error)

List all docker sshd services

Directories

Path Synopsis
cmd
sshdocker command

Jump to

Keyboard shortcuts

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