image

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(sess *ibmpisession.IBMPISession, powerinstanceid string) *Client

func (*Client) CreateCosImage added in v0.1.4

func (c *Client) CreateCosImage(body models.CreateCosImageImportJob) (*models.JobReference, error)

func (*Client) Delete

func (c *Client) Delete(id string) error

func (*Client) Get

func (c *Client) Get(id string) (*models.Image, error)

func (*Client) GetAll

func (c *Client) GetAll() (*models.Images, error)

func (*Client) GetAllPurgeable

func (c *Client) GetAllPurgeable(before, since time.Duration, expr string) ([]*models.ImageReference, error)

func (*Client) GetImageByName added in v0.1.4

func (c *Client) GetImageByName(imageName string) (*models.ImageReference, error)

func (*Client) ImportImage

func (c *Client) ImportImage(imageName, s3Filename, region, accessKey, secretKey, bucketName, storageType, bucketAccess string) (*models.JobReference, error)

ImportImage imports image from S3 Instance

Jump to

Keyboard shortcuts

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