shepherd_vmprovider

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChangeSinceLastVmAppStats bool

ChangeSinceLastCloudletStats means a VM appinst changed since last VM App stats collection

Functions

This section is empty.

Types

type ShepherdPlatform

type ShepherdPlatform struct {
	SharedClient ssh.Client
	VMPlatform   *vmlayer.VMPlatform
	// contains filtered or unexported fields
}

func (*ShepherdPlatform) GetClusterIP

func (s *ShepherdPlatform) GetClusterIP(ctx context.Context, clusterInst *edgeproto.ClusterInst) (string, error)

func (*ShepherdPlatform) GetClusterPlatformClient

func (s *ShepherdPlatform) GetClusterPlatformClient(ctx context.Context, clusterInst *edgeproto.ClusterInst, clientType string) (ssh.Client, error)

func (*ShepherdPlatform) GetMetricsCollectInterval

func (s *ShepherdPlatform) GetMetricsCollectInterval() time.Duration

func (*ShepherdPlatform) GetPlatformStats

func (*ShepherdPlatform) GetVmAppRootLbClient

func (s *ShepherdPlatform) GetVmAppRootLbClient(ctx context.Context, appInst *edgeproto.AppInst) (ssh.Client, error)

func (*ShepherdPlatform) GetVmStats

func (*ShepherdPlatform) Init

func (s *ShepherdPlatform) Init(ctx context.Context, pc *platform.PlatformConfig, platformCaches *platform.Caches) error

func (*ShepherdPlatform) IsPlatformLocal

func (s *ShepherdPlatform) IsPlatformLocal(ctx context.Context) bool

func (*ShepherdPlatform) SetUsageAccessArgs

func (s *ShepherdPlatform) SetUsageAccessArgs(ctx context.Context, addr string, client ssh.Client) error

func (*ShepherdPlatform) SetVMPool

func (s *ShepherdPlatform) SetVMPool(ctx context.Context, vmPool *edgeproto.VMPool)

func (*ShepherdPlatform) VmAppChangedCallback

func (s *ShepherdPlatform) VmAppChangedCallback(ctx context.Context, appInst *edgeproto.AppInst, newState edgeproto.TrackedState)

Jump to

Keyboard shortcuts

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