Documentation
¶
Index ¶
- Variables
- func NewPlatform() platform.Platform
- type Platform
- func (s *Platform) ActiveChanged(ctx context.Context, platformActive bool) error
- func (v *Platform) ChangeAppInstDNS(ctx context.Context, app *edgeproto.App, appInst *edgeproto.AppInst, ...) error
- 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) 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) 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) SetPowerState(ctx context.Context, app *edgeproto.App, appInst *edgeproto.AppInst, ...) error
- 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) 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
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MockRamMax = uint64(4096000) MockVcpusMax = uint64(5000) MockDiskMax = uint64(500000) MockExternalIpsMax = uint64(3000) )
Functions ¶
func NewPlatform ¶
Types ¶
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) ActiveChanged ¶
func (*Platform) ChangeAppInstDNS ¶
func (*Platform) ChangeCloudletDNS ¶
func (*Platform) ChangeClusterInstDNS ¶
func (s *Platform) ChangeClusterInstDNS(ctx context.Context, clusterInst *edgeproto.ClusterInst, oldFqdn string, updateCallback edgeproto.CacheUpdateCallback) error
func (*Platform) CreateAppInst ¶
func (*Platform) CreateCloudlet ¶
func (*Platform) CreateClusterInst ¶
func (s *Platform) CreateClusterInst(ctx context.Context, clusterInst *edgeproto.ClusterInst, updateCallback edgeproto.CacheUpdateCallback, timeout time.Duration) error
func (*Platform) DeleteAppInst ¶
func (*Platform) DeleteCloudlet ¶
func (s *Platform) DeleteCloudlet(ctx context.Context, cloudlet *edgeproto.Cloudlet, pfConfig *edgeproto.PlatformConfig, pfInitConfig *platform.PlatformInitConfig, caches *platform.Caches, updateCallback edgeproto.CacheUpdateCallback) error
func (*Platform) DeleteClusterInst ¶
func (s *Platform) DeleteClusterInst(ctx context.Context, clusterInst *edgeproto.ClusterInst, updateCallback edgeproto.CacheUpdateCallback) error
func (*Platform) DeleteTrustPolicyException ¶
func (s *Platform) DeleteTrustPolicyException(ctx context.Context, tpeKey *edgeproto.TrustPolicyExceptionKey, clusterKey *edgeproto.ClusterKey) error
func (*Platform) GatherCloudletInfo ¶
func (*Platform) GetAppInstRuntime ¶
func (*Platform) GetCloudletInfraResources ¶
func (*Platform) GetCloudletManifest ¶
func (*Platform) GetClusterAdditionalResourceMetric ¶
func (*Platform) GetClusterAdditionalResources ¶
func (s *Platform) GetClusterAdditionalResources(ctx context.Context, cloudlet *edgeproto.Cloudlet, vmResources []edgeproto.VMResource, infraResMap map[string]edgeproto.InfraResource) map[string]edgeproto.InfraResource
func (*Platform) GetClusterInfraResources ¶
func (s *Platform) GetClusterInfraResources(ctx context.Context, cluster *edgeproto.ClusterInst) (*edgeproto.InfraResources, error)
func (*Platform) GetClusterPlatformClient ¶
func (*Platform) GetConsoleUrl ¶
func (*Platform) GetContainerCommand ¶
func (*Platform) GetFeatures ¶
func (s *Platform) GetFeatures() *edgeproto.PlatformFeatures
func (*Platform) GetInitHAConditionalCompatibilityVersion ¶
func (*Platform) GetNodePlatformClient ¶
func (s *Platform) GetNodePlatformClient(ctx context.Context, node *edgeproto.CloudletMgmtNode, ops ...pc.SSHClientOp) (ssh.Client, error)
func (*Platform) GetRestrictedCloudletStatus ¶
func (*Platform) GetRootLBClients ¶
func (*Platform) GetRootLBFlavor ¶
func (*Platform) GetVersionProperties ¶
func (*Platform) HandleFedAppInstCb ¶
func (s *Platform) HandleFedAppInstCb(ctx context.Context, msg *edgeproto.FedAppInstEvent)
func (*Platform) InitCommon ¶
func (s *Platform) InitCommon(ctx context.Context, platformConfig *platform.PlatformConfig, caches *platform.Caches, haMgr *redundancy.HighAvailabilityManager, updateCallback edgeproto.CacheUpdateCallback) error
func (*Platform) InitHAConditional ¶
func (*Platform) ListCloudletMgmtNodes ¶
func (s *Platform) ListCloudletMgmtNodes(ctx context.Context, clusterInsts []edgeproto.ClusterInst, vmAppInsts []edgeproto.AppInst) ([]edgeproto.CloudletMgmtNode, error)
func (*Platform) NameSanitize ¶
func (*Platform) PerformUpgrades ¶
func (*Platform) SetPowerState ¶
func (*Platform) UpdateAppInst ¶
func (*Platform) UpdateCloudlet ¶
func (*Platform) UpdateClusterInst ¶
func (s *Platform) UpdateClusterInst(ctx context.Context, clusterInst *edgeproto.ClusterInst, updateCallback edgeproto.CacheUpdateCallback) error
func (*Platform) UpdateTrustPolicy ¶
func (*Platform) UpdateTrustPolicyException ¶
func (s *Platform) UpdateTrustPolicyException(ctx context.Context, tpe *edgeproto.TrustPolicyException, clusterKey *edgeproto.ClusterKey) error
Click to show internal directories.
Click to hide internal directories.