Versions in this module Expand all Collapse all v1 v1.2.5 Sep 23, 2024 Changes in this version + const FakeDiskMax + const FakeExternalIpsMax + const FakeRamMax + const FakeVcpusMax + var AccessVarProps = map[string]*edgeproto.PropertyInfo + var DefaultFlavorList = []*edgeproto.FlavorInfo + var FakeAppDNSRoot = "fake.net" + func GetPlatformVMs() []edgeproto.VmInfo + func NewPlatform() platform.Platform + func NewPlatformSingleCluster() platform.Platform + func NewPlatformVMPool() platform.Platform + type Platform struct + FlavorList []*edgeproto.FlavorInfo + func (s *Platform) ActiveChanged(ctx context.Context, platformActive bool) error + func (s *Platform) AddCrmServiceOps(ops ...process.CrmServiceOp) + func (s *Platform) ChangeCloudletDNS(ctx context.Context, cloudlet *edgeproto.Cloudlet, oldFqdn string, ...) error + func (s *Platform) ChangeClusterInstDNS(ctx context.Context, clusterInst *edgeproto.ClusterInst, oldFqdn string, ...) error + func (s *Platform) CreateAppInst(ctx context.Context, clusterInst *edgeproto.ClusterInst, app *edgeproto.App, ...) error + func (s *Platform) CreateCloudlet(ctx context.Context, cloudlet *edgeproto.Cloudlet, ...) (bool, error) + func (s *Platform) CreateClusterInst(ctx context.Context, clusterInst *edgeproto.ClusterInst, ...) error + func (s *Platform) DeleteAppInst(ctx context.Context, clusterInst *edgeproto.ClusterInst, app *edgeproto.App, ...) error + func (s *Platform) DeleteCloudlet(ctx context.Context, cloudlet *edgeproto.Cloudlet, ...) error + func (s *Platform) DeleteClusterInst(ctx context.Context, clusterInst *edgeproto.ClusterInst, ...) error + func (s *Platform) DeleteTrustPolicyException(ctx context.Context, tpeKey *edgeproto.TrustPolicyExceptionKey, ...) error + func (s *Platform) GatherCloudletInfo(ctx context.Context, info *edgeproto.CloudletInfo) error + func (s *Platform) GetAppInstRuntime(ctx context.Context, clusterInst *edgeproto.ClusterInst, app *edgeproto.App, ...) (*edgeproto.AppInstRuntime, error) + func (s *Platform) GetCloudletInfraResources(ctx context.Context) (*edgeproto.InfraResourcesSnapshot, error) + func (s *Platform) GetCloudletManifest(ctx context.Context, cloudlet *edgeproto.Cloudlet, ...) (*edgeproto.CloudletManifest, error) + func (s *Platform) GetClusterAdditionalResourceMetric(ctx context.Context, cloudlet *edgeproto.Cloudlet, resMetric *edgeproto.Metric, ...) error + func (s *Platform) GetClusterAdditionalResources(ctx context.Context, cloudlet *edgeproto.Cloudlet, ...) map[string]edgeproto.InfraResource + func (s *Platform) GetClusterInfraResources(ctx context.Context, cluster *edgeproto.ClusterInst) (*edgeproto.InfraResources, error) + func (s *Platform) GetClusterPlatformClient(ctx context.Context, clusterInst *edgeproto.ClusterInst, clientType string) (ssh.Client, error) + func (s *Platform) GetConsoleUrl(ctx context.Context, app *edgeproto.App, appInst *edgeproto.AppInst) (string, error) + func (s *Platform) GetContainerCommand(ctx context.Context, clusterInst *edgeproto.ClusterInst, app *edgeproto.App, ...) (string, error) + func (s *Platform) GetFeatures() *edgeproto.PlatformFeatures + func (s *Platform) GetInitHAConditionalCompatibilityVersion(ctx context.Context) string + func (s *Platform) GetNodePlatformClient(ctx context.Context, node *edgeproto.CloudletMgmtNode, ops ...pc.SSHClientOp) (ssh.Client, error) + func (s *Platform) GetResources() *fakecommon.Resources + func (s *Platform) GetRestrictedCloudletStatus(ctx context.Context, cloudlet *edgeproto.Cloudlet, ...) error + func (s *Platform) GetRootLBClients(ctx context.Context) (map[string]platform.RootLBClient, error) + func (s *Platform) GetRootLBFlavor(ctx context.Context) (*edgeproto.Flavor, error) + func (s *Platform) GetVersionProperties(ctx context.Context) map[string]string + func (s *Platform) HandleFedAppInstCb(ctx context.Context, msg *edgeproto.FedAppInstEvent) + func (s *Platform) HasTrustPolicyException(ctx context.Context, tpeKey *edgeproto.TrustPolicyExceptionKey, ...) bool + func (s *Platform) InitCommon(ctx context.Context, platformConfig *platform.PlatformConfig, ...) error + func (s *Platform) InitHAConditional(ctx context.Context, updateCallback edgeproto.CacheUpdateCallback) error + func (s *Platform) ListCloudletMgmtNodes(ctx context.Context, clusterInsts []edgeproto.ClusterInst, ...) ([]edgeproto.CloudletMgmtNode, error) + func (s *Platform) NameSanitize(name string) string + func (s *Platform) PerformUpgrades(ctx context.Context, caches *platform.Caches, cloudletState dme.CloudletState) error + func (s *Platform) SetPause(enable bool) + func (s *Platform) SetPowerState(ctx context.Context, app *edgeproto.App, appInst *edgeproto.AppInst, ...) error + func (s *Platform) SetSimulateAppCreateFailure(state bool) + func (s *Platform) SetSimulateAppDeleteFailure(state bool) + func (s *Platform) SetSimulateClusterCreateFailure(state bool) + func (s *Platform) SetSimulateClusterDeleteFailure(state bool) + func (s *Platform) TrustPolicyExceptionCount(ctx context.Context) int + func (s *Platform) UpdateAppInst(ctx context.Context, clusterInst *edgeproto.ClusterInst, app *edgeproto.App, ...) error + func (s *Platform) UpdateCloudlet(ctx context.Context, cloudlet *edgeproto.Cloudlet, ...) error + func (s *Platform) UpdateClusterInst(ctx context.Context, clusterInst *edgeproto.ClusterInst, ...) error + func (s *Platform) UpdateResourcesMax(envVars map[string]string) error + func (s *Platform) UpdateTrustPolicy(ctx context.Context, TrustPolicy *edgeproto.TrustPolicy) error + func (s *Platform) UpdateTrustPolicyException(ctx context.Context, tpe *edgeproto.TrustPolicyException, ...) error + func (s *Platform) VerifyVMs(ctx context.Context, vms []edgeproto.VM) error + func (s *Platform) WaitHasTrustPolicyException(ctx context.Context, tpeKey *edgeproto.TrustPolicyExceptionKey, ...) bool + func (v *Platform) ChangeAppInstDNS(ctx context.Context, app *edgeproto.App, appInst *edgeproto.AppInst, ...) error + type PlatformSingleCluster struct + func (s *PlatformSingleCluster) GetFeatures() *edgeproto.PlatformFeatures + type PlatformVMPool struct + func (s *PlatformVMPool) GetFeatures() *edgeproto.PlatformFeatures