Versions in this module Expand all Collapse all v1 v1.1.1 Oct 14, 2017 v1.1.0 Sep 12, 2017 Changes in this version + func BaseTestConfig() (*ini.File, *os.File, error) + func LoadConfigsFromFile(path string) (map[string]*Config, error) + func LoadPrivateKey(config *Config) (*rsa.PrivateKey, error) + func ParsePrivateKey(content, password []byte) (*rsa.PrivateKey, error) + func WriteTestConfig(cfg *ini.File) (*os.File, error) + type APIError struct + Code string + Message string + func (e APIError) Error() string + type Client struct + Compute *ComputeClient + Config *Config + UserAgent string + func NewClient(config *Config) (*Client, error) + type ComputeClient struct + BaseURL string + Images *ImageService + Instances *InstanceService + VNICAttachments *VNICAttachmentService + VNICs *VNICService + func NewComputeClient(s *baseClient) *ComputeClient + type Config struct + Fingerprint string + Key *rsa.PrivateKey + KeyFile string + PassPhrase string + Region string + Tenancy string + User string + type CreateImageParams struct + CompartmentID string + DisplayName string + InstanceID string + type DeleteImageParams struct + ID string + type GetImageParams struct + ID string + type GetInstanceParams struct + ID string + type GetVNICParams struct + ID string + type Image struct + BaseImageID string + CompartmentID string + CreateImageAllowed bool + DisplayName string + ID string + LifecycleState string + OperatingSystem string + OperatingSystemVersion string + TimeCreated time.Time + type ImageService struct + func NewImageService(s *baseClient) *ImageService + func (s *ImageService) Create(params *CreateImageParams) (Image, error) + func (s *ImageService) Delete(params *DeleteImageParams) error + func (s *ImageService) Get(params *GetImageParams) (Image, error) + func (s *ImageService) GetResourceState(id string) (string, error) + type Instance struct + AvailabilityDomain string + CompartmentID string + DisplayName string + ID string + ImageID string + LifecycleState string + Metadata map[string]string + Region string + Shape string + TimeCreated time.Time + type InstanceService struct + func NewInstanceService(s *baseClient) *InstanceService + func (s *InstanceService) Get(params *GetInstanceParams) (Instance, error) + func (s *InstanceService) GetResourceState(id string) (string, error) + func (s *InstanceService) Launch(params *LaunchInstanceParams) (Instance, error) + func (s *InstanceService) Terminate(params *TerminateInstanceParams) error + type LaunchInstanceParams struct + AvailabilityDomain string + CompartmentID string + DisplayName string + ImageID string + Metadata map[string]string + OPCiPXEScript string + Shape string + SubnetID string + type ListVnicAttachmentsParams struct + AvailabilityDomain string + CompartmentID string + InstanceID string + VNICID string + type TerminateInstanceParams struct + ID string + type Transport struct + func NewTransport(transport http.RoundTripper, config *Config) *Transport + func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) + type VNIC struct + AvailabilityDomain string + CompartmentID string + DisplayName string + ID string + LifecycleState string + PrivateIP string + PublicIP string + SubnetID string + TimeCreated time.Time + type VNICAttachment struct + AvailabilityDomain string + CompartmentID string + DisplayName string + ID string + InstanceID string + LifecycleState string + SubnetID string + TimeCreated time.Time + VNICID string + type VNICAttachmentService struct + func NewVNICAttachmentService(s *baseClient) *VNICAttachmentService + func (s *VNICAttachmentService) List(params *ListVnicAttachmentsParams) ([]VNICAttachment, error) + type VNICService struct + func NewVNICService(s *baseClient) *VNICService + func (s *VNICService) Get(params *GetVNICParams) (VNIC, error) + type WaitableService interface + GetResourceState func(id string) (string, error) + type Waiter struct + MaxRetries int + WaitDurationMS int + func NewWaiter() *Waiter + func (w *Waiter) WaitForResourceToReachState(svc WaitableService, id string, waitStates []string, terminalState string) error