imagecopy

package
v0.0.0-...-63319d1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MPL-2.0, Apache-2.0 Imports: 1 Imported by: 0

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

type JobResult struct {
	golangsdk.Result
}

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.

Jump to

Keyboard shortcuts

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