Documentation ¶
Index ¶
- type Compute
- type ContainerEngine
- type Identity
- type NodePoolOptions
- type OCI
- func (oci *OCI) ChangeRegion(regionName string) (err error)
- func (oci *OCI) GetLogger() *logrus.Logger
- func (oci *OCI) GetSupportedImages(service string) (images map[string][]string, err error)
- func (oci *OCI) GetSupportedImagesInARegion(service, region string) (images []string, err error)
- func (oci *OCI) GetSupportedShapes(service string) (shapes map[string][]string, err error)
- func (oci *OCI) GetSupportedShapesInARegion(region, service string) (shapes []string, err error)
- func (oci *OCI) GetTenancy() (t identity.Tenancy, err error)
- func (oci *OCI) NewComputeClient() (client *Compute, err error)
- func (oci *OCI) NewContainerEngineClient() (client *ContainerEngine, err error)
- func (oci *OCI) NewIdentityClient() (client *Identity, err error)
- func (oci *OCI) SetLogger(logger *logrus.Logger)
- type Strings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compute ¶
type Compute struct {
// contains filtered or unexported fields
}
Compute is for managing Compute related calls of OCI
type ContainerEngine ¶
type ContainerEngine struct { CompartmentOCID string // contains filtered or unexported fields }
ContainerEngine is for managing OKE related calls of OCI
func (*ContainerEngine) GetDefaultNodePoolOptions ¶
func (ce *ContainerEngine) GetDefaultNodePoolOptions() (options NodePoolOptions, err error)
GetDefaultNodePoolOptions gets default node pool options
func (*ContainerEngine) GetNodePoolOptions ¶
func (ce *ContainerEngine) GetNodePoolOptions(clusterID string) (options NodePoolOptions, err error)
GetNodePoolOptions gets available node pool options for a specified cluster OCID
type Identity ¶
type Identity struct {
// contains filtered or unexported fields
}
Identity is for managing Identity related calls of OCI
func (*Identity) GetAvailabilityDomains ¶
func (i *Identity) GetAvailabilityDomains() ([]identity.AvailabilityDomain, error)
GetAvailabilityDomains gets all Availability Domains within the region
func (*Identity) GetSubscribedRegionNames ¶
GetSubscribedRegionNames gives back an array of subscribed regions' names
func (*Identity) GetTenancy ¶
GetTenancy gets an identity.Tenancy by id
func (*Identity) IsRegionAvailable ¶
IsRegionAvailable check whether the given region is available
type NodePoolOptions ¶
NodePoolOptions holds node pool options as Strings
type OCI ¶
OCI is for managing OCI API calls
func NewOCI ¶
func NewOCI(cfgProvider common.ConfigurationProvider) (oci *OCI, err error)
NewOCI creates a new OCI and gets and caches tenancy info
func (*OCI) ChangeRegion ¶
ChangeRegion changes region in the config to the specified one
func (*OCI) GetSupportedImages ¶
GetSupportedImages gives back supported node images in all subscribed regions for a service currently only 'compute' and 'oke' services are supported
func (*OCI) GetSupportedImagesInARegion ¶
GetSupportedImagesInARegion gives back supported node images in the given region and service currently only 'compute' and 'oke' services are supported
func (*OCI) GetSupportedShapes ¶
GetSupportedShapes gives back supported node shapes in all subscribed regions for a service currently only 'compute' and 'oke' services are supported
func (*OCI) GetSupportedShapesInARegion ¶
GetSupportedShapesInARegion gives back supported node shapes in the given region and service currently only 'compute' and 'oke' services are supported
func (*OCI) GetTenancy ¶
GetTenancy gets and caches tenancy info
func (*OCI) NewComputeClient ¶
NewComputeClient creates a new Compute
func (*OCI) NewContainerEngineClient ¶
func (oci *OCI) NewContainerEngineClient() (client *ContainerEngine, err error)
NewContainerEngineClient creates a new ContainerEngine
func (*OCI) NewIdentityClient ¶
NewIdentityClient creates a new Identity