Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Uploader ImageCreator // contains filtered or unexported fields }
func NewClient ¶
func NewClient(clientParams *ClientParams) (Client, error)
NewClient creates a new oci client from the passed in params. Pass nil clientParams if you want the client to automatically detect the configuration from the official disk location or and env file From the docs its: $HOME/.oci/config, $HOME/.obmcs/config and variable names starting with TF_VAR. Last is the environment variable OCI_CONFIG_FILE
func (Client) CreateImage ¶
func (c Client) CreateImage(objectName, bucketName, namespace, compartmentID, imageName string) (string, error)
Creates an image from an existing storage object, deletes the storage object
type ClientParams ¶
type ImageCreator ¶
type ImageCreator interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.