client

package
v0.0.0-...-2215086 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func (*Compute) GetImages

func (c *Compute) GetImages() (images []core.Image, err error)

GetImages gets all available Images within the Tenancy

func (*Compute) GetShapes

func (c *Compute) GetShapes() (shapes []core.Shape, err error)

GetShapes gets all available Shapes within the Tenancy

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

func (i *Identity) GetSubscribedRegionNames() (map[string]string, error)

GetSubscribedRegionNames gives back an array of subscribed regions' names

func (*Identity) GetTenancy

func (i *Identity) GetTenancy(id string) (identity.Tenancy, error)

GetTenancy gets an identity.Tenancy by id

func (*Identity) IsRegionAvailable

func (i *Identity) IsRegionAvailable(name string) error

IsRegionAvailable check whether the given region is available

type NodePoolOptions

type NodePoolOptions struct {
	Images             Strings
	KubernetesVersions Strings
	Shapes             Strings
}

NodePoolOptions holds node pool options as Strings

type OCI

type OCI struct {
	Tenancy identity.Tenancy
	// contains filtered or unexported fields
}

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

func (oci *OCI) ChangeRegion(regionName string) (err error)

ChangeRegion changes region in the config to the specified one

func (*OCI) GetLogger

func (oci *OCI) GetLogger() *logrus.Logger

GetLogger gets the previously set logrus logger

func (*OCI) GetSupportedImages

func (oci *OCI) GetSupportedImages(service string) (images map[string][]string, err error)

GetSupportedImages gives back supported node images in all subscribed regions for a service currently only 'compute' and 'oke' services are supported

func (*OCI) GetSupportedImagesInARegion

func (oci *OCI) GetSupportedImagesInARegion(service, region string) (images []string, err error)

GetSupportedImagesInARegion gives back supported node images in the given region and service currently only 'compute' and 'oke' services are supported

func (*OCI) GetSupportedShapes

func (oci *OCI) GetSupportedShapes(service string) (shapes map[string][]string, err error)

GetSupportedShapes gives back supported node shapes in all subscribed regions for a service currently only 'compute' and 'oke' services are supported

func (*OCI) GetSupportedShapesInARegion

func (oci *OCI) GetSupportedShapesInARegion(region, service string) (shapes []string, err error)

GetSupportedShapesInARegion gives back supported node shapes in the given region and service currently only 'compute' and 'oke' services are supported

func (*OCI) GetTenancy

func (oci *OCI) GetTenancy() (t identity.Tenancy, err error)

GetTenancy gets and caches tenancy info

func (*OCI) NewComputeClient

func (oci *OCI) NewComputeClient() (client *Compute, err error)

NewComputeClient creates a new Compute

func (*OCI) NewContainerEngineClient

func (oci *OCI) NewContainerEngineClient() (client *ContainerEngine, err error)

NewContainerEngineClient creates a new ContainerEngine

func (*OCI) NewIdentityClient

func (oci *OCI) NewIdentityClient() (client *Identity, err error)

NewIdentityClient creates a new Identity

func (*OCI) SetLogger

func (oci *OCI) SetLogger(logger *logrus.Logger)

SetLogger sets a logrus logger

type Strings

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

Strings holds strings in an array

func (Strings) Get

func (s Strings) Get() []string

Get gets the raw array

func (Strings) Has

func (s Strings) Has(value string) bool

Has checks if the strings array has a value

Jump to

Keyboard shortcuts

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