controller

package
v0.0.0-...-145884f Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinMetricsQueryString

func JoinMetricsQueryString(metric string, interval string, instanceId string, groupingFunction string) string

Types

type OCIController

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

func NewOCIControler

func NewOCIControler(filePath string, profile string) *OCIController

func NewOCIControllerDefault

func NewOCIControllerDefault() *OCIController

func (*OCIController) ChangeRegion

func (controller *OCIController) ChangeRegion(region string)

func (*OCIController) CloseContext

func (controller *OCIController) CloseContext()

func (*OCIController) CpuUtilization10mLast24hMax

func (controller *OCIController) CpuUtilization10mLast24hMax(compartmentId string,
	instanceId string) (map[float64]float64, error)

monitoring functions

func (*OCIController) ExecuteInstanceAction

func (controller *OCIController) ExecuteInstanceAction(instanceOCID *string, action core.InstanceActionActionEnum) (instance *core.Instance, err error)

func (*OCIController) GetConfigurationProvider

func (controller *OCIController) GetConfigurationProvider() common.ConfigurationProvider

func (*OCIController) GetInstance

func (controller *OCIController) GetInstance(Ocid string) (*core.Instance, error)

func (*OCIController) IsChangedConfig

func (controller *OCIController) IsChangedConfig(filePath string, profile string) bool

func (*OCIController) ListAllCompartments

func (controller *OCIController) ListAllCompartments() (compartments []identity.Compartment, err error)

func (*OCIController) ListCompartments

func (controller *OCIController) ListCompartments(compartmentId string,
	limit int,
	accessLevel identity.ListCompartmentsAccessLevelEnum,
	sortBy identity.ListCompartmentsSortByEnum,
	sortOrder identity.ListCompartmentsSortOrderEnum,
	lifecycleState identity.CompartmentLifecycleStateEnum,
	page string) (compartments []identity.Compartment, nextPage string, err error)

func (*OCIController) ListInstances

func (controller *OCIController) ListInstances(compartmentId string,
	limit int,
	sortBy core.ListInstancesSortByEnum,
	sortOrder core.ListInstancesSortOrderEnum,
	lifecycleState core.InstanceLifecycleStateEnum,
	page string) (instances []core.Instance, nextPage string, err error)

func (*OCIController) ListRegions

func (controller *OCIController) ListRegions() (regions []identity.Region, err error)

func (*OCIController) MemoryUtilization10mLast24hMax

func (controller *OCIController) MemoryUtilization10mLast24hMax(compartmentId string,
	instanceId string) (map[float64]float64, error)

func (*OCIController) ReloadConfig

func (controller *OCIController) ReloadConfig(filePath string, profile string) error

Jump to

Keyboard shortcuts

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