Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CrossRegionCopyOpts ¶
type CrossRegionCopyOpts struct { // the name of the copy image Name string `json:"name" required:"true"` // description of the copy image Description string `json:"description,omitempty"` // the target region name. TargetRegion string `json:"region" required:"true"` // the name of the project in the destination region. TargetProjectName string `json:"project_name" required:"true"` // the agency name. AgencyName string `json:"agency_name" required:"true"` // the ID of the vault VaultId string `json:"vault_id,omitempty"` }
CrossRegionCopyOpts represents options used to create an image.
func (CrossRegionCopyOpts) ToCrossRegionCopyMap ¶
func (opts CrossRegionCopyOpts) ToCrossRegionCopyMap() (map[string]interface{}, error)
type CrossRegionCopyOptsBuilder ¶
type CrossRegionCopyOptsBuilder interface { // ToCrossRegionCopyMap Returns value that can be passed to json.Marshal ToCrossRegionCopyMap() (map[string]interface{}, error) }
CrossRegionCopyOptsBuilder allows extensions to add parameters to the Create request.
type JobResponse ¶
type JobResponse struct {
JobID string `json:"job_id"`
}
type JobResult ¶
func CrossRegionCopy ¶
func CrossRegionCopy(client *golangsdk.ServiceClient, imageId string, opts CrossRegionCopyOptsBuilder) (r JobResult)
CrossRegionCopy implements create image request.
func WithinRegionCopy ¶
func WithinRegionCopy(client *golangsdk.ServiceClient, imageId string, opts WithinRegionCopyOptsBuilder) (r JobResult)
WithinRegionCopy implements create image request.
func (JobResult) ExtractJobResponse ¶
func (r JobResult) ExtractJobResponse() (*JobResponse, error)
type WithinRegionCopyOpts ¶
type WithinRegionCopyOpts struct { // the name of the copy image Name string `json:"name" required:"true"` // description of the copy image Description string `json:"description,omitempty"` // the master key used for encrypting an image. CmkId string `json:"cmk_id,omitempty"` // Enterprise project ID EnterpriseProjectID string `json:"enterprise_project_id,omitempty"` }
WithinRegionCopyOpts represents options used to create an image.
func (WithinRegionCopyOpts) ToWithinRegionCopyMap ¶
func (opts WithinRegionCopyOpts) ToWithinRegionCopyMap() (map[string]interface{}, error)
type WithinRegionCopyOptsBuilder ¶
type WithinRegionCopyOptsBuilder interface { // ToWithinRegionCopyMap Returns value that can be passed to json.Marshal ToWithinRegionCopyMap() (map[string]interface{}, error) }
WithinRegionCopyOptsBuilder allows extensions to add parameters to the Create request.
Click to show internal directories.
Click to hide internal directories.