Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateCosImage(body models.CreateCosImageImportJob) (*models.JobReference, error)
- func (c *Client) Delete(id string) error
- func (c *Client) Get(id string) (*models.Image, error)
- func (c *Client) GetAll() (*models.Images, error)
- func (c *Client) GetAllPurgeable(before, since time.Duration, expr string) ([]*models.ImageReference, error)
- func (c *Client) GetImageByName(imageName string) (*models.ImageReference, error)
- func (c *Client) ImportImage(...) (*models.JobReference, error)
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) GetAllPurgeable ¶
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
Click to show internal directories.
Click to hide internal directories.