service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: MIT Imports: 20 Imported by: 0

README

Service

Documentation

Index

Constants

View Source
const (
	KSPATH_V1ALPHA3_DEPLOYMENT   = "/kapis/resources.kubesphere.io/v1alpha3/namespaces/%s/deployments"
	KSPATH_V1ALPHA3_STATEFULSETS = "/kapis/resources.kubesphere.io/v1alpha3/namespaces/%s/statefulsets"
	KSPATH_V1ALPHA3_PODS         = "/kapis/resources.kubesphere.io/v1alpha3/namespaces/%s/pods"
	KSPATH_V1ALPHA3_PODS_MONITOR = "/kapis/monitoring.kubesphere.io/v1alpha3/namespaces/%s/pods"
	KSPATH_LOGIN                 = "/login"
	KSPATH_RESOURCE_STATUS       = "%s/clusters/%s/projects/%s/%s/%s/resource-status"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KsMetricsService

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

func NewKsMetricsService

func NewKsMetricsService(c *ksclient.KApisClient) KsMetricsService

func (KsMetricsService) MetricsPlugins

func (svc KsMetricsService) MetricsPlugins(name, status, sortBy, ascending, limit, page string) ([]byte, error)

func (KsMetricsService) PluginPods

func (svc KsMetricsService) PluginPods(plugin string) ([]byte, error)

func (KsMetricsService) PluginStatusAddr

func (svc KsMetricsService) PluginStatusAddr(plugin string) (string, error)

func (KsMetricsService) PodsCpuMem

func (svc KsMetricsService) PodsCpuMem(plugin, resources, start, end, step, times string) ([]byte, error)

type OpenapiService

type OpenapiService struct {
	v1.UnimplementedOpenapiServer
}

OpenapiService is a openapi service.

func NewOpenapiService

func NewOpenapiService() *OpenapiService

NewOpenapiService new a openapi service.

func (*OpenapiService) AddonsIdentify

AddonsIdentify implements AddonsIdentify.OpenapiServer.

func (*OpenapiService) Identify

Identify implements Identify.OpenapiServer.

func (*OpenapiService) Status

Status implements Status.OpenapiServer.

func (*OpenapiService) TenantDisable

TenantDisable implements TenantDisable.OpenapiServer.

func (*OpenapiService) TenantEnable

TenantEnable implements TenantEnable.OpenapiServer.

type PrometheusService

type PrometheusService struct {
	PromNS  string
	TKeelNS string
	// contains filtered or unexported fields
}

func NewPrometheusService

func NewPrometheusService(promNamespace, tKeelNamespace string) *PrometheusService

func (*PrometheusService) BatchQuery

func (*PrometheusService) BatchTKMeter

func (*PrometheusService) Query

func (*PrometheusService) TKMeter

Jump to

Keyboard shortcuts

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