Documentation ¶
Index ¶
- Variables
- func GetHomePath() string
- type Global
- func (c *Global) CheckArgs(cmd *cobra.Command, args []string, minArgs int, maxArgs int) (bool, error)
- func (c *Global) ParseServers(remotes ...string) ([]RemoteResource, error)
- func (c *Global) PostRun(cmd *cobra.Command, args []string) error
- func (c *Global) PreRun(cmd *cobra.Command, args []string) error
- type Project
- func (p *Project) CommonMountPath() string
- func (p *Project) ContainerCommonMountPath() string
- func (p *Project) ContainerMountPath() string
- func (p *Project) CreateCommonMountPath() error
- func (p *Project) CreateInstanceMountPath(instanceName string) error
- func (p *Project) CreateMountPath() error
- func (p *Project) InstanceMountPath(instanceName string) string
- func (p *Project) MountPath() string
- type RemoteResource
Constants ¶
This section is empty.
Variables ¶
View Source
var Projects = make(map[string]*Project)
Functions ¶
func GetHomePath ¶
func GetHomePath() string
Types ¶
type Global ¶
type Global struct { Conf *config.Config ConfPath string Cmd *cobra.Command Ret int FlagForceLocal bool FlagHelp bool FlagHelpAll bool FlagLogDebug bool FlagLogVerbose bool FlagProject string FlagQuiet bool FlagVersion bool }
func (*Global) ParseServers ¶
func (c *Global) ParseServers(remotes ...string) ([]RemoteResource, error)
type Project ¶
func GetProject ¶
func (*Project) CommonMountPath ¶
CommonMountPath is a project specific directory that is mounted into every container, to provide shared storage for provisioning scripts or configuration files.
func (*Project) ContainerCommonMountPath ¶
ContainerCommonMountPath determines the mount path for the CommonMountPath inside the container.
func (*Project) ContainerMountPath ¶
func (*Project) CreateCommonMountPath ¶
CreateCommonMountPath creates the CommonMountPath on the LXD host
func (*Project) CreateInstanceMountPath ¶
func (*Project) CreateMountPath ¶
func (*Project) InstanceMountPath ¶
type RemoteResource ¶
type RemoteResource struct { Remote string Server lxd.InstanceServer Name string }
Click to show internal directories.
Click to hide internal directories.