Help us shape the future of Go! Take the 2026 Go Developer Survey

rmd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindWorkloadByName

func FindWorkloadByName(workloads []*rmdtypes.RDTWorkLoad, workloadName string) *rmdtypes.RDTWorkLoad

FindWorkloadByName discovers a particular workload running on RMD by name/UUID

func UpdateNodeStatusWorkload

func UpdateNodeStatusWorkload(workload *rmdtypes.RDTWorkLoad) intelv1alpha1.WorkloadMap

UpdateNodeStatusWorkload populates WorkloadMap with workload data for RmdNodeState

Types

type OperatorRmdClient

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

OperatorRmdClient is used by the operator to become a client to RMD

func NewClient

func NewClient() OperatorRmdClient

NewClient creates a new client to RMD for each controller

func NewDefaultOperatorRmdClient

func NewDefaultOperatorRmdClient() OperatorRmdClient

NewDefaultOperatorRmdClient returns a default client for testing and debugging

func NewOperatorRmdClient

func NewOperatorRmdClient() (OperatorRmdClient, error)

NewOperatorRmdClient returns a TLS client to RMD

func (*OperatorRmdClient) DeleteWorkload

func (rc *OperatorRmdClient) DeleteWorkload(address string, workloadID string) error

DeleteWorkload deletes workload from RMD by workload ID

func (*OperatorRmdClient) GetAddressPrefix

func (rc *OperatorRmdClient) GetAddressPrefix() string

GetAddressPrefix returns correct address prefix based on rmdClient

func (*OperatorRmdClient) GetAvailableCacheWays

func (rc *OperatorRmdClient) GetAvailableCacheWays(address string) (int64, error)

GetAvailableCacheWays returns available l3 cache ways for Node Status update

func (*OperatorRmdClient) GetWorkloads

func (rc *OperatorRmdClient) GetWorkloads(address string) ([]*rmdtypes.RDTWorkLoad, error)

GetWorkloads returns all active workloads on RMD instance

func (*OperatorRmdClient) PatchWorkload

func (rc *OperatorRmdClient) PatchWorkload(workloadCR *intelv1alpha1.RmdWorkload, address string, workloadID string) (string, error)

PatchWorkload patches workload running on RMD with workload data from RmdWorkload

func (*OperatorRmdClient) PostWorkload

func (rc *OperatorRmdClient) PostWorkload(workloadCR *intelv1alpha1.RmdWorkload, address string) (string, error)

PostWorkload posts workload data from RmdWorkload to RMD

Jump to

Keyboard shortcuts

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