proxyclient

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *rpc.Client

Client is the connection to rpc server

Functions

func Commit

func Commit(r *resctrl.ResAssociation, name string) error

Commit resctrl.ResAssociation with given name

func ConnectRPCServer

func ConnectRPCServer(in types.PipePair) error

ConnectRPCServer by a pipe pair Be care about this method usage, it can only be called once while we start RMD API server, sync.once could be one choice, developer should control it.

func DestroyResAssociation

func DestroyResAssociation(name string) error

DestroyResAssociation by resource group name

func EnableCat

func EnableCat() error

EnableCat enable cat feature on host

func Enforce

func Enforce(module string, params map[string]interface{}) (string, error)

Enforce simplifies enforcing data in a more generic way

func GetRdtCosInfo

func GetRdtCosInfo() map[string]*resctrl.RdtCosInfo

GetRdtCosInfo returns RDT information

func GetResAssociation

func GetResAssociation(availableCLOS []string) map[string]*resctrl.ResAssociation

GetResAssociation returns all resource group association

func IsIntelRdtMounted

func IsIntelRdtMounted() bool

IsIntelRdtMounted will check if resctrl mounted or not

func PAMAuthenticate

func PAMAuthenticate(user string, pass string) error

PAMAuthenticate leverage PAM to do authentication

func Release

func Release(module string, params map[string]interface{}) error

Release simplifies releasing data in a more generic way

func RemoveCores

func RemoveCores(cores []string) error

RemoveCores moves cores to default resource group

func RemoveTasks

func RemoveTasks(tasks []string) error

RemoveTasks moves tasks to default resource group

func ResetCOSParamsToDefaults

func ResetCOSParamsToDefaults(cosName string) error

ResetCOSParamsToDefaults resets L3 cache and MBA to default values for common COS#

Types

This section is empty.

Jump to

Keyboard shortcuts

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