Documentation ¶
Index ¶
- func Decrypt(file, pass string) error
- func Encrypt(file, pass string) error
- func GetSwiftClient(opts SwiftAuthOpts) (*gophercloud.ServiceClient, error)
- func SwiftCreateContainer(client *gophercloud.ServiceClient, name string, create, archive bool) error
- type ErrObjectDoesNotExist
- type LXDConfig
- type LXDDownloadOpts
- type LXDDownloadResult
- type LXDImportOpts
- type LXDImportResult
- type LXDPublishOpts
- type LXDPublishResult
- type SwiftAuthOpts
- type SwiftDownloadOpts
- type SwiftDownloadResult
- type SwiftUploadOpts
- type SwiftUploadResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSwiftClient ¶
func GetSwiftClient(opts SwiftAuthOpts) (*gophercloud.ServiceClient, error)
func SwiftCreateContainer ¶
func SwiftCreateContainer(client *gophercloud.ServiceClient, name string, create, archive bool) error
Types ¶
type ErrObjectDoesNotExist ¶
type ErrObjectDoesNotExist struct {
// contains filtered or unexported fields
}
func (ErrObjectDoesNotExist) Error ¶
func (e ErrObjectDoesNotExist) Error() string
type LXDConfig ¶
type LXDConfig struct { Config *lxd_config.Config RemoteName string ConfigDirectory string }
func NewLXDConfig ¶
func (LXDConfig) GetContainerServer ¶
func (r LXDConfig) GetContainerServer() (lxd.ContainerServer, error)
func (LXDConfig) GetImageServer ¶
func (r LXDConfig) GetImageServer() (lxd.ImageServer, error)
type LXDDownloadOpts ¶
type LXDDownloadResult ¶
func LXDDownloadImage ¶
func LXDDownloadImage(lxdConfig LXDConfig, opts LXDDownloadOpts) (*LXDDownloadResult, error)
This is a loose re-implementation of lxc image export: https://github.com/lxc/lxd/blob/master/lxc/image.go This will download an image to a temporary directory.
type LXDImportOpts ¶
type LXDImportResult ¶
type LXDImportResult struct {
Fingerprint string
}
func LXDImportImage ¶
func LXDImportImage(lxdConfig LXDConfig, opts LXDImportOpts) (*LXDImportResult, error)
This is a loose re-implementation of "lxc import". https://github.com/lxc/lxd/blob/master/lxc/image.go
type LXDPublishOpts ¶
type LXDPublishResult ¶
type LXDPublishResult struct {
Fingerprint string
}
func LXDPublishImage ¶
func LXDPublishImage(lxdConfig LXDConfig, opts LXDPublishOpts) (*LXDPublishResult, error)
The following is a loose re-implementation of `lxc publish`. https://github.com/lxc/lxd/blob/master/lxc/publish.go This will create an image out of a container. If the container is ephemeral, it will temporarily be made non-ephemeral. If the container is running, it will temporarily be stopped.
type SwiftAuthOpts ¶
type SwiftDownloadOpts ¶
type SwiftDownloadResult ¶
type SwiftDownloadResult struct {
Headers *objects.DownloadHeader
}
func SwiftDownloadObject ¶
func SwiftDownloadObject(client *gophercloud.ServiceClient, opts SwiftDownloadOpts) (*SwiftDownloadResult, error)
type SwiftUploadOpts ¶
type SwiftUploadResults ¶
type SwiftUploadResults struct {
Headers *objects.CreateHeader
}
func SwiftUploadObject ¶
func SwiftUploadObject(client *gophercloud.ServiceClient, opts SwiftUploadOpts) (*SwiftUploadResults, error)
Click to show internal directories.
Click to hide internal directories.