Documentation ¶
Index ¶
- Constants
- Variables
- func AuthorizeSSHUser(c types.GenericContainer, user, publicKey string) error
- func DeauthorizeSSHUser(c types.GenericContainer, user string) error
- func Get(id string) *types.Container
- func Init(registry, saveDir string, numContainers, numSecondaryPorts, minPort uint16, ...) error
- func List() (map[string]*types.Container, []uint16)
- func Nums() (containers *types.ResourceStats, cpu *types.ResourceStats, ...)
- func SetMaintenance(c types.GenericContainer, maint bool) error
- func Teardown(id string) bool
- type Container
- type GetReq
- type ListResp
- type NumsResp
- type ReserveReq
- type ReserveResp
- type SSHCmd
- type TeardownReq
Constants ¶
View Source
const ( ContainersFile = "containers" PortsFile = "ports" NetworkSecurityFile = "netsec" )
Variables ¶
View Source
var ( NetworkSecurity *netsec.NetworkSecurity EnableNetsec bool NumContainers uint16 // for maximum efficiency, should = CPUShares NumSecondaryPorts uint16 MinPort uint16 MemoryLimit uint // actual MB )
Functions ¶
func AuthorizeSSHUser ¶
func AuthorizeSSHUser(c types.GenericContainer, user, publicKey string) error
func DeauthorizeSSHUser ¶
func DeauthorizeSSHUser(c types.GenericContainer, user string) error
func Init ¶
func Init(registry, saveDir string, numContainers, numSecondaryPorts, minPort uint16, cpu, memory uint, enableNetsec bool) error
Initialize everything needed to use containers
func Nums ¶
func Nums() (containers *types.ResourceStats, cpu *types.ResourceStats, memory *types.ResourceStats)
Return the number of total, used, and free containers
func SetMaintenance ¶
func SetMaintenance(c types.GenericContainer, maint bool) error
Types ¶
type Container ¶
type NumsResp ¶
type NumsResp struct { Containers *types.ResourceStats Memory *types.ResourceStats }
type ReserveReq ¶
type ReserveReq struct {
// contains filtered or unexported fields
}
type ReserveResp ¶
type ReserveResp struct {
// contains filtered or unexported fields
}
type TeardownReq ¶
type TeardownReq struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.